I am by no means good at scripting let alone Powershell, and I need some help getting a powershell scirpt to run as a post installation task when pushing out a new image from the K2000.  I have the script already and i tried a couple things like zip up the folder execute the powershell but I just cant seem to get it right.  Any help would be appricated.


1 Comment   [ - ] Hide Comment


  • Powershell will assume the <filename>.ps1 file is in ITS default directory location. Try providing the entire path to the file (not just the name) - even if it is in the current directory for the installation package.
Please log in to comment

Community Chosen Answer



I create a new app. Upload the .ps1 file. Then use this as the command line.

powershell.exe -nologo -executionpolicy bypass -noprofile -file <name_of_file>.ps1
Answered 10/22/2013 by: dugullett
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity



Uncertain without more information, but the problem may be with the specification of the file (<filename>.ps1 file).  Powershell assumes that any script you wish to run is located in ITS default location (defined within Powershell).  This is generally NOT the current location of the installation file that invokes Powershell.  Try providing the entire path to the .ps1 file (not just its name) on the command line.

Answered 10/22/2013 by: EDSlayer
White Belt

Please log in to comment