certifiedgeek05

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Anyone going to Ignite? #390122

    Re: Anyone going to Ignite?

    Looking forward to seeing everyone at Ignite! It’ll be here before you know it.

    in reply to: Need help with this script to change DNS/WINS #296827

    Re: Need help with this script to change DNS/WINS

    Good Morning Dumber,
    I did use a vbscript that read a txt file of servers and copied a batchfile that had the NetSH commands that worked but the difference between Windows 2000, 2003 and 2008 are a pain.

    I couldn’t get NetSH to work on Windows 2000 at all but managed to get 2003/2003 to. This required a lot of work and I think in this large of an environment a pure VBscript would have been better. Total server 834.

    You can see the differences below with NetSH:

    Windows 2008
    netsh interface ip set dns “CFN” static 171.74.74.155 primary
    netsh interface ip add dnsserver “CFN” 171.74.107.198 index=2

    netsh interface ip set wins “CFN” static 171.74.163.196
    netsh interface ip add winsserver “CFN” 171.74.107.15 index=2

    Windows 2003
    netsh interface ip set dns “CFN” static 171.74.74.155 primary
    netsh interface ip add dns “CFN” 171.74.107.198 2

    netsh interface ip set wins “CFN” static 171.74.107.15 primary
    netsh interface ip add wins “CFN” 171.74.163.196 2

    Thanks,
    David

    Dumber;251120 wrote:
    Why not using Netsh.exe? Much easier I think…
    http://www.petri.com/configure_tcp_ip_from_cmd.htm
    in reply to: Creating Global Groups from a text file #296826

    Re: Creating Global Groups from a text file

    I spent 4 hours on :google:

    in reply to: Creating Global Groups from a text file #296825

    Re: Creating Global Groups from a text file

    ok so here is an update:

    I removed “On error resume next” and got this error Error: An invalid DN Syntax has been specified Source: (null)

    Thanks,

    in reply to: Need help setting DNS settings via VBS. #296824

    Re: Need help setting DNS settings via VBS.

    Hey Guys,
    I am getting closer…

    I have been working with this script but the function only replaces one DNS entry. I have modified this script a little to hold 4 variables. The script doesn’t error at all just doesn’t make the second change.

    strOld1DNSServer = “10.17.160.172”
    strNew1DNSServer = “192.168.0.2”
    strOld2DNSServer = “10.17.160.173”
    strNew2DNSServer = “192.168.0.4”

    I am just having a problem getting it to work. Any help would be awesome.

    On Error Resume Next

    strComputer = “.”
    strWINSPrimaryServer = “192.168.0.1”
    strWINSSecondaryServer = “192.168.0.2”

    Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\” & strComputer & “rootcimv2”)
    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    For Each objNicConfig In colNicConfigs

    intSetWINSServer = objNicConfig.SetWINSServer(strWINSPrimaryServer, _
    strWINSSecondaryServer)

    Next

    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    On Error Resume Next

    strComputer = “.”
    ‘strOldDNSServer = “10.17.160.172”
    ‘strNewDNSServer = “192.168.0.1”

    strOld1DNSServer = “10.17.160.172”
    strNew1DNSServer = “192.168.0.2”
    strOld2DNSServer = “10.17.160.173”
    strNew2DNSServer = “192.168.0.4”

    Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\” & strComputer & “rootcimv2”)
    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    For Each objNicConfig In colNicConfigs

    arrDNSServerSearchOrder = objNicConfig.DNSServerSearchOrder

    If Not IsNull(objNicConfig.DNSServerSearchOrder) Then
    For Each strDNSServer In objNicConfig.DNSServerSearchOrder

    Next
    End If
    blnFound = 0
    For i = 0 to UBound(arrDNSServerSearchOrder)
    If arrDNSServerSearchOrder(i) = strOld1DNSServer Then
    arrDNSServerSearchOrder(i) = strNew1DNSServer
    blnFound = 1
    End If
    Next
    If blnFound Then
    retSetDNS = objNicConfig.SetDNSServerSearchOrder(arrDNSServerSearchOrder)

    Else

    End If
    Next
    For Each objNicConfig In colNicConfigs

    arrDNSServerSearchOrder = objNicConfig.DNSServerSearchOrder

    If Not IsNull(objNicConfig.DNSServerSearchOrder) Then
    For Each strDNSServer In objNicConfig.DNSServerSearchOrder

    Next
    End If
    blnFound = 0
    For i = 0 to UBound(arrDNSServerSearchOrder)
    If arrDNSServerSearchOrder(i) = strOld2DNSServer Then
    arrDNSServerSearchOrder(i) = strNew2DNSServer
    blnFound = 1
    End If
    Next
    If blnFound Then
    retSetDNS = objNicConfig.SetDNSServerSearchOrder(arrDNSServerSearchOrder)

    Else

    End If
    Next

    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    For Each objNicConfig In colNicConfigs

    If Not IsNull(objNicConfig.DNSServerSearchOrder) Then
    For Each strDNSServer In objNicConfig.DNSServerSearchOrder

    Next
    End If
    Next
    [/CODE][CODE]
    On Error Resume Next

    strComputer = “.”
    strWINSPrimaryServer = “192.168.0.1”
    strWINSSecondaryServer = “192.168.0.2”

    Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\” & strComputer & “rootcimv2”)
    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    For Each objNicConfig In colNicConfigs

    intSetWINSServer = objNicConfig.SetWINSServer(strWINSPrimaryServer, _
    strWINSSecondaryServer)

    Next

    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    On Error Resume Next

    strComputer = “.”
    ‘strOldDNSServer = “10.17.160.172”
    ‘strNewDNSServer = “192.168.0.1”

    strOld1DNSServer = “10.17.160.172”
    strNew1DNSServer = “192.168.0.2”
    strOld2DNSServer = “10.17.160.173”
    strNew2DNSServer = “192.168.0.4”

    Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\” & strComputer & “rootcimv2”)
    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    For Each objNicConfig In colNicConfigs

    arrDNSServerSearchOrder = objNicConfig.DNSServerSearchOrder

    If Not IsNull(objNicConfig.DNSServerSearchOrder) Then
    For Each strDNSServer In objNicConfig.DNSServerSearchOrder

    Next
    End If
    blnFound = 0
    For i = 0 to UBound(arrDNSServerSearchOrder)
    If arrDNSServerSearchOrder(i) = strOld1DNSServer Then
    arrDNSServerSearchOrder(i) = strNew1DNSServer
    blnFound = 1
    End If
    Next
    If blnFound Then
    retSetDNS = objNicConfig.SetDNSServerSearchOrder(arrDNSServerSearchOrder)

    Else

    End If
    Next
    For Each objNicConfig In colNicConfigs

    arrDNSServerSearchOrder = objNicConfig.DNSServerSearchOrder

    If Not IsNull(objNicConfig.DNSServerSearchOrder) Then
    For Each strDNSServer In objNicConfig.DNSServerSearchOrder

    Next
    End If
    blnFound = 0
    For i = 0 to UBound(arrDNSServerSearchOrder)
    If arrDNSServerSearchOrder(i) = strOld2DNSServer Then
    arrDNSServerSearchOrder(i) = strNew2DNSServer
    blnFound = 1
    End If
    Next
    If blnFound Then
    retSetDNS = objNicConfig.SetDNSServerSearchOrder(arrDNSServerSearchOrder)

    Else

    End If
    Next

    Set colNicConfigs = objWMIService.ExecQuery _
    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

    For Each objNicConfig In colNicConfigs

    If Not IsNull(objNicConfig.DNSServerSearchOrder) Then
    For Each strDNSServer In objNicConfig.DNSServerSearchOrder

    Next
    End If
    Next
    [/CODE]

    in reply to: Need help setting DNS settings via VBS. #296823

    Re: Need help setting DNS settings via VBS.

    Hello themanwhowouldbeking,
    I appreciate the help! My only problem is there are 2 network cards, one needs the DNS changes and the other is on the DMZ so no change required or needed.

    I think I am getting closer, I could do this so much easier in VB6 but then the client would require a lot to make sure the application is safe in their evironment.

    I will post what I add/find incase someone needs help with this also.

    Thank you,

    themanwhowouldbeking;95112 wrote:
    I would use the below, I have just used this to modify the DNS servers on a virtual machine and then to modify the DNS server to the original IP address. The only difference from your visual basic script is that I use the impersonate value as the impersation level to use the logon credentials of the user executing the visual basic script, this is the recommened impersonation level when using WMI scripts.

    Code:
    On Error Resume Next

    strComputer = “.”
    Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\” & strComputer & “rootcimv2”)

    Set colNetCards = objWMIService.ExecQuery _
    (“Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True”)

    For Each objNetCard in colNetCards
    arrDNSServers = Array(“192.168.1.77”)
    objNetCard.SetDNSServerSearchOrder(arrDNSServers)
    Next

    in reply to: Quick question about Sites and Services and Supernetting. #296822

    Re: Quick question about Sites and Services and Supernetting.

    Yeah I can’t wait until it is done, there are 500 servers with this client. :shock:

    Thanks man!

    joeqwerty;83754 wrote:
    Well on the upside you only have to do this once… hopefully. GL.
    in reply to: Quick question about Sites and Services and Supernetting. #296821

    Re: Quick question about Sites and Services and Supernetting.

    Hello joeqwerty,
    Yeah that is what I am trying to do right now is clean up all this mess. I creating AD Sites and Services to match the DHCP scopes. I noticed that a Houston Server authenticated to a Omaha DC. Not good.

    Thanks,
    David

    joeqwerty;83748 wrote:
    Do you mean that 10.30.x.x was subnetted as in

    Subnet 1 = 10.30.1.x
    Subnet 2 = 10.30.2.x

    Or something similar?

    We don’t have multiple subnets but if I remember my studies correctly, a client will authenticate with a DC in it’s own site so if you don’t create multiple Sites you may have clients trying to authenticate with DC’s that are not local to the client (meaning that they may authenticate with a DC in another city or country, etc.) which would probably cause some problems.

    in reply to: Quick question about Sites and Services and Supernetting. #296820

    Re: Quick question about Sites and Services and Supernetting.

    Hello Ahmar_sahab,
    Here is an example of our DHCP scopes.

    Scope :10.30.65.0 NM: 255.255.254.0 / 23 Houston – NOC
    Scope :10.30.66.0 NM: 255.255.254.0 / 23 Houston – first floor
    Scope :10.30.67.0 NM: 255.255.254.0 / 23 Houston – second floor
    Up too 10.30.99.00

    Now under AD Sites and Services instead of creating individual Subnets can I create a subnet with the following values.

    10.30.0.0
    255.255.254.0 /23
    Texas < – Site name.

    I hope that makes sense.

    Thanks,
    David

    ahmer_sahab;83742 wrote:
    Hey David,
    You can use any subnet you like :) there is no restriction. Can you please explain your question. What subnet mask you are using?
    in reply to: Domain wide install of SP2, does this look ok? #296819

    Re: Domain wide install of SP2, does this look ok?

    Hello Michael,
    I will check, I know there are about 20-30 servers that are used for Dev stuff. The dev servers are used in the failover test, they do contain the same exact applications.

    The client is pushing for the upgrade more so then we are, I know there are a couple of DCs already with SP2. I have also searched all over the place to see if SP2 can safely be removed just as part of the backup plan but can’t find anything so far.

    I do appreciate your help!
    Thank you

    m80arm;79711 wrote:
    Do you not have a test network that mimics your prod network? I would try and deploy it there before going anywhere near a prod server.

    Michael

    in reply to: Domain wide install of SP2, does this look ok? #296818

    Re: Domain wide install of SP2, does this look ok?

    That is kind of scary, I have been seaching all over the place to see if the SP2 upgrade is a bad thing. My company is pushing this really hard. Now I am just even more nervous about this upgrade.

    Thanks

    Dumber;79692 wrote:
    yeah… u sure…
    With that much info i would do all at once exept one to preserve AD when the others fail.. :-?:neutral:

    Re: Have disc to recover Admin. password, but I can’t figure it out!

    Try reading this and see if that helps.

    http://home.eunet.no/pnordahl/ntpasswd/bootdisk.html

    Let me know.

    jodip34;74843 wrote:
    Please don’t laugh, I am just beginning to learn about computers. My sister has given me one, but she does not know the password, I can reboot the computer to the loggin screen but of course that’s as far as I can go. My friend at work, lent me a disk that should allow me to reset the Admin. password, but I am confused by it. It states “that default settings were usually ok & to enter through the steps” I do have tried doing this & I have tried changing the password, but I just can’t figure it out. I have been told to bring it up in safe mode and try there, but what good is that? It brings me back to the loggin screen & I still have no password. I am in desperate need of help. I have signed up at the Technical School, to start taking computer classes and I can’t even get on the computer! Duh! Huh!

    Re: Automatic updates settings created by GPO, Quickest way to remove?

    Hello Retaliator,
    Will the reg code below disable WindowsUpdate? Do I have to change anything?

    Thanks
    Certifiedgeek05

    Retaliator;69659 wrote:
    I push automatic updates from a WSUS server, and i use GPO to specify the server name, and options.

    have a look at this :

    http://technet2.microsoft.com/windowsserver/en/library/4ac8d574-f48e-4d9d-86c9-9aeb0f57e7501033.mspx?mfr=true

    about a reg file u can use to force the change manually:

    [HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsWindowsUpdate]
    “ElevateNonAdmins”=dword:00000000
    “WUServer”=”http://WSUSNAME.DOMAIN.NAME:8530”
    “WUStatusServer”=”http://WSUSNAME.DOMAIN.NAME:8530”
    “TargetGroupEnabled”=dword:00000001
    “TargetGroup”=”IsrBeeper”

    [HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU]
    “AutoInstallMinorUpdates”=dword:00000001
    “NoAutoUpdate”=dword:00000000
    “AUOptions”=dword:00000004
    “ScheduledInstallDay”=dword:00000000
    “ScheduledInstallTime”=dword:00000003
    “NoAutoRebootWithLoggedOnUsers”=dword:00000001
    “UseWUServer”=dword:00000001
    “RescheduleWaitTimeEnabled”=dword:00000001
    “RescheduleWaitTime”=dword:00000005
    “DetectionFrequencyEnabled”=dword:00000001
    “DetectionFrequency”=dword:00000022
    “RebootWarningTimeoutEnabled”=dword:00000001
    “RebootWarningTimeout”=dword:00000005
    “RebootRelaunchTimeoutEnabled”=dword:00000001
    “RebootRelaunchTimeout”=dword:00000005

    Retaliator.

    in reply to: Hello, Hi, Welcome, Introduction – archive #5 #296807

    Re: Hello, Hi, Welcome, Introduction – Newcomers – post HERE

    Hello PPL,
    My name is David, I am from Phoenix, AZ. I came to this forum because I was in search of good resourceful information. I was really happy to find a Thread for MCSA/MCSE. I own a small consulting company and I have about 26 clients that are running basically just running SBS 2003.

    I can’t offer the knowledge that most other ppl can here but when I can I will.

    It is a pleasure being here. I ejoyed the fact on my first post for help on “The Evil 291” that several ppl helped in a heart beat.

    Thanks for having me here.

    certifiedgeek05 < — I should have picked something else specially with everyones massive cert collections.

    David

Viewing 14 posts - 1 through 14 (of 14 total)