Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Start Power Shell from batch file

Posted on 2013-11-27
2
Medium Priority
?
505 Views
Last Modified: 2013-11-27
Hello,

I often write simple batch files to automate tasks, I place a shortcut to them on my desktop, and they always run in a command window. Is there a way to have my batch files start in a Power Shell window instead of a command window?

Thanks,
J:\
0
Comment
Question by:jhieb
2 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 1000 total points
ID: 39681086
No, sorry. Powershell interprets Powershell scripts, not Batch. Batch is still interpreted by cmd.exe.
What would be the difference anyway? A console window is a console window. If you like the Powershell colors better, you can just modify the shortcut to the batch file to your likings.
0
 
LVL 1

Author Closing Comment

by:jhieb
ID: 39681127
Thanks. That's all I needed to now. I guess I should have thought of that. It is just too early this morning, and I always ask my questions on Experts Exchange first. As you know, there are additional commands and functions available for Active Directory and Exchange with Power Shell. Since Power Shell can also run MD DOS commands in addition to commands related to Active Directory and Exchange Server and Office 365 and cross domain then I may as well start using Power Shell.
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦
Loops Section Overview

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question