Hello everyone
in my test lab i was successful to create a function which creates some OUs in Active Directory.
but another function to remove them at once, doesn't work
functionMyremoveOUs{Get-ADOrganizationalUnit-filter *|Set-ADOrganizationalUnit-protect 0-ea ignoreGet-ADOrganizationalUnit-filter *| remove-ADorganizationalUnit-recursive confirm:$false }
any help please