‎01-25-2019 10:53 PM - last edited on ‎04-01-2024 04:39 PM by Mercedes_O
Any reason why a Lock Screen would not initiate from a Powershell script with a Lansweeper Deploy?
Anyone have a trick that will work?
I run a command (very similar to other powershell scripts that I run)
powershell.exe -executionpolicy bypass -file "{PackageShare}\Scripts\Lock-Desktop.ps1"
Then the PS1 has a simple script:
rundll32.exe user32.dll,LockWorkStation
It works locally of course, but not remotely through Lansweeper Deploy.
UPDATE: Found problem, run as Logged In User!
‎03-20-2019 07:24 AM
‎01-25-2019 10:56 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now