Unblock-UserLockUserAccount Cmdlet
Synopsis
Unblock user accounts already blocked from opening new sessions.
Syntax
Unblock-UserLockUserAccount [-UserName] <string[]> [-UserLockServerName <string>] [<CommonParameters>]
Description
The Unblock-UserLockUserAccount cmdlet unblocks one or more user account already blocked from opening new sessions by modifying the user protected accounts. Caution: PowerShell 3.0 is required.
Parameters
-UserName <string[]>
Specifies one or more user account names. You can type multiple account names (separated by commas). Wildcard characters are managed only if the concerned user accounts did make at least one session event in UserLock (if they are displayed in the User sessions view).
Required | true |
Position | 1 |
Accepts pipeline input | true (ByValue, ByPropertyName) |
Accepts wildcard characters | false |
-UserLockServerName <string>
Specifies the name of the UserLock server. The default is the localhost name.
Required | false |
Position | named |
Accepts pipeline input | false |
Accepts wildcard characters | false |
Default Value | '.' |
<CommonParameters>
For more information about common parameters, type "Get-Help about_commonparameters".
Input Type
None
Return Type
System.String[]
Notes
You can also refer to Unblock-UserLockUserAccount by its alias, "uulua". For more information, see about_Aliases. To use Unblock-UserLockUserAccount, you must have the "Protected account" UserLock administrative access rights.
Example
Unblock-UserLockUserAccount -UserName 'Alice', 'Bob' -UserLockServerName 'MyUlSrv'
Unblocks the 'Alice' and 'Bob' users already blocked from opening new sessions through the 'MyUlSrv' UserLock server.