Skip to content

Instantly share code, notes, and snippets.

@jkbryan
Created October 2, 2018 20:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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