0

I have a raspberry pi box that I can SSH into, and sometimes I want to remotely lock pcs on my local network

Note: Do not mark this as duplicate, all ones require SSH on the remote and sometimes when my brothers are doing stuff they shouldn't on their computers, they wont install ssh.

Joyesh
  • 3

1 Answers1

0

Can you run a command prompt, or execute a batch file somewhere?

If so, try these methods:

  1. rundll32.exe user32.dll,LockWorkStation

    However, it will keep the remote session open, and it's not recommended anyway.

  2. tsdiscon

    This will shut down the remote desktop connection and lock the screen.