Remove-CMAccessAccount
SYNOPSIS
Usuwa użytkowników lub grupy z konta dostępu.
SYNTAX
SearchByValue (wartość domyślna)
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] [-InputObject] <IResultObject>
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByApplicationId
Remove-CMAccessAccount -AccountType <AccessAccountType> -ApplicationId <String> [-Force] [-UserName <String>]
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SearchByApplicationName
Remove-CMAccessAccount -AccountType <AccessAccountType> -ApplicationName <String> [-Force] [-UserName <String>]
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SearchByBootImageId
Remove-CMAccessAccount -AccountType <AccessAccountType> -BootImageId <String> [-Force] [-UserName <String>]
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SearchByBootImageName
Remove-CMAccessAccount -AccountType <AccessAccountType> -BootImageName <String> [-Force] [-UserName <String>]
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SearchByDriverPackageId
Remove-CMAccessAccount -AccountType <AccessAccountType> -DriverPackageId <String> [-Force] [-UserName <String>]
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SearchByDriverPackageName
Remove-CMAccessAccount -AccountType <AccessAccountType> -DriverPackageName <String> [-Force]
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByOSImageId
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -OperatingSystemImageId <String>
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByOSImageName
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -OperatingSystemImageName <String>
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByOSInstallerId
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -OperatingSystemInstallerId <String>
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByOSInstallerName
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -OperatingSystemInstallerName <String>
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchByPackageId
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -PackageId <String> [-UserName <String>]
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SearchByPackageName
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -PackageName <String> [-UserName <String>]
[-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SearchBySoftwareUpdateDeploymentPackageId
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -SoftwareUpdateDeploymentPackageId <String>
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SearchBySoftwareUpdateDeploymentPackageName
Remove-CMAccessAccount -AccountType <AccessAccountType> [-Force] -SoftwareUpdateDeploymentPackageName <String>
[-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Polecenie cmdlet Remove-CMAccessAccount usuwa użytkowników lub grupy z konta dostępu.
Konto dostępu to lista użytkowników lub grup, które mogą uzyskać dostęp do ustanowionej usługi lub aplikacji znajdującej się w punkcie dystrybucji. Na przykład członkowie konta dostępu do połączenia punktu aktualizacji oprogramowania mogą uzyskać dostęp do dwóch usług do zarządzania aktualizacjami oprogramowania: Windows Server Update Services (WSUS) i Menedżer synchronizacji programu WSUS.
Uwaga
Uruchom Menedżer konfiguracji cmdlet z dysku Menedżer konfiguracji lokacji, na przykład PS XYZ:\>
. Aby uzyskać więcej informacji, zobacz wprowadzenie.
EXAMPLES
Przykład 1: usuwanie użytkownika z konta dostępu do aplikacji przy użyciu jego nazwy
PS XYZ:\> Remove-CMAccessAccount -ApplicationName "SharePoint 2010" -Type WindowsUser -UserName "CONTOSO\ENarvaez" -Confirm
To polecenie usuwa Windows z konta dostępu dla aplikacji określonej przy użyciu jego nazwy. Należy potwierdzić akcję przed wykonaniem polecenia.
Przykład 2: Usuwanie grupy z konta dostępu do pakietu przy użyciu jego identyfikatora
PS XYZ:\> $ID = Get-CMAccessAccount -PackageId "CM1100002"
PS XYZ:\> Remove-CMAccessAccount -PackageId $ID -Type WindowsGroup -UserName "CONTOSO\Guest"
Pierwsze polecenie pobiera identyfikator obiektu pakietu, a następnie zapisuje go w zmiennej $ID.
Drugie polecenie usuwa grupę z konta dostępu dla określonego pakietu. Potwierdzenie nie jest wymagane.
PARAMETERS
-AccountType
Określa typ konta. Prawidłowe wartości to: Gość, Użytkownik, WindowsGroup i WindowsUser.
Type: AccessAccountType
Parameter Sets: (All)
Aliases:
Accepted values: User, Guest, Administrator, WindowsUser, WindowsGroup
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ApplicationId
Określa identyfikator aplikacji.
Type: String
Parameter Sets: SearchByApplicationId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ApplicationName
Określa nazwę aplikacji.
Type: String
Parameter Sets: SearchByApplicationName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BootImageId
Określa identyfikator obrazu rozruchowego.
Type: String
Parameter Sets: SearchByBootImageId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BootImageName
Określa nazwę obrazu rozruchowego.
Type: String
Parameter Sets: SearchByBootImageName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Monituje o potwierdzenie przed uruchomieniem polecenia cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-DisableWildcardHandling
Ten parametr traktuje symbole wieloznaczne jako wartości znaków literału. Nie można połączyć go z forceWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DriverPackageId
Określa identyfikator pakietu sterowników.
Type: String
Parameter Sets: SearchByDriverPackageId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DriverPackageName
Określa nazwę pakietu sterowników.
Type: String
Parameter Sets: SearchByDriverPackageName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Force
Wymusza uruchomienie polecenia bez pytania o potwierdzenie przez użytkownika.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ForceWildcardHandling
Ten parametr przetwarza symbole wieloznaczne i może prowadzić do nieoczekiwanego zachowania (nie jest zalecane). Nie można połączyć go z disableWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InputObject
Określa dane wejściowe tego polecenia cmdlet. Można użyć tego parametru lub potok danych wejściowych do tego polecenia cmdlet.
Type: IResultObject
Parameter Sets: SearchByValue
Aliases: DriverPackage, Application, OperatingSystemImage, OperatingSystemInstaller, Package, SoftwareUpdateDeploymentPackage, BootImage
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-OperatingSystemImageId
Określa identyfikator obrazu systemu operacyjnego.
Type: String
Parameter Sets: SearchByOSImageId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemImageName
Określa nazwę obrazu systemu operacyjnego.
Type: String
Parameter Sets: SearchByOSImageName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemInstallerId
Określa identyfikator instalatora systemu operacyjnego.
Type: String
Parameter Sets: SearchByOSInstallerId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OperatingSystemInstallerName
Określa nazwę instalatora systemu operacyjnego.
Type: String
Parameter Sets: SearchByOSInstallerName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PackageId
Określa identyfikator wdrożonego skryptu oprogramowania lub programu.
Type: String
Parameter Sets: SearchByPackageId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PackageName
Określa nazwę wdrożonego skryptu oprogramowania lub programu.
Type: String
Parameter Sets: SearchByPackageName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SoftwareUpdateDeploymentPackageId
Określa identyfikator wdrożonej aktualizacji oprogramowania.
Type: String
Parameter Sets: SearchBySoftwareUpdateDeploymentPackageId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SoftwareUpdateDeploymentPackageName
Określa nazwę wdrożonej aktualizacji oprogramowania.
Type: String
Parameter Sets: SearchBySoftwareUpdateDeploymentPackageName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UserName
Określa nazwę Windows konta użytkownika w formacie domena\użytkownik.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Pokazuje, co się stanie po uruchomieniu polecenia cmdlet. Polecenie cmdlet nie jest uruchamiane.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Typowe parametry
To polecenie cmdlet obsługuje typowe parametry: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction i -WarningVariable. Aby uzyskać więcej informacji, zobacz about_CommonParameters.