Hi. We are testing VDI Hosts with Provider VMware ESXi v8 and Windows 10. We have issues to start a custom optimization script. For example, we see the error ": failed to create process 0xc1" in the ImageOptimizer.log. We have trying multiple configurations in the fields "command", "arguments" and "initial directory" and with or without credentials. We didn't found a constellation that fire up our script. We have also testing with absolute path in the field "command". Which Syntax is the right to start a custom powershell script?
For running a custom PowerShell script, try using the full path to powershell.exe in the "command" field, like: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe In "arguments," include: -ExecutionPolicy Bypass -File "C:\Path\To\YourScript.ps1" Make sure the script path is correct and accessible, and check permissions if you're using credentials.