Created
October 2, 2018 20:28
-
-
Save jkbryan/9f0a66e601ac9720024f60edf3b1ee6a to your computer and use it in GitHub Desktop.
lithnet-remove-portal-resources.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
Import-Module LithnetRMA | |
$DNs=Get-Content "C:\FIMScripts\FIMMA_DNs.txt" | |
ForEach ($DN in $DNs) | |
{ | |
Write-Host $DN | |
$a=Get-Resource -ObjectType Person -AttributeName ObjectID -AttributeValue "$DN" | Remove-Resource | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment