Skip to content

Instantly share code, notes, and snippets.

@chriskuech
Created June 11, 2019 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriskuech/7e8dc50d80faa89d2f781df6a47e3e4f to your computer and use it in GitHub Desktop.
Save chriskuech/7e8dc50d80faa89d2f781df6a47e3e4f to your computer and use it in GitHub Desktop.
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