Is there a powershell script that is already been established where i can install autmox and have it run with the our Key and assign it to a special group that is already been created.
Solved
Automox groups
Best answer by JohnG-Automox
Hi
It looks like the deployment method you are using is downloading the Automox msi, and then invoking it directly. This method is completely separate from the Powershell script I sent earlier.
That being said, I see two issues with your current script.
- The Automox installer URL in your Invoke-WebRequest command is incorrect.
- You are passing the -GroupName and -ParentGroupName parameters to the MSI, but these parameters only exist with the aforementioned Powershell deployment method. When using the MSI, you’ll want to pass the GROUP parameter instead: https://help.automox.com/hc/en-us/articles/5352260844564-Silent-Agent-Deployment-on-Windows
Here’s a revised script that will correct those issues:
$installpath = "C:\Program Files (x86)\Automox"
if(test-path $installpath) {
write-host "exiting"
exit
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$path = "C:\VMDIT\"
if(!(test-path $path)) {
New-Item -ItemType Directory -Force -Path $path
}
Invoke-WebRequest -Uri "https://console.automox.com/installers/Automox_Installer-latest.msi" -OutFile "C:\VMDIT\Automox_Installer-latest.msi"
Start-Process -FilePath 'msiexec.exe' -ArgumentList ('/i','C:\VMDIT\Automox_Installer-latest.msi','/qn','/norestart','ACCESSKEY="XXXX-XXXX-XXXX-XXXX"','GROUP="Default Group/AWS Workspaces"')
Let me know if you still have issues!
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.