Custom optimization script is not executed.

Discussion in 'Parallels Remote Application Server' started by JoergT1, Jan 14, 2025 at 3:38 AM.

  1. JoergT1

    JoergT1 Bit poster

    Messages:
    7
    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?
     
  2. MichaelP98

    MichaelP98 Bit poster

    Messages:
    6
    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.
     
  3. JoergT1

    JoergT1 Bit poster

    Messages:
    7
    Great! And thank you, that works...!!
     

Share This Page