Skip to content

Instantly share code, notes, and snippets.

@jkbryan
Created October 2, 2018 20:28
Show Gist options
  • Save jkbryan/9f0a66e601ac9720024f60edf3b1ee6a to your computer and use it in GitHub Desktop.
Save jkbryan/9f0a66e601ac9720024f60edf3b1ee6a to your computer and use it in GitHub Desktop.
lithnet-remove-portal-resources.ps1
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