So this error: “Parameter set cannot be resolved using the specified named parameters” is a fancy way of saying “you used mutually exclusive parameters”
You can use either Identity OR SearchBase/SearchScope but not both in the same command.
For what you’re trying to do, I’d use SearchBase, SearchScope and Filter:
Get-aduser -SearchBase "OU=Terminated,DC=xxx,DC=xxx,DC=xxx,DC=xxx,DC=xxx" -SearchScope 2 -filter “samaccountname -eq ‘publicjq’”
|
--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ntpowershell/CAHBr%2B%2BiG0rtGfM3Ts8aLQ5vafovhoq3ueP%3DUtFoVic%2BO%3Dvxv3A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/CH0PR04MB8129C3E726522ABD077F15FEBCD09%40CH0PR04MB8129.namprd04.prod.outlook.com.