-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Passy121/dev
Added new function, adjust functionality of cache clear and updated project help
- Loading branch information
Showing
6 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
ResolveEntraID/functions/Unregister-MeidIdentityProvider.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
function Unregister-MeidIdentityProvider { | ||
<# | ||
.SYNOPSIS | ||
Unregister Entra ID identity provider. | ||
.DESCRIPTION | ||
Unregister Microsoft Entra ID identity provider. | ||
.PARAMETER ProviderName | ||
Name of the provider that should be unregistered. | ||
.EXAMPLE | ||
PS C:\> Unregister-MeidIdentityProvider -Name "UserUPN" | ||
Will unregister a provider with name "UserUPN". | ||
.EXAMPLE | ||
PS C:\> Unregister-MeidIdentityProvider -Name "UserUPN", "Groups" | ||
Will unregister a provider with name "UserUPN" and "Groups". | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] | ||
[PSFArgumentCompleter("ResolveEntraID.Provider")] | ||
[PSFValidateSet(TabCompletion = "ResolveEntraID.Provider")] | ||
[string[]] | ||
$ProviderName | ||
) | ||
process { | ||
foreach ($entry in $ProviderName ){ | ||
Clear-MeidIdentityCache -Provider $entry | ||
$script:IdentityProvider.Remove($entry) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters