Re: Unattended network related operations on windows server 2003



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.


.



Relevant Pages

  • Re: Running the network stack without Giant -- change in default coming
    ... > to allow the network stack to run in parallel on multiple processors ... > currently unsafe without the Giant lock turned on. ... > configuration for testing out the impact of disabling Giant on MP ...
    (freebsd-current)
  • RE: Strange Irregular DNS/Networking Problems
    ... Disable offloading in the network adapter properties ... After disabling all these things file transfers across the network are a lot ... My network is not a complicated set up and only has one domain controller. ... I tried doing a net stop server after the network stalled as from an article ...
    (microsoft.public.windows.server.dns)
  • Re: Slow Network Speed from 2008 Server
    ... Network Adaptor properties which are a bit scary. ... I'm running AD on it as well as SQL Server 2005. ... that the DHCP didn't work. ...
    (microsoft.public.windows.server.networking)
  • Re: SMB packet and secure channel signing
    ... You know, in all the times that you and I have the debate on SMB Signing, ... > Optionally you can do "if client agrees" and thus the signing will be ... > Just don't screw up in the process of disabling these suckers. ... SMB Signing puts a tag on each and every network packet ...
    (microsoft.public.windows.server.sbs)
  • Re: Mei Chan [MSFT]
    ... a password or add a second account. ... Just for kicks you could try setting up the network with Netbeui or ... You could try disabling the Microsft services but be careful, ... >> services tab are by far the most important. ...
    (microsoft.public.windowsxp.network_web)

Loading