ERROR CMDLET SEARCH-MAILBOX
When run Search-Mailbox -Identity tcsoftware -SearchQuery kind:contacts -DeleteContent that I have error "not supported
keyword property"
July 20th, 2012 12:13pm
See this and use a property for a contact.
Sukh
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2012 12:23pm
Please post the exact command and the exact error message.
Try:
-SearchQuery "kind:contacts"
But I don't know whether that will work because I don't see where "kind" is a valid search keyword.
http://technet.microsoft.com/en-us/library/bb232132.aspx#AQSEd Crowley MVP "There are seldom good technological solutions to behavioral problems."
July 20th, 2012 12:29pm
I want to Delete all outlook contacts in a mailbox - powershell
I use: search-mailbox -identity USERNAME -searchquery kind:contacts -deletecontent
but I have error: not supported keyword property
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2012 6:43pm
the exact command is:
search-mailbox -identity USERNAME -searchquery kind:contacts -deletecontent
and the error is:
The property keyword isnt supported
July 20th, 2012 6:51pm
I want to Delete all outlook contacts in a mailbox
I did found this command
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2012 7:09pm
Click the link I provided.
You can't just make up your own search keywords.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
July 20th, 2012 9:06pm
The cmdlet apparently doesn't do that.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2012 9:07pm
I've given you the answer in a different forum. I'll repeat it here.
You can't just go making up your own search query keywords.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
July 20th, 2012 9:13pm
the exact command is:
search-mailbox -identity USERNAME -searchquery kind:contacts -deletecontent
and the error is:
The property keyword isnt supported
Hi,
I can't see anything wrong in the syntax.
I ran it myself two weeks ago, when I needed to delete 85000 contact items from usermailbox after an Android phone went "bananas"
I found the syntax in Dougs blog post
Use the search-mailbox cmdlet to delete contacts in 2010
The big question is why you get the error "The property keyword isnt supported"
Can you confirm that are on at least Exchange 2010 SP1 (hopefully later) and that the account you are logged on with has been assigned the roleassignment "Mailbox Import Export"?
Have you tried a different mailbox or maybe kind:Task for example ?
Martina Miskovic
Free Windows Admin Tool Kit Click here and download it now
July 21st, 2012 1:50am
Well, that's nice to know! Too bad it's not in Microsoft's documentation.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
July 21st, 2012 3:21am
Yeah, the documentation for the parameter SearchQuery could be better.
This doesn't say much at all:
The SearchQuery parameter specifies a search string or a query formatted using Advanced Query Syntax (AQS).
A link to
AQS would have been nice to have there.
Martina Miskovic
Free Windows Admin Tool Kit Click here and download it now
July 21st, 2012 3:51am
Yeah, the documentation for the parameter SearchQuery could be better.
This doesn't say much at all:
The SearchQuery parameter specifies a search string or a query formatted using Advanced Query Syntax (AQS).
A link to
AQS would have been nice to have there.
Martina Miskovic
July 21st, 2012 3:57am
Hi eccazul
I use your command succesfully removed all the contacts, so the command should be ok.
And did you try Martina's suggestion to check the roleassignment?
Also, you could have a try to Quote the SearchQuery, just like
Search-Mailbox -Identity tcsoftware -SearchQuery 'kind:contacts' -DeleteContent
Cheers
Zi Feng
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2012 5:34am
Hi eccazul
I use your command succesfully removed all the contacts, so the command should be ok.
And did you try Martina's suggestion to check the roleassignment?
Also, you could have a try to Quote the SearchQuery, just like
Search-Mailbox -Identity tcsoftware -SearchQuery 'kind:contacts' -DeleteContent
Cheers
Zi Feng
TechNet Community Support
July 23rd, 2012 5:39am