Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Update WS1-ReEnroll.ps1 #253

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update WS1-ReEnroll.ps1
It appears that VMware blocks ICMP so if we just want to check that the server address is correct and responds then maybe using TCP and port 80 is a better option.
  • Loading branch information
BWMerlin authored Nov 11, 2022
commit 702a23a7e573f9c25677a2dc5b201f2846cf9be1
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ elseif ($Arch -eq 'amd64')

#Checking connection to target server before doing anything else
Write-Log "Verifying connection to the target UEM server: $server"
$connectionStatus = Test-Connection -ComputerName $server -Quiet
$connectionStatus = Test-Connection -ComputerName $server -TcpPort 80 -Quiet
if($connectionStatus)
{
Write-Log "Test connection passed."
Expand Down