Solved

Start Power Shell from batch file

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Combine two scripts into same report 2 15
format log file 2 21
Opening a new tab in IE using Powershell / HTML 2 21
Invoke command powershell 4 25
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Set OWA language and time zone in Exchange for individuals, all users or per database.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

837 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