with the command below I'm trying to filter multiple OU Name. I've tried many different things on the filter and every time it breaks the filter. basically I'm trying to filter everything i dont want to see in the list
Name -notlike "groups"
Name -notlike "AccountsDisabled"
Name -notlike "Accounts Disabled"
$OUs = Get-ADOrganizationalUnit -filter 'Name -notlike "Groups"' -SearchBase 'OU=Accounts,DC=domain,DC=com' -SearchScope subtree -Properties Name, DistinguishedName | Sort-Object Name