Lock-Desktop
Locks the desktop
try {
"Bye bye."
rundll32.exe user32.dll,LockWorkStation
exit 0 # success
} catch {
"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
exit 1
}This script has no configurable parameters.
Locks the desktop
try {
"Bye bye."
rundll32.exe user32.dll,LockWorkStation
exit 0 # success
} catch {
"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
exit 1
}This script has no configurable parameters.