New-PSUHealthCheck
Creates a new health check.
SYNOPSIS
SYNTAX
New-PSUHealthCheck -Name <String> [-Description <String>] [-DisableUnix] [-DisableWindows]
[-ScriptBlock <ScriptBlock>] [-Disabled] [-Options <Hashtable>] [-ComputerName <String>] [-AppToken <String>]
[-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]DESCRIPTION
EXAMPLES
Example 1
PS C:\> New-PSUHealthCheck -Name 'Test Health Check' -ScriptBlock {
$Exists = Test-Path C:\Temp
New-PSUHealthCheckResult -Message "C:\Temp exists: $Exists"
}PARAMETERS
-AppToken
-ComputerName
-Description
-DisableUnix
-DisableWindows
-Disabled
-Integrated
-Name
-Options
-ScriptBlock
-UseDefaultCredentials
-Credential
-TrustCertificate
-Cookies
CommonParameters
INPUTS
None
OUTPUTS
System.Object
NOTES
RELATED LINKS
Last updated
Was this helpful?