Solved

Start Power Shell from batch file

Posted on 2013-11-27
2
491 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PowerCli import module 2 53
Puppet Help -- if else exec trigger file 4 33
Remove an InPlaceHold on Office 365 Mailbox via Powershell 12 39
Capturing LPT1 output XP 6 37
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
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…

751 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