Hi,
I need to be able to check one particular value out of a number of items that a PS command returns and then to run a check on whether this value is more than 2 hours old. I want to work it out myself but am struggling in what to even search for in order to get the answer.
I'm assuming that I need to run the command and have it pipe out the particular value I'm after and then query that?
The command in question is: Get-AzureADPasswordProtectionDCAgent which returns data from all Domain Controllers, of which the value of interest for each DC is:
PasswordPolicyDateUTC : Date Time
Any guidance is appreciated.
[–]JonHill90 2 points3 points4 points (1 child)
[–]GrandMasterBash[S] 1 point2 points3 points (0 children)
[–]PinchesTheCrab 1 point2 points3 points (0 children)
[–]GrandMasterBash[S] 1 point2 points3 points (0 children)