Re: Set LMHosts Lookup by Guy
Guy
Thu Jan 26 12:09:01 CST 2006
Here's a script to read it.
trComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_NetworkAdapterConfiguration",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Win32_NetworkAdapterConfiguration instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "WINSEnableLMHostsLookup: " &
objItem.WINSEnableLMHostsLookup
Next
"jefrie" <jefrie@discussions.microsoft.com> wrote in message
news:346BC5CE-8C54-4B4E-9C68-30E87951E878@microsoft.com...
> Hello,
>
> i want to set "WINSEnableLMHostsLookup" in WMI
> "Win32_NetworkAdapterConfiguration", but i just can read the value.
> Unfortunately there is no Setter for this. Is there any other way ?
> I´m trying not to use any 'external' tools like netset or netsh.
>
> kind regards
> --
> Jens Frieben (Germany)