Pass a Greater Than operator to a parameter?

Hi all,

I’m using some bespoke API software to talk to our CRM system. I’m looking for a certain string of text that may pop up in some tickets, but I have over 260,000 tickets to work through.

The cmdlet I’m using supports the -CreateDate parameter, but I was wondering how I could pass it an argument that equates to “-ge 30/06/2019” as a comparison operator?

Originally I tried to get all the tickets and the pipe in a Where-Object such as {$_.CreateDate -ge 30/06/2019} but 4 hours later, and it’s still chugging through the database.

Is there a way I can specify a date without piping it through?

Cheers

submitted by /u/Superfluxus
[link] [comments]

Leave a Reply