Functions/Lock-Workstation.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
function Lock-Workstation { <# .SYNOPSIS Locks the workstation .DESCRIPTION Locks the workstation and requires authentication afterwards .EXAMPLE Lock-Workstation Would lock the workstation #> #region parameter [CmdletBinding(ConfirmImpact='Medium')] param() #endregion parameter rundll32.exe user32.dll,LockWorkStation } |