Running GUI with Powershell hidden

Jan 9, 2012 at 11:06 AM

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?


Feb 21, 2012 at 1: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.