Skip to main content

Installing the Vanta Device Monitor - Windows PowerShell

S
Written by Shannon DeLange
Updated over 2 weeks ago
  • To install the Vanta Device Monitor via PowerShell, you would first run this command to download the Vanta Mobile Device Monitor,

Invoke-WebRequest -Uri https://app.vanta.com/osquery/download/windows -OutFile vanta.msi
  • Run the following command to install and register the Vanta Device Monitor for a user. Note that you will have to replace "vantaSecret" with the key available on the computer's page, and "[email protected]" with the user's email address that exists in Vanta

msiexec /i vanta.msi /passive /qn VANTA_KEY=vantaSecret [email protected] VANTA_REGION="us"
  • Here is an example PowerShell script that could be deployed to install the Vanta Device Monitor.

$vantaSecret= "vanta_key"
$userEmail= "[email protected]"
$vantaRegion= "US"

try {
Invoke-WebRequest -Uri https://app.vanta.com/osquery/download/windows -OutFile vanta.msi
}
catch {
"Unable to Download the Vanta Device Monitor. Please ensure that script is being run as an administrator"
}
try {
msiexec /i vanta.msi /passive /qn VANTA_KEY=$vantaSecret VANTA_OWNER_EMAIL=$userEmail VANTA_REGION="$vantaRegion"
}
catch {
"Unable to install the Vanta Device Monitor. Please ensure that the Vanta Secret is correct"
}
Finally {
"Successfully installed the Vanta Device Monitor"
}