Hello there !
I have a problem and I need your help.
So, I have to do list with domain users who have roaming profiles but I need to exclude one or more OU from that list.
I have this:
Get-ADUser -Filter {profilePath -Like "*"} -Properties profilePath | Format-List -Property Name,SamAccountName
How could I do this ? With LDAPfilter ?
I really don't know. Please help me with this.
Regards
Dominik