Remove-CMSecurityRoleFromAdministrativeUser
SYNOPSIS
Tar bort associationen mellan en säkerhetsroll och en administrativ användare.
SYNTAX
RemoveRoleFromAdminByName_Name (standard)
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUserName <String> [-Force] -RoleName <String>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminById_Object
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUser <IResultObject> [-Force] -RoleId <String>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminByName_Object
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUser <IResultObject> [-Force] -RoleName <String>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminByObject_Object
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUser <IResultObject> [-Force] -Role <IResultObject>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminById_Id
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUserId <Int32> [-Force] -RoleId <String>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminByName_Id
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUserId <Int32> [-Force] -RoleName <String>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminByObject_Id
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUserId <Int32> [-Force] -Role <IResultObject>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminById_Name
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUserName <String> [-Force] -RoleId <String>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
RemoveRoleFromAdminByObject_Name
Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUserName <String> [-Force] -Role <IResultObject>
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Cmdleten Remove-CMSecurityRoleFromAdministrativeUser tar bort associationen mellan en eller flera säkerhetsroller och en administrativ användare. När du har tagit bort associationen mellan en säkerhetsroll och en administrativ användare kan den administrativa användaren inte visa objekten i Konfigurationshanteraren som är associerade med säkerhetsrollen och har inte längre behörighet att utföra de uppgifter som är relaterade till dessa objekt.
Anteckning
Kör Konfigurationshanteraren cmdlets från Konfigurationshanteraren platsenheten, till exempel PS XYZ:\>
. Mer information finns i Komma igång.
EXAMPLES
Exempel 1: Ta bort en säkerhetsroll från en administrativ användare
PS XYZ:\> Remove-CMSecurityRoleFromAdministrativeUser -AdministrativeUserName "Contoso\PattiFuller" -RoleName "Security Update Manager"
Det här kommandot tar bort associationen mellan säkerhetsrollen Security Update Manager och den administrativa användaren Contoso\PattiFuller.
PARAMETERS
-AdministrativeUser
Anger ett CMAdministrativeUser-objekt. Om du vill hämta ett CMAdministrativeUser-objekt använder du cmdleten Get-CMAdministrativeUser.
Type: IResultObject
Parameter Sets: RemoveRoleFromAdminById_Object, RemoveRoleFromAdminByName_Object, RemoveRoleFromAdminByObject_Object
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-AdministrativeUserId
Anger ID för en administrativ användare.
Type: Int32
Parameter Sets: RemoveRoleFromAdminById_Id, RemoveRoleFromAdminByName_Id, RemoveRoleFromAdminByObject_Id
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AdministrativeUserName
Anger namnet på en administrativ användare.
Type: String
Parameter Sets: RemoveRoleFromAdminByName_Name, RemoveRoleFromAdminById_Name, RemoveRoleFromAdminByObject_Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-DisableWildcardHandling
Den här parametern behandlar jokertecken som värden för literaltecken. Du kan inte kombinera den med ForceWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Force
Tvingar kommandot att köras utan att be om användarbekräftelse.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ForceWildcardHandling
Den här parametern bearbetar jokertecken och kan leda till oväntat beteende (rekommenderas inte). Du kan inte kombinera den med DisableWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Roll
Anger ett CMSecurityRole-objekt. Om du vill hämta ett CMSecurityRole-objekt använder du cmdleten Get-CMSecurityRole.
Type: IResultObject
Parameter Sets: RemoveRoleFromAdminByObject_Object, RemoveRoleFromAdminByObject_Id, RemoveRoleFromAdminByObject_Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-RoleId
Anger ID för en roll.
Type: String
Parameter Sets: RemoveRoleFromAdminById_Object, RemoveRoleFromAdminById_Id, RemoveRoleFromAdminById_Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RoleName
Anger namnet på en roll.
Type: String
Parameter Sets: RemoveRoleFromAdminByName_Name, RemoveRoleFromAdminByName_Object, RemoveRoleFromAdminByName_Id
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
Denna cmdlet har stöd för parametrarna -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.