I need to add Remote Access and I created PS script to list Component's health:
$get= Get-RemoteAccessHealth | select HealthState
if ( $get.HealthState -eq "OK"){
write-host 0
}elseif ( $get.HealthState -eq "Warning"){
write-host 1
}elseif ( $get.HealthState -eq "Error"){
write-host 2
}
When 0 is OK, when 1 is Warning and 2 is Error state.
and I would like to discover (items and triggers) all Components with health state:
Get-RemoteAccessHealth:
Component HealthState
--------- ------------------ -----------
Server OK
6to4 Disabled
Vpn Addressing Disabled
Network Security OK
Dns OK
IP-Https OK
Nat64 OK
Dns64 OK
IPsec OK
Kerberos OK
Domain Controller OK
Management Servers Disabled
Network Location ... OK
Otp Disabled
High Availability Disabled
Isatap Disabled
Vpn Connectivity Disabled
Teredo Disabled
Network Adapters OK
Services OK
I don't want to add every single Component manually with trigger.....Any ideas ?
$get= Get-RemoteAccessHealth | select HealthState
if ( $get.HealthState -eq "OK"){
write-host 0
}elseif ( $get.HealthState -eq "Warning"){
write-host 1
}elseif ( $get.HealthState -eq "Error"){
write-host 2
}
When 0 is OK, when 1 is Warning and 2 is Error state.
and I would like to discover (items and triggers) all Components with health state:
Get-RemoteAccessHealth:
Component HealthState
--------- ------------------ -----------
Server OK
6to4 Disabled
Vpn Addressing Disabled
Network Security OK
Dns OK
IP-Https OK
Nat64 OK
Dns64 OK
IPsec OK
Kerberos OK
Domain Controller OK
Management Servers Disabled
Network Location ... OK
Otp Disabled
High Availability Disabled
Isatap Disabled
Vpn Connectivity Disabled
Teredo Disabled
Network Adapters OK
Services OK
I don't want to add every single Component manually with trigger.....Any ideas ?
Comment