/build/static/layout/Breadcrumb_cap_w.png

Help running a powershell script Post Installation on the kbox2000

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   [ + ] Show 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. - EDSlayer 11 years ago

Answers (2)

Posted by: dugullett 11 years ago
Red Belt
3

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
Posted by: EDSlayer 11 years ago
White Belt
-2

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.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ