Jerome Slaughter
asked on
How to run a powershell script in Dell KACE (K2000) systems deployment appliance?
I'm not having luck running a PowerShell script (automated) in Dell KACE (K2000) for a windows 10 sysprepped image. I keep getting the Task Error # 57 where it states that "The system cannot find the file specified." I haven't been able to find any good resolutions that work via my internet research. Here is how I have the Post-installation Task Detail in KACE set up:
Type: Application
Runtime environment: K2000 Boot Environment (Windows)
File: The following powershell script (disabling password complexity) is attached:
secedit /export /cfg c:\secpol.cfg
(gc C:\secpol.cfg).replace("Pa sswordComp lexity = 1", "PasswordComplexity = 0") | Out-File C:\secpol.cfg
secedit /configure /db c:\windows\security\local. sdb /cfg c:\secpol.cfg /areas SECURITYPOLICY
rm -force c:\secpol.cfg -confirm:$false
Parameter: The following parameter is being used:
powershell.exe -nologo -executionpolicy bypass -WindowStyle hidden -noprofile -file "powershellscriptpasswordc omplexity. ps1"
What am I doing wrong or should I change the post-installation type? Am I using the wrong parameter?
Type: Application
Runtime environment: K2000 Boot Environment (Windows)
File: The following powershell script (disabling password complexity) is attached:
secedit /export /cfg c:\secpol.cfg
(gc C:\secpol.cfg).replace("Pa
secedit /configure /db c:\windows\security\local.
rm -force c:\secpol.cfg -confirm:$false
Parameter: The following parameter is being used:
powershell.exe -nologo -executionpolicy bypass -WindowStyle hidden -noprofile -file "powershellscriptpasswordc
What am I doing wrong or should I change the post-installation type? Am I using the wrong parameter?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
1. Was able to manually set the password length to 0 and the password complexity to DISABLED in local security policy prior to sysprepping my image.
2. Did a "capture image" of the sysprepped image in KACE K2000 successfully
3. Was able to deploy the sysprepped image to a test machine successfully without any errors
4. Did not need to use any scripts or mid level tasks