Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get-ADObject -Filter {(ObjectClass -eq "Contact") -and ((proxyAddresses -notlike "*smtp*") -or (proxyAddresses -notlike "*SMTP*"))} -Properties cn,proxyAddresses |Select-Object cn |Export-Csv -Path "C:\Users\cinguva\Documents\ContactsWithoutSMTP.csv" -NoClobber
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement