Posted October 22, 2024Oct 22 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?
October 22, 2024Oct 22 Employee Hello, What if you put 'restart-service' under Command and '-Name LSAService -Force' under Arguments?
October 23, 2024Oct 23 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)
October 25, 2024Oct 25 Author Its working! Thank you very much. How to launch this script with administrator privileges?
October 29, 2024Oct 29 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 ) 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