Discuss Disable network shutdown script in the Networking Help forum on Dev Shed. Disable network shutdown script Networking Help forum discussing issues such as routers, switches, small networks, file sharing etc. Find information for both wired and wireless networks.
Posts: 2,199
Time spent in forums: 3 Weeks 6 Days 22 h 26 m 16 sec
Reputation Power: 2736
I'm trying to look into using "netsh" (thanks to ctardi for pointing that command out in the *other* wonderful thread) so give "netsh dump" a try, that dumps the current script/config to the console. That may lead to some clues for you.
Also, just out of curiosity, why is it you need to do this? Is there an underlying problem? Maybe fixing that would be a better solution. I am also assuming you are using WinXPsp2. Am I wrong in this? Please provide a few additional details so we can answer the correct problem.
Posts: 2,199
Time spent in forums: 3 Weeks 6 Days 22 h 26 m 16 sec
Reputation Power: 2736
OK, I cannot write a full article for you, but I found some very helpful links to give you. Then I've gotta get back to work ( :
I first found this forum on the old Sysinternals site. They have made a ton of cool and useful tools for windows.....then Microsoft bought them up. Check out their tools for Windows here.
I then found a link in in that thread to this KB article. It explains some too.
Try just some normal Google searches for anything revolving around Batch scripts and the command "netsh interface set interface". I hope this helps, I'll check back later and try to give you some more if you still need it.
Posts: 2,199
Time spent in forums: 3 Weeks 6 Days 22 h 26 m 16 sec
Reputation Power: 2736
Just as I post I realize one more thing I should mention, your question of HOW to write. Just use notepad and open a new file, create a text file with the commands you need written to the console and then save the file as a ".bat" extension. Windows recognizes this and will run it as a "Batch Script". Post back if you'd like this run automatically, or if you'd be OK with running this manually by double-clicking the .bat file from your desktop.
You should be able to add your first .bat file there, and it will run before your computer shuts down."
Yes,that's where I'm looking,just need to make the correct bat file or other.
If I install devcon.....
REM To list all adapters of any system run the following command:
REM devcon listclass net
REM Disable/enable LAN adapter
devcon disable "PCI\VEN_8086&DEV_101E&SUBSYS_05491014&REV_03"
devcon enable "PCI\VEN_8086&DEV_101E&SUBSYS_05491014&REV_03"
I'm not quite there but much closer,many many thanks
Posts: 1,153
Time spent in forums: 2 Weeks 3 Days 23 h 35 m 27 sec
Reputation Power: 1592
*I* would use devcon, that's just the tool that I know to do it with, I'm sure netsh will work just fine as well, though I haven't attempted.
Netsh would probably let you do it, though I don't know the command.
You could then use the bat files as I stated above.
Have you looked into why it takes so long to boot up with network adaptor enabled? It sounds like it could be malware related to me...something trying to connect to some server on boot...
Posts: 14
Time spent in forums: 3 h 6 m 23 sec
Reputation Power: 0
It's a fresh install so no malware etc.
It ONLY happens when the adapter has an IP.
Maybe I misled you down the enabled/disabled path inadvertantly,sorry
Doesn't matter wether it's a DHCP IP or a fixed IP that I gave it.
The Devcon and bat file looks quite easy to incorparate,I may try it although like I said,I'd rather not install anything.
Posts: 2,199
Time spent in forums: 3 Weeks 6 Days 22 h 26 m 16 sec
Reputation Power: 2736
probably the best place for it. Did you find instructions in the link that ctardi provided? They may help. If you don't find your answer in there I'd probably think that the system32 folder should be good, either that or the root (C:\Windows) that way you can call the program from the command line and not need to specify a full path.
Posts: 2,341
Time spent in forums: 2 Weeks 2 Days 25 m 55 sec
Reputation Power: 1940
Sorry to jump in the middle of the post, but you mentioned you wanted to do this because it takes forever to log onto the domain with your network adapter enabled? Is this by chance a laptop? Usually if it's taking a long time it's a DNS issue. Is there an admin you can speak to at your comapny?(Doug G helped me out with a similar problem, maybe he'll post here).
Posts: 14
Time spent in forums: 3 h 6 m 23 sec
Reputation Power: 0
I just tried...
Devcon disable 4&25934AEF&0+00
in the command line and here is what I got....
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>Devcon disable 4&25934AEF&0+00
No devices disabled.
'25934AEF' is not recognized as an internal or external command,
operable program or batch file.
'0+00' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Administrator> I also get the above if I use ....
DEVCON DISABLE {1A3E09BE-1E45-494B-9174-D7385B45BBF5}\NVNET_DEV0057\4&25934AEF&0+00
devcon disable nvidia No devices disabled.
This is what I get when I use....
devcon listclass net
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>devcon listclass net
Listing 12 device(s) for setup class "Net" (Network adapters).
PCI\VEN_11AB&DEV_4362&SUBSYS_058C1462&REV_15\4&33B7D061&0&0058: Marvell Yukon 88
E8053 PCI-E Gigabit Ethernet Controller
ROOT\*TUNMP\0000 : Microsoft Tun Mini
port Adapter
ROOT\MS_L2TPMINIPORT\0000 : WAN Miniport (L2TP
)
ROOT\MS_NDISWANIP\0000 : WAN Miniport (IP)
ROOT\MS_PPPOEMINIPORT\0000 : WAN Miniport (PPPO
E)
ROOT\MS_PPTPMINIPORT\0000 : WAN Miniport (PPTP
)
ROOT\MS_PSCHEDMP\0000 : WAN Miniport (IP)
- Packet Scheduler Miniport
ROOT\MS_PSCHEDMP\0001 : Marvell Yukon 88E8
053 PCI-E Gigabit Ethernet Controller - Packet Scheduler Miniport
ROOT\MS_PSCHEDMP\0002 : NVIDIA nForce Ethe
rnet - Packet Scheduler Miniport
ROOT\MS_PTIMINIPORT\0000 : Direct Parallel
V1394\NIC1394\77C40210DC00 : 1394 Net Adapter
{1A3E09BE-1E45-494B-9174-D7385B45BBF5}\NVNET_DEV0057\4&25934AEF&0&00: NVIDIA nFo
rce 10/100/1000 Mbps Ethernet
C:\Documents and Settings\Administrator>
So I tried using my Marvell adapter.....
devcon disable PCI\VEN_11AB&DEV_4362&SUB
SYS_058C1462&REV_15\4&33B7D061&0&0058
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>devcon disable PCI\VEN_11AB&DEV_4362&SUB
SYS_058C1462&REV_15\4&33B7D061&0&0058
PCI\VEN_11AB&DEV_4362&SUBSYS_058C1462&REV_15\4&33B7D061&0&0058: Disabled
1 device(s) disabled.
'DEV_4362' is not recognized as an internal or external command,
operable program or batch file.
'SUBSYS_058C1462' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
'33B7D061' is not recognized as an internal or external command,
operable program or batch file.
'0' is not recognized as an internal or external command,
operable program or batch file.
'0058' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Administrator>
It works for my Marvell both enable and disable.
Do you think it's struggling to disable because it's an active,open ip'd network?
I wonder if disabling DHCP first and then trying to disable the nvidia?