PowerShell

Powershell Techniques : Lock Your Workstation using Powershell.

In my previous post, I created test button on Login Screen changer GUI,  when you clicked on them it lock your workstation. I got few queries that which code I used behind the above Test button.  I used the below code to lock the workstation.  $shell = New-Object -com “Wscript.Shell”  $shell.Run(“%windir%\System32\rundll32.exe user32.dll,LockWorkStation”) Just shoot the… Continue reading Powershell Techniques : Lock Your Workstation using Powershell.