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!