diff --git a/scripts/windows/InstallWindowsAgent.ps1 b/scripts/windows/InstallWindowsAgent.ps1 index 018c9b7f4..363355114 100644 --- a/scripts/windows/InstallWindowsAgent.ps1 +++ b/scripts/windows/InstallWindowsAgent.ps1 @@ -17,9 +17,6 @@ $AGENT_INSTALLER_URL = "https://cdn02.jumpcloud.com/production/jcagent-msi-signe $AGENT_INSTALLER_PATH = "C:\windows\Temp\jcagent-msi-signed.msi" # JumpCloud Agent Installation Functions Function InstallAgent() { - if (!(Test-Path "C:\ProgramData\JumpCloud\Agent")) { - New-Item -ItemType Directory -Path "C:\ProgramData\JumpCloud\Agent" -Force - } msiexec /i $AGENT_INSTALLER_PATH /quiet /norestart JCINSTALLERARGUMENTS=`"-k $JumpCloudConnectKey`" /L*V "$TempPath\jcUpdate.log" } Function DownloadAgentInstaller() {