charles1040
asked on
Produce a VBscript that shuts down all networking at log off , then restarting at log on
Hello,
I have a Windows 7 Ent laptop that is extremely slow when logging in. It sits at the welcome screen for at least 3 to 5 minutes. I wanted to know if there is a way (vbscript) to stop all networking at log off, the once I am logged on to start all the networking services upon log in
.
I have a Windows 7 Ent laptop that is extremely slow when logging in. It sits at the welcome screen for at least 3 to 5 minutes. I wanted to know if there is a way (vbscript) to stop all networking at log off, the once I am logged on to start all the networking services upon log in
.
ASKER
Hello,
I do not have this key in regedit. i tried to install the hotfix, but it errors out saying that it is not compatible. I believe it has to do with my system trying to find a network. The systems logs on fine only when there are no networks around.
I do not have this key in regedit. i tried to install the hotfix, but it errors out saying that it is not compatible. I believe it has to do with my system trying to find a network. The systems logs on fine only when there are no networks around.
Ok. In the meantime, here are some other network related changes to speed up your windows 7.. http://www.sysprobs.com/windows-7-network-slow
here is a script this is supposed to enable adapters.
http://msdn.microsoft.com/en-us/library/aa394216%28VS.85%29.aspx
If WScript.Arguments.length = 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", """" & WScript.ScriptFullName & """" & " RunAsAdministrator", , "runas", 1
Else
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_NetworkAdapter Where NetEnabled = 'False'")
For Each objItem in colItems
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Description: " & objItem.Description
msgbox objItem.Enable
Wscript.Echo
Next
End If
and his is a link to more information on the win32_networkadapter classhttp://msdn.microsoft.com/en-us/library/aa394216%28VS.85%29.aspx
Is this a Domain member?
ASKER
Yes, I wk from home and do not connect to the network unless I ues a VPN
ASKER
Yes, I wk from home and do not connect to the network unless I ues a VPN
I think the easiest thing might be to simply unplug the LAN Connection, disable wireless, and not plug them back in/enable them until you are logged in..... Beats having to worry about services.....
ASKER
Yea true, but that defeats the purpose of a docking station
I think I may have found a different avenue, based on the information in this post:
https://www.experts-exchange.com/questions/20708207/again-how-to-disable-network-connection-using-script.html
and this article:
http://support.microsoft.com/?kbid=311272
If you will post your device information that looks similar to this,
PCI\VEN_8086&DEV_1229&SUBS YS_0040808 6&REV_0C\3 &61AAA01&0 &48
I will write the batch files to launch when you logon/logoff.
https://www.experts-exchange.com/questions/20708207/again-how-to-disable-network-connection-using-script.html
and this article:
http://support.microsoft.com/?kbid=311272
If you will post your device information that looks similar to this,
PCI\VEN_8086&DEV_1229&SUBS
I will write the batch files to launch when you logon/logoff.
ASKER
Hello,
This is the info you requested.
PCI\VEN_8086&DEV_10EA&SUBS YS_0410102 8&REV_05
PCI\VEN_8086&DEV_10EA&SUBS YS_0410102 8
PCI\VEN_8086&DEV_10EA&CC_0 20000
PCI\VEN_8086&DEV_10EA&CC_0 200
Compatible ID's:
PCI\VEN_8086&DEV_10EA&REV_ 05
PCI\VEN_8086&DEV_10EA
PCI\VEN_8086&CC_020000
PCI\VEN_8086&CC_0200
PCI\VEN_8086
PCI\CC_020000
PCI\CC_0200
This is the info you requested.
PCI\VEN_8086&DEV_10EA&SUBS
PCI\VEN_8086&DEV_10EA&SUBS
PCI\VEN_8086&DEV_10EA&CC_0
PCI\VEN_8086&DEV_10EA&CC_0
Compatible ID's:
PCI\VEN_8086&DEV_10EA&REV_
PCI\VEN_8086&DEV_10EA
PCI\VEN_8086&CC_020000
PCI\VEN_8086&CC_0200
PCI\VEN_8086
PCI\CC_020000
PCI\CC_0200
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
HKEY_LOCAL_MACHINE\SOFTWAR
DelayedDesktopSwitchTimeou
You could change to 1, the default is 30.