How can I check if agents have been successfully moved using a command line?
With AMC-Release 2.7 it is now possible to move agents into a new group using a command line. You can find more details about this new feature in the manual in chapter 5.3.3 "Importing Computers into the Security Environment".
If you want to verify that the command has been successfully executed, you can do so by requesting a return value. This might be particularly interesting for administrators who like to do the group assignment using a start script.
However, a little improvisation is needed since the agent is not a normal command line program. For this purpose, the "-group" parameter will be transferred to the agent via the DOS command "START /WAIT". You can request the return value using the error level, e.g. to log it in a file.
The batch could look like this:
START /WAIT agent.exe --group "sample group" echo %errorlevel% > log.txt
In case of a successful execution of the command, the agent will return the value 0. If there has been an error, the value is "-1".
Affected products
- Avira Management Console [Windows]
- Created : Wednesday, December 12, 2012
- Last updated: Wednesday, December 12, 2012
- Rate this article
© 2013 Avira Operations GmbH & Co. KG. All rights reserved.
Drop us a line
We'll get back to you lickety-split.
Have a question for sales or customer service? Tell us what's on your mind.
Nice to hear from you!
Thank you for contacting Avira.
We'll get back to you very soon. Till then, be sure to browse the useful articles, videos and how-to's in our online Support Center.
Close this window
Featured products
Most popular
Avira Small Business Security Suite
Data protection and antispam for networks of up to 100 users
Avira Endpoint Security
Centrally managed antivirus for workstations and file servers
Avira Professional Security
Fast, flexible security for desktops and laptops
All products
Clients/Servers
BundlesBecome an Avira Partner
Want to be the leading provider of small and medium business security? Become an Avira partner and offer your customers powerful, cost-effective security trusted by over 100 million users worldwide.
Discover the Avira Partner Program Enroll as an Avira partner todayAlready a Partner?
Log in to PartnerNetHome Products
Business Products
Just want to evaluate a product?
Request a Free 30-Day Trial LicenseDrop us a line
We'll get back to you lickety-split.
Have a question for sales or customer service? Tell us what's on your mind.
Nice to hear from you!
Thank you for contacting Avira.
We'll get back to you very soon. Till then, be sure to browse the useful articles, videos and how-to's in our online Support Center.
Close this window
Featured products
Most popular
Avira Small Business Security Suite
Data protection and antispam for networks of up to 100 users
Avira Endpoint Security
Centrally managed antivirus for workstations and file servers
Avira Professional Security
Fast, flexible security for desktops and laptops
All products
Clients/Servers
BundlesBecome an Avira Partner
Want to be the leading provider of small and medium business security? Become an Avira partner and offer your customers powerful, cost-effective security trusted by over 100 million users worldwide.
Discover the Avira Partner Program Enroll as an Avira partner today


