Collect and Inject Workgroup name (and Computer Description)
Does anyone know if the workgroup name exists in the registry anywhere? I was looking through the bundled Get/Set Computer Name tasks in the K2000. I thought it would help to spin off more tasks that preserve the workgroup/domain membership and computer description. The location of the computer name is pretty striaghtforward. But I cannot for the life of me find where Windows stores the workgroup name. So I was wondering:
- Does anyone know if/where the workgroup name exists in the registry?
- Is HKLM\System\ControlSet001\Services\LanmanServer\Parameters\srvcomment a reliable place to get the computer description?
- Is testing for the presence of HKLM\System\ControlSet001\Services\Tcpip\Parameters\Domain a reliable way to determine domain membership?
Workgroup name is stored in the Security hive (HKEY_LOCAL_MACHINE\Security) backed up by the file \windows\system32\config\security. It can only be accessed by privileged processes such as lsass. 2 and 3 are correct