Jump to content




windowsnap123

New Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About windowsnap123

  • Rank
    Newbie
  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
×