Page 1 of 1 1
Topic Options
#204482 - 2012-03-16 12:47 PM Refresh DNS from Kix Login Script
andy_neenan Offline
Just in Town

Registered: 2012-03-15
Posts: 4
Loc: England
Hi all,

New to all of this so bear with me! Hoping I could get some help on a hopefully basic addition to our KIX script

We have an existing KIX login script in place, but as all of our client machines are assigned DHCP IP addresses, I think it would be a good idea to include the command ipconfig/registerdns so the DNS server is updated with the correct current address of the machines.

Can this be added in to the KIX script or is there a better option I should be investigating?

Thanks for any help

Andy

Top
#204483 - 2012-03-16 01:17 PM Re: Refresh DNS from Kix Login Script [Re: andy_neenan]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
The Shell command might be able to help with this.

 Code:
Shell "%comspec% /C ipconfig /registerdns"
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#204486 - 2012-03-16 02:55 PM Re: Refresh DNS from Kix Login Script [Re: Mart]
andy_neenan Offline
Just in Town

Registered: 2012-03-15
Posts: 4
Loc: England
Thanks Mart - will this be visible to the users that run the script? (as in will they see a separate Command Prompt window appear during login?

Also I take it that code can be placed anywhere in the script?

Thanks for your help with this

Top
#204488 - 2012-03-16 02:59 PM Re: Refresh DNS from Kix Login Script [Re: andy_neenan]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
Use one of the WshPipe() UDFs to run this - it will capture the output (if you want to check it) and prevent any popup window.

Just replace "Shell' with "WSHPipe()" and stick the command from Mart's example inside the parens. Be sure to include WshPipe UDF in your script.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (mole) and 494 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.1 seconds in which 0.072 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org