I am currently having trouble running powershell script within the unattend.xml file that I have. The powershell is supposed install applications, but the xml file can't seem to run the line for the script.
I have gone back and forth between using <FirstLogonCommands>
, <RunSynchronousCommand>
, and <SynchronousCommand>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>Powershell -ExecutionPolicy ByPass -File \\deploy\RemoteInstall\WdsClientUnattend\deploySoftware.ps1</CommandLine>
<Description>Installs software</Description>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
This command is supposed run the ps1 script that installs applications from our server.