$Trustee = 'WinNT://',"$env:userdomain",'/',"$trustee" -join "
Can someone help me?
With that syntax, you're usually querying for the samAccountName, which doesn't usually have spaces... that's different from the display name.
But, out of curiosity, why wouldn't you use either Get-ADGroup, or the LDAP:// provider, versus WinNT://? Going through the old-old-old WinNT interface seems like you'd always just run across challenges.
You must be logged in to reply to this topic.