Solved

Start Power Shell from batch file

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
A procedure for exporting installed hotfix details of remote computers using powershell
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

22 Experts available now in Live!

Get 1:1 Help Now