Private/Helper/Test-IsDomainHealthy.ps1
<#
Copyright © 2024 Integris. For internal company use only. All rights reserved. #> FUNCTION Test-IsDomainHealthy { <# .SYNOPSIS Determines if the domain is healthy. .DESCRIPTION This function checks the health status of the domain join and returns true if it is healthy. .PARAMETER None .EXAMPLE Test-IsDomainHealthy .NOTES The function uses the Get-DomainInfo cmdlet to check the domain join health status. #> IF ((Get-DomainInfo).DomainJoinHealth -eq "Healthy") { RETURN $True } RETURN $False } |