diff --git a/scripts/windows/InstallWindowsAgent.ps1 b/scripts/windows/InstallWindowsAgent.ps1 index bcc5a7b1b..e8b56efca 100644 --- a/scripts/windows/InstallWindowsAgent.ps1 +++ b/scripts/windows/InstallWindowsAgent.ps1 @@ -26,7 +26,7 @@ $AGENT_INSTALLER_PATH = "C:\windows\Temp\JumpCloudInstaller.exe" # JumpCloud Agent Installation Functions Function AgentIsOnFileSystem() { - Test-Path -Path:(${AGENT_PATH} + '/' + ${AGENT_BINARY_NAME}) + Test-Path -Path:(${AGENT_PATH} + '\' + ${AGENT_BINARY_NAME}) } Function InstallAgent() { @@ -123,4 +123,4 @@ ipconfig /FlushDNS # JumpCloud Agent Installation Logic -DownloadAndInstallAgent -msvc2013x64link:($msvc2013x64Link) -TempPath:($TempPath) -msvc2013x64file:($msvc2013x64File) -msvc2013x64install:($msvc2013x64Install) -msvc2013x86link:($msvc2013x86Link) -msvc2013x86file:($msvc2013x86File) -msvc2013x86install:($msvc2013x86Install) \ No newline at end of file +DownloadAndInstallAgent -msvc2013x64link:($msvc2013x64Link) -TempPath:($TempPath) -msvc2013x64file:($msvc2013x64File) -msvc2013x64install:($msvc2013x64Install) -msvc2013x86link:($msvc2013x86Link) -msvc2013x86file:($msvc2013x86File) -msvc2013x86install:($msvc2013x86Install)