Packageing a Powershell, Command Line Arguments
Posted: Wed Feb 22, 2012 2:34 pm
Hi,
I have packaged a powershell script using Primal Forms, and I have used the option for Execution to 'Run as specified user', and using the 'Run in STA mode' as the script is GUI based.
I have some optional paramaters being passed using the $args value.
When I test the script as a ps1 file, the arguments work without any issues, but when packaged as an executable the arguments are not passed.
Any suggestions? or Have I approached this incorrectly...
Lloyd
I have packaged a powershell script using Primal Forms, and I have used the option for Execution to 'Run as specified user', and using the 'Run in STA mode' as the script is GUI based.
I have some optional paramaters being passed using the $args value.
When I test the script as a ps1 file, the arguments work without any issues, but when packaged as an executable the arguments are not passed.
Any suggestions? or Have I approached this incorrectly...
Lloyd