Solved

Start Power Shell from batch file

Posted on 2013-11-27
2
478 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 83

Accepted Solution

by:
oBdA earned 250 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
A procedure for exporting installed hotfix details of remote computers using powershell
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now