Deploy Via PowerShell Script
FOR INSTALL:
- Go to Settings > Account Configuration as shown below and
- Generate 72-hour link as shown below by clicking on Create next to the operating system installed on your computer
- Host the URL yourself through Sharepoint, Box, etc.
- Edit Line 3 in PS1 Script that is provided below to have this URL within the Quotes as shown below
- Load script on the machine however you wish (Group Policy, RMM, Remote Powershell, etc.)
- Run PS1 script with admin-level permissions. We will verify that we have Admin level permission before downloading and attempting to install MSI.
- A blue dialog box will display with a simple message and close when complete.
---
//P1 PowerShell script $AGENT_INSTALLER_URL = "" #--- Modify Below This Line At Your Own Risk ------------------------------ $AGENT_INSTALLER_Name_Split = $AGENT_INSTALLER_URL -Split ("com/") $AGENT_INSTALLER_Name_Split2 = $AGENT_INSTALLER_Name_Split[1] -Split("/") $AGENT_INSTALLER_Name_Split3 = $AGENT_INSTALLER_Name_Split2[1] -Split("/") $AGENT_INSTALLER_Name = $AGENT_INSTALLER_Name_Split3 -split(".msi") $TimeStamp = $(Get-Date -UFormat %s) $Folder = New-Item -Path "C:\windows\Temp\" -Name "$TimeStamp" -ItemType "directory" $AGENT_INSTALLER_PATH = "C:\windows\Temp\$($TimeStamp)\$($AGENT_INSTALLER_Name[0]).msi" Function DownloadAgentInstaller() { (New-Object System.Net.WebClient).DownloadFile("${AGENT_INSTALLER_URL}", "${AGENT_INSTALLER_PATH}") } DownloadAgentInstaller $output = $AGENT_INSTALLER_PATH msiexec /i $output /quiet /l*v C:\windows\Temp\msiexec$($TimeStamp).log Start-Sleep -Seconds 60 remove-item $output -force //make sure to disable ThreatLocker for powershell
---
FOR DEBUG:
%temp%\MSIEXEC.log will show you a verbose MSI install log to debug an install, if necessary. This is separated out by install time with a timestamp.
SC QUERY SVCTCOM is the service verification on whether or not it's running.
Was this article helpful?
1 out of 4 found this helpful
Comments
No comments