Remove-CMSecurityScopeFromAdministrativeUser

Removes the association between security scopes and an administrative user.

Syntax

Remove-CMSecurityScopeFromAdministrativeUser
      -AdministrativeUser <IResultObject>
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      -SecurityScopeId <String>
      [-WhatIf]
      [<CommonParameters>]
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUser  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScopeName  [-WhatIf]
 []
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUser  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScope  [-WhatIf]
 []
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUserId  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScopeId  [-WhatIf]
 []
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUserId  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScopeName  [-WhatIf]
 []
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUserId  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScope  [-WhatIf]
 []
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUserName  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScopeName  [-WhatIf]
 []
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUserName  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScopeId  [-WhatIf]
 []
Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUserName  [-Confirm]
 [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling] -SecurityScope  [-WhatIf]
 []

Description

The Remove-CMSecurityScopeFromAdministrativeUser cmdlet removes the association between one or more security scopes and an administrative user.

After you remove the association between a security scope and an administrative user, the administrative user cannot view the objects in Microsoft System Center Configuration Manager that are associated with the security scope, and no longer has the permission to perform the tasks that are related to those objects.

Examples

Example 1: Remove a security scope from an administrative user

PS C:\> Remove-CMSecurityScopeFromAdministrativeUser -AdministrativeUserName "Contoso\PattiFuller" -SecurityScopeName "SecScope02"

This command removes the association between the security scope named SecScope02 and the administrative user named Contoso\PattiFuller.

Required Parameters

-AdministrativeUser

Specifies a CMAdministrativeUser object. To obtain a CMAdministrativeUser object, use the Get-CMAdministrativeUser cmdlet.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-AdministrativeUserId

Specifies the ID of an administrative user.

Type:Int32
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AdministrativeUserName

Specifies the name of an administrative user.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SecurityScope

Specifies a security scope object. To obtain a security scope object, use the Get-CMSecurityScope cmdlet.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SecurityScopeId

Specifies the ID of a security scope.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SecurityScopeName

Specifies the name of a security scope. A security scope name can be Default or the name of a custom security scope.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False