Link to home
Start Free TrialLog in
Avatar of jrmcnulty
jrmcnulty

asked on

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

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
Avatar of sj_hicks
sj_hicks
Flag of Australia image

To change dynamic DNS registration:
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
Not sure about LMHOSTS setting.
ASKER CERTIFIED SOLUTION
Avatar of essaydave
essaydave

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jrmcnulty
jrmcnulty

ASKER

Okay that is a start. But, but your link only points to the scripting center. What script were you thinking about?
essaydave -- I will take a look at this a little later today and get back to you.

thanks.

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.