I’ve tried multiple ways to change groups a device is in from the commandline on the device, all unsuccessfully.
I’ve tried the suggestions from https://help.automox.com/hc/en-us/articles/5384338960020-Deploying-the-Automox-Agent-in-Bulk, and installing with the MSI options to add to a group are ignored - it always ends up in the Default Group only.
This command will only install it to the Default Group, ignoring the child group:
Start-Process 'msiexec.exe' -ArgumentList '/i "Automox_Installer-latest.msi" /qn /norestart ACCESSKEY=<key> GROUP="Default Group/Dev Group 1"'
The PowerShell script just fails silently to even install at all when I run it, using the command as an administrator, although the same is true when run from Windows PowerShell ISE interactively.
.\Install-AXAgentMSI.ps1 -AccessKey <key> -GroupName "Dev Group 1"
https://github.com/AutomoxCommunity/se-utilities-public/blob/main/Scripts/Install-AXAgentMSI.ps1
On Linux it’s even worse - the options to move to different groups do nothing every time but produce no output whatsovever except for deregistering the agent.
Is there any way to see output of the commands so I can verify the agent is being moved from the device itself? Are there any proven methods to install the agent to a group directly on both Windows and Linux?
How can the agent be installed on Linux and Windows without needing to manually move it to the correct group in the console every single time?