Jump to content


windowsnap123

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by windowsnap123

  1. very nice help. at the moment I have the problem that I want to give the powershell script parameters. Do you know the right way? thats my test (tried with ' and "): ServiceUI.exe -process:Explorer.exe %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -WindowStyle Hidden -ExecutionPolicy RemoteSigned -File ".\script.ps1" -Message 'Hello,' -Title 'Test' When I run it on the local system in the powershell with this everything is nice: .\powershell.exe -NoProfile -WindowStyle Hidden -ExecutionPolicy RemoteSigned -File ".\script.ps1" -Message 'Hello,' -Title 'Test' When I write the parameters in the script itself everything is ok with this: ServiceUI.exe -process:Explorer.exe %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -WindowStyle Hidden -ExecutionPolicy RemoteSigned -File ".\script.ps1" So now I dont know how to write it correctly in the SCCM (maybe wrong use of " ' ) ...on the local computer everything works fine
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.