Disable WINS Lookup via PowerShell & WMI
If you’re running Microsoft System Center Configuration Manager, you probably don’t need to be using the WINS lookup for Server Locator Points. Normally, you’d have to de-install the ConfigMgr client, and then re-install it with the SMSDIRECTORYLOOKUP=NOWINS MSI property. If you don’t want to do that, and want to disable the WINS lookup feature on your existing client base, you can use PowerShell to achieve this.
1 2 3 | $DirectoryLookup = Get-WmiObject -Namespace root\ccm\policy\machine\actualconfig -Class CCM_DirectoryLookup_Configuration; $DirectoryLookup.LookupFlags = 1; $DirectoryLookup.Put(); |
Verification
After configuring this setting, you can restart the SMS Agent Host service by running the following command:
1 | Restart-Service -Name ccmexec; |
Open up the LocationServices.log client log file, and search for the text: Policy disallows failing over to WINS..
If you see that message showing up in the logs, then you should be all set!
Enabling Verbose Logging via PowerShell & WMI
Another post-installation trick you can do for Microsoft System Center Configuration Manager clients is enable verbose logging via the Windows Management Instrumentation (WMI) service. Check out this quick PowerShell script to achieve this:
1 2 3 | $Logging = Get-WmiObject -Namespace root\ccm\policy\machine\actualconfig -Class CCM_Logging_GlobalConfiguration; $Logging.LogLevel = 0; $Logging.Put(); |
Important: You may need to restart the ConfigMgr client service (short name: ccmexec, display name: SMS Agent Host) in order for this change to take effect.


