Detect the machine's workgroup
Published: May 10, 2016 - 11:29
Hello,
I'm looking for the command that will return the workgroup value of the PC. I tried `get_domain_fromregistry`, but it returns "none" for PCs outside the domain.
I'm creating a package that enables Windows updates via our WSUS server on PCs outside the domain. I would like to modify the "TargetGroup" registry value in [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate], hoping that the PC will then join this workgroup to WSUS.
I'm looking for the command that will return the workgroup value of the PC. I tried `get_domain_fromregistry`, but it returns "none" for PCs outside the domain.
I'm creating a package that enables Windows updates via our WSUS server on PCs outside the domain. I would like to modify the "TargetGroup" registry value in [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate], hoping that the PC will then join this workgroup to WSUS.