Skip to content

Instantly share code, notes, and snippets.

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