Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell Remove Contact

$
0
0

I Am trying to remove an AD contact by filtering.

this is what I have but it is not working

Powershell
Remove-MailContact-Filter"Alias -like 'Delete*'"-Confirm:$false

Can i use get-mailcontact then pipe that into remove-mailcontact? or remove-mailcontact with an identity that uses get mail contact?

This is how Ive been using get-mailcontact

Powershell
get-mailcontact-Filter"Alias -like '*Sar*'"|Selectname

Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>