Exchange 2010 powershell weirdness -
Exchange 2010 powershell weirdness -
about 3 or 4 times week clever spammer gets message through sonicwall esa , need scrub exchange server. i'm network admin @ school, , students suckers stuff. run next command global admin on exchange server powerfulness shell:
get-mailbox -resultsize unlimited | search-mailbox -searchquery 'subject:"re-please update password"' -deletecontent
the odd thing is, 99 out of 100 times works. within few minutes message aforementioned email disappears inbox , go day. 1 time in while, today exact command listed above, stubborn email won't go. @ first thought choking on dash, changed command to:
get-mailbox -resultsize unlimited | search-mailbox -searchquery 'subject:"please update password"' -deletecontent
still no joy. i'm not getting errors, command appears run normal. else run before? pointers?
thanks.
-bishop
i've had similar issues, tho more obvious (multiple [8-12] spaces). instead of running command on , on increasing spaces in query or configuring look every case, grabbed subjectline itself.
find message in mailbox, pull subject variable, utilize searchquery.
-fs
powershell
Comments
Post a Comment