Remove-AzureADApplicationPasswordCredential
Tar bort en lösenordsautentiseringsuppgift från ett program.
Syntax
Remove-AzureADApplicationPasswordCredential
-ObjectId <String>
-KeyId <String>
[-InformationAction <ActionPreference>]
[-InformationVariable <String>]
[<CommonParameters>]
Description
Cmdleten Remove-AzureADApplicationPasswordCredential tar bort en lösenordsautentiseringsuppgift från ett program i Azure Active Directory (AD).
Exempel
Exempel 1: Ta bort autentiseringsuppgifter för programlösenord
PS C:\> $AppID = (Get-AzureADApplication -Top 1).objectId
PS C:\> $KeyIDs = Get-AzureADApplicationPasswordCredential -ObjectId $AppId
PS C:\> Remove-AzureADApplicationPasswordCredential -ObjectId $AppId -KeyId $KeyIds[0].KeyId
Det första kommandot hämtar ID:t för ett program med hjälp av cmdleten Get-AzureADApplication (./Get-AzureADApplication.md)och lagrar det sedan i variabeln $AppID.
Det andra kommandot hämtar lösenordsautentiseringsuppgifterna för programmet som identifieras av $AppID med hjälp av cmdleten Get-AzureADApplicationPasswordCredential (./ Get-AzureADApplicationPasswordCredential.md).. Kommandot lagrar det i variabeln $KeyId.
Det sista kommandot tar bort programmets lösenordsautentiseringsuppgifter för programmet som identifieras av $AppID.
Parametrar
-InformationAction
Anger hur denna cmdlet svarar på en informationshändelse.
De acceptabla värdena för den här parametern är:
- Fortsätt
- Ignorera
- Fråga
- SilentlyContinue
- Stoppa
- Suspend
Type: | ActionPreference |
Aliases: | infa |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InformationVariable
Anger en informationsvariabel.
Type: | String |
Aliases: | iv |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-KeyId
@{Text=}
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ObjectId
Anger ID för programmet i Azure AD.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för