Moving a computer between groups in Enterprise Console from the endpoint

  • Article ID: 114186
  • Updated: 11 Mar 2014

Problem:

You would like to move computers to a group in Enterprise Console post installation of the endpoint software.

Rather than moving endpoints manually in Enterprise Console or re-protecting the client with the -G command line option of setup.exe, this action can be automated from the client endpoint through the use of a registry key.  This maybe be useful to incorporate in a lightweight script, an example of which is in the 'Technical Information' section below.

Note: This same registry key is used by the setup.exe when the -G switch is used.

Action/What to do:

  1. At the client, create a new 'String' value called 'GroupPath' under the following registry key:

    32-bit
    HKLM\Software\Sophos\Remote Management System\ManagementAgent

    64-bit
    HKLM\Software\wow6432node\Sophos\Remote Management System\ManagementAgent

  2. Set the value to be the group path in Enterprise Console you wish the computer to be moved to.  For example: \SECServer\Group1\Group2.

    Note: The value is case sensitive and the server name is also required at the start of the path.
  3. Restart the 'Sophos Agent' service.  This can be done from running 'services.msc'.

  4. Once the service has restarted, check that the computer has been moved to the expected group in Enterprise Console .

Technical Information

The above steps could be performed via a simple batch file, for example, on a 32-bit computer, run:

@echo off
reg add "HKLM\Software\Sophos\Remote Management System\ManagementAgent" /v GroupPath /t REG_SZ /d \server\group
net stop "sophos agent"
net start "sophos agent"

Note: Once the 'Sophos Agent' service has been restarted, the above key is deleted to prevent the message to move the computer repeatedly  being sent to the management server each time the 'Sophos Agent' service is started.

 





 
If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent

Comments