Solved

Script or Batch program to disable ie uncheck "Register this connection's addresses in DNS"

Posted on 2006-10-30
5
3,175 Views
Last Modified: 2007-12-19
Okay guys,

I have been searching and testing and can not find anything that will help. What I want is to have a script/batch file that I can run after Sysprep that will uncheck "Register this connection's addresses in DNS" and uncheck the "Enable LMHOSTS lookup"

I use the default network settings in the Sysprep and of course those setting go back to the defaults. I know I can just go and uncheck them, but I was hoping for some thing a little more elegant.

Thanks
0
Comment
Question by:jrmcnulty
  • 3
5 Comments
 
LVL 7

Expert Comment

by:sj_hicks
ID: 17840795
To change dynamic DNS registration:
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
Not sure about LMHOSTS setting.
0
 
LVL 6

Accepted Solution

by:
essaydave earned 300 total points
ID: 17842819
Hiya

Change the yourdomainnamehere part, save this as a .vbs file, and set it to run at startup.  Voila!

NOTE: - I'm pretty flat out here at work, but if you want explanations, I can come back in a couple of days and explain the parts :)

----------------------

On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
 & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNicConf = objWMIService.Get("Win32_NetworkAdapterConfiguration")

intWinsEnable = objNicConf.EnableWINS(True, False, "", "yourdomainnamehere")

Set colNicConfigs = objWMIService.ExecQuery _
 ("SELECT * FROM Win32_NetworkAdapterConfiguration")

For Each objNicConfig In colNicConfigs
      intDNS = objNicConfig.SetDynamicDNSRegistration(False, False)
Next

--------------------------------
0
 

Author Comment

by:jrmcnulty
ID: 17842833
Okay that is a start. But, but your link only points to the scripting center. What script were you thinking about?
0
 

Author Comment

by:jrmcnulty
ID: 17842847
essaydave -- I will take a look at this a little later today and get back to you.

thanks.

0
 

Author Comment

by:jrmcnulty
ID: 17844149
essaydave -- looks to work. points will be awarded.
An explainations would be good. I believe that in your first object

intWinsEnable = objNicConf.EnableWINS(True, False, "", "yourdomainnamehere")

True = WINS Enabled
False = LMHOSTS disabled
"" = Location of LMHOST file
"yourdomainnamehere" = Scope ID

for second object

intDNS = objNicConfig.SetDynamicDNSRegistration(False, False)

False = FullDNSRegistrationEnabled -- which is the unchecking of "register this connection's address in DNS"
False = DomainDNSRegistrationEnabled which is the default right?

Let me know if I am on the right track.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
external hard drive and Raidon 3630 5 120
Cannot Upgrade Microsoft Installer on Windows 2000 29 62
Outlook 2010 Password Issue After Microsoft Update 11 82
Move XP PC to Vmware 22 139
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now