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.
-
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)
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.