Created
June 11, 2019 06:08
-
-
Save chriskuech/7e8dc50d80faa89d2f781df6a47e3e4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function testNode([string]$Id) { | |
try { | |
Invoke-RestMethod -Method Get -Uri "https://$Id/test" | |
$auditResult = $true | |
} catch { | |
$auditResult = $false | |
} | |
[AuditResult]@{ | |
Healthy = $auditResult | |
Computer = $Id | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment