Public/TestFunctionality/Test-WinRM.ps1
function Test-WinRM { [CmdletBinding()] param ( $ComputerName ) try { $WinRM = Test-WSMan -ComputerName $Server -ErrorAction Stop $Value = $true } catch { $Value = $false } return $Value } |