Re: Unattended network related operations on windows server 2003
- From: rand007@xxxxxxxxx
- Date: 4 Dec 2006 23:39:52 -0800
I found out how to accomlish task #2 (disabling LMHOSTS lookup) by the
next
VBScript:
"On Error Resume Next
Const USE_WINS = False
Const USE_LMHOST_FILE = False
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer &
"\root\cimv2")
Set objNetworkSettings =
objWMIService.Get("Win32_NetworkAdapterConfiguration")
errResult = objNetworkSettings.EnableWINS(USE_WINS, USE_LMHOST_FILE)
Wscript.Echo errResult"
I still don't know if it's possible to remove network protocol with
WMI...
Ran.
Manbinder Pal Singh [MSFT] wrote:
There are no methods in WMI to accomplish this.
Thanks,
Manbinder Pal Singh
This posting is provided "AS IS" with no warranties, and confers no rights.
<rand007@xxxxxxxxx> wrote in message
news:1165217322.828170.316680@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
I'd like to perform the next network related tasks on live Windows
machine using a script (VBScript or any other language):
1.Install and uninstall network client (e.g. "Client for Microsoft
networks") and network service (e.g. "File and printer sharing").
2.Enable or disable network protocol related stuff (Such as disabling
"LMHosts lookup").
After lot of searching, I found out that the utility "snetcfg.exe"
may help to perform task #1,
and other registry manipulations may help for accomplishing task #2.
If someone knows a way to perform the two tasks without external
utilities and special registry manipulations, please let me known about
it.
Thanks,
Ran.
.
- References:
- Unattended network related operations on windows server 2003
- From: rand007
- Re: Unattended network related operations on windows server 2003
- From: Manbinder Pal Singh [MSFT]
- Unattended network related operations on windows server 2003
- Prev by Date: Re: Unattended network related operations on windows server 2003
- Next by Date: Re: wxDevC++ and WMI?
- Previous by thread: Re: Unattended network related operations on windows server 2003
- Index(es):
Relevant Pages
|
Loading