< Back
Set-UserRight
Post
NAME Set-UserRight
SYNOPSIS
Set the value of a user rights assignment to the specified list of principals.
SYNTAX
Set-UserRight [-Name] <String[]> [-AccountName] <Object[]> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set the value of a user rights assignment to the specified list of principals, replacing any existing entries.
PARAMETERS
-Name <String[]>
The user right, or rights, to query.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AccountName <Object[]>
The list of identities which should set for the specified policy.
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-UserRight -Name SeShutdownPrivilege -AccountName 'Administrators'
Replaces the accounts granted the SeShutdownPrivilege right with Administrators.
RELATED LINKS
SYNOPSIS
Set the value of a user rights assignment to the specified list of principals.
SYNTAX
Set-UserRight [-Name] <String[]> [-AccountName] <Object[]> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set the value of a user rights assignment to the specified list of principals, replacing any existing entries.
PARAMETERS
-Name <String[]>
The user right, or rights, to query.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AccountName <Object[]>
The list of identities which should set for the specified policy.
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-UserRight -Name SeShutdownPrivilege -AccountName 'Administrators'
Replaces the accounts granted the SeShutdownPrivilege right with Administrators.
RELATED LINKS