changed function GetTempPath to Get-TempPath

This commit is contained in:
2023-10-05 12:47:08 -04:00
parent 32b33cee34
commit 31a06a9206
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ Function SourceTools
. SourceTools
# Build the path for $AGENT_INSTALLER
$AGENT_INSTALLER = '{0}{1}' -f (GetTempPath), $AGENT_FILENAME
$AGENT_INSTALLER = '{0}{1}' -f (Get-TempPath), $AGENT_FILENAME
# Make sure we need to install the agent
If ( (Test-Path "${Env:ProgramFiles}\ATERA Networks\AteraAgent\AteraAgent.exe") -or (Test-Path "${Env:ProgramFiles(x86)}\ATERA Networks\AteraAgent\AteraAgent.exe") )