I have a batch file that triggers a number of Powershell commands. The process works just fine however with each Powershell command a blue window (related to Powershell) pops up. I have tried to start it minimized but that doesn't work. I can start the batch file minimized so why not Powershell?
Batch File contents:
cmd /c start /min "" Powershell.exe -WindowStyle Hidden -executionpolicy remotesigned -File Z:\myScript01.ps1
cmd /c start /min "" Powershell.exe -WindowStyle Hidden -executionpolicy remotesigned -File Z:\myScript02.ps1
cmd /c start /min "" Powershell.exe -WindowStyle Hidden -executionpolicy remotesigned -File Z:\myScript03.ps1
Any suggestions are appreciated.
Batch File Calls Powershell
-
- GoldLounger
- Posts: 2640
- Joined: 26 Jan 2010, 16:31
- Location: Southern California
Batch File Calls Powershell
Regards,
John
John
-
- SilverLounger
- Posts: 2115
- Joined: 25 Jan 2010, 02:12
-
- GoldLounger
- Posts: 2640
- Joined: 26 Jan 2010, 16:31
- Location: Southern California
Re: Batch File Calls Powershell
JoeP,
Thank you for the suggestion as I was able to resolve the window pop up with pwsh.exe.
Thank you for the suggestion as I was able to resolve the window pop up with pwsh.exe.
Regards,
John
John