Jump to content

Daorge

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by Daorge

  1. Well I think i figured it out. by removing "if objNCProps.Name="Local Area Connection" then 'Change to represent the connection to change" and one of the End If statements I believe it is working. I need to test it on a few other servers to know for sure, but ill let you know how it goes if anyone else is interested.
  2. Hey guys, i wasnt sure where to post this so please let me know if this is the wrong spot. I am trying to find a way to locate and add a key to the registry for NIC settings. However they have GUIDs and am unsure of how to add the key to all GUIDs in that section. This is the vbscript i am calling when I enter my registry file. The problem is it only adds the values to the main network connection "Local Area Connection" Some of our servers have more than one NIC and id rather see if I can find a way to modify all GUIDs in "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\" rather than searching for the Local Area Connection. Any one better with vbscript that can help out? Option Explicit Main( ) function Main() DIM objShare DIM objEveryColl Dim oWSHShell Dim sNIC, sMan Dim iCount Set oWSHShell = WScript.CreateObject("WScript.Shell") set objShare = Wscript.CreateObject("HNetCfg.HNetShare.1") if(IsObject(objShare) = FALSE ) then exit function end if set objEveryColl = objShare.EnumEveryConnection if (IsObject(objEveryColl) = TRUE) then DIM objNetConn dim guid for each objNetConn in objEveryColl DIM objShareCfg set objShareCfg = objShare.INetSharingConfigurationForINetConnection(objNetConn) if (IsObject(objShareCfg) = TRUE) then DIM objNCProps set objNCProps = objShare.NetConnectionProps(objNetConn) if (IsObject(objNCProps) = TRUE) then if objNCProps.Name="Local Area Connection" then 'Change to represent the connection to change Guid=objNCProps.Guid oWSHShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\" & guid & "\MTU", 00000546,"REG_DWORD" oWSHShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\" & guid & "\TcpWindowSize",65535,"REG_DWORD" end if end if end if next end if end function
  3. Thanks for the help! It works great
  4. Hey all, I have been working on some unattended install images for a client and am running into a slight problem. I am trying to turn off the IE Enhanced Security through a registry file. On my Win 2k3 Server x86 images it works flawlessly. However on the x64 images the keys exist but it still displays that its enabled. Any Ideas? Is it a different key used in x64? Keys being used: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}] "IsInstalled"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}] "IsInstalled"=dword:00000000
×
×
  • Create New...