How to limit my response
i'm newbie in scripting world studying , working everyday.
i not want before or after have in quotes, in quotes -messagesubject "x1x2 abcd"
meaning i'm getting whats in quotes , has whats in quotes before , after. ie xzxz x1x2 abcd or x1x2 abcd efg, etc. i want x1x2 abcd apologies not being able explain better.
script:
get-transportserver | get-messagetrackinglog -resultsize unlimited -start "04/20/2016 1:00:00 am" -end "04/22/2016 11:59:00 pm" -messagesubject "x1x2 abcd" | select-object timestamp, eventid, {$_.recipients}, sender, messagesubject, serverhostname | export-csv
thanks
hardserv
does give desired result?
get-transportserver | get-messagetrackinglog -resultsize unlimited -start "04/20/2016 1:00:00 am" -end "04/22/2016 11:59:00 pm" -messagesubject "x1x2 abcd" | where-object messagesubject -eq "x1x2 abcd" | select-object timestamp, eventid, recipients, sender, messagesubject, serverhostname
[>_]
Windows Server > Windows PowerShell
Comments
Post a Comment