Jump to content

Featured Replies

Posted

Hello,

I need configuration triggered task which after each recconected session will restart specific service in windows.

In what form do I need to configure this in the DEM to make it work? I try using powershell as well as the cmd command.

What im doing wrong?

image.png.62d81a04ad212bcc7d8bf5d9fc538d12.pngimage.png.781f2978c9b022310f9b3f492b84ae3b.png

  • Replies 4
  • Views 594
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • If you run powershell as a command you need to specify the path to the executable  Action: Run Custom Command Command: C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe argument

Posted Images

If you run powershell as a command you need to specify the path to the executable 

Action: Run Custom Command

Command: C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe

arguments: -ExecutionPolicy Bypass -file \\uem-test\uem-test$\UEMScripts\Desktop\Set-Clientname\Set-Clientname.ps1

In my script I change the vmware_View_Client_computer name in the registry when they switch from one to another computer. 

 

Senior technical specialst at Leiden University Medical Center (lumc)

  • Author

Its working! Thank you very much.

How to launch this script with administrator privileges?

You could try the "Privilege Elevation" feature from DEM. But be aware of what you are allowing to elevate, because it could bring up security concerns.

Ivan de Mes

EUC Architect @ Orange Business (The Netherlands netherlands-flag-png-xl.thumb.jpg.a1943fcb7e938a63e1191aae2aa31568.jpg)
EUC Expert | vExpert | Blogger | Public Speaker | Part of the EUC TechCon leadership team

Blog: https://ivandemes.com | X: @ivandemes | Bluesky: @ivandemes.com | LinkedIn: ivandemes

Create an account or sign in to comment