Running GUI with Powershell hidden

Jan 9, 2012 at 12:06 PM

Good morning,

Is there a way to open the GUI and have the powershell running in the background as minimized or hidden from the user?

Thanks

Feb 21, 2012 at 2:18 AM

Create a shortcut calling the powershell script with the -windowstyle switch

C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -sta -WindowStyle Hidden ".\Start-PoshPAIG.ps1"

This will launch a new powershell console then close it and keep the GUI running.

~Phil B.