I'm writing a script that will compare times between 2 servers, and compare the time difference. The returned timestamp is in the format below:
-00:00:01.9989999
-01:00:02
-00:00:00.9989999
I need to create a condition where the action would be triggered, only if the difference is greater then 3 minutes. How should I format this?
([timespan]'-00:00:00.9989999').Duration() -gt (New-TimeSpan -Minutes 3)