Page 1 of 1 1
Topic Options
#146213 - 2005-08-23 08:28 AM IP-Manipulation
Roberto_Koempel Offline
Fresh Scripter

Registered: 2005-07-05
Posts: 34
Loc: Germany
Hello,

I'm looking for a way to find out via KIX if a given client has dhcp activated or if he uses a static IP-Adress.
If static I wish to change to DHCP.
If DHCP I wish to change nothing and keep working through the scripts.

Thanks in advance for your help
_________________________
Serenity: You can't stop the Signal!

Top
#146214 - 2005-08-23 12:11 PM Re: IP-Manipulation
snake Offline
Fresh Scripter

Registered: 2005-08-22
Posts: 30
Loc: Germany
hi Roberto_Koempel

i think on this page you can find all information

<a href="" target="_blank">http://http://www.microsoft.com/technet/scriptcenter/scripts/network/client/modify/default.mspx</a>

attention!!! thats VB
but its easy to compile it to kix

greeting snake


Edited by snake (2005-08-23 12:15 PM)

Top
#146215 - 2005-08-23 01:11 PM Re: IP-Manipulation
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
or just check the board.
ready kixtart scripts exist here.
_________________________
!

download KiXnet

Top
#146216 - 2005-08-23 05:55 PM Re: IP-Manipulation
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
EnableDHCP() will do most everything you are looking for. Search the UDFs and you find there are other IP related functions as well.
Top
#146217 - 2005-08-25 09:01 AM Re: IP-Manipulation
Roberto_Koempel Offline
Fresh Scripter

Registered: 2005-07-05
Posts: 34
Loc: Germany
Quote:

EnableDHCP() will do most everything you are looking for. Search the UDFs and you find there are other IP related functions as well.




I'm very sorry that I must be struck by blindness but I cannot see the keyword enableDHCP in the keyword list via the link you provided with your signature.

We use Version 4.21 - could it be that in this version the keyword was not integrated?

I always try to find the answers in the forums BEFORE I state a question here - if only to make the impression that I am no complete idiot.
Sorry to say that regarding automatically enabling DHCP I didn't find any answer.
Maybe I wasn't successful at all because I didn't know the exact command/function for which I had to look for.

I will try my luck again.
Thanks for your patience..

Rob

Serenity: "You can't stop the Signal"
_________________________
Serenity: You can't stop the Signal!

Top
#146218 - 2005-08-25 09:02 AM Re: IP-Manipulation
Roberto_Koempel Offline
Fresh Scripter

Registered: 2005-07-05
Posts: 34
Loc: Germany
Ack - call me stupid!
I just found out that just clicking on EnableDHCP() opens the link I was looking for - Damn....
_________________________
Serenity: You can't stop the Signal!

Top
#146219 - 2005-08-25 03:54 PM Re: IP-Manipulation
Roberto_Koempel Offline
Fresh Scripter

Registered: 2005-07-05
Posts: 34
Loc: Germany
I checked the Code for the function EnableDHCP().
It works great on any W2K and WXP machine as far as I was able to test it.

I believe that I managed to understand what this script does, although I wouldn't have been able to invent such stuff myself in the first place.

Sorrily that script only works for machines with W2K and better OS's.

So I still have to find a solution which works for W9x-machines.

As far as I checked the forums there seems to be no ready script. But maybe I don't have to look for a script - maybe I need to just call a command with the appropriate commandline parameters or maybe I should go for a solution which directly writes values and keys into the registries of the machines.
_________________________
Serenity: You can't stop the Signal!

Top
#146220 - 2005-08-25 04:10 PM Re: IP-Manipulation
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
allen has done more than one of these:
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=144072&an=0&page=0#144072

they work on all machines you have WMI installed on.

anyways, like said, search the board, the answer is there:
http://www.kixtart.org/ubbthreads/showfl...=true#Post21709
_________________________
!

download KiXnet

Top
#146221 - 2005-08-25 07:32 PM Re: IP-Manipulation
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
Quote:


;Dependencies; WMI with Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0 SP4 and later, Tested with Kixtart 4.22, 4.50;





I did not test the UDFs with Win9x... and I believe they will not work, even with WMI installed...

Top
#146222 - 2005-08-25 07:36 PM Re: IP-Manipulation
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
I KNOW they won't work on Win9x even with WMI installed. Networking is way different in Win9x.
Top
#146223 - 2005-08-25 11:32 PM Re: IP-Manipulation
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Found something, maybe it can help
http://www.kixtart.org/ubbthreads/showfl...b=11&o=&fpart=1
And also here
http://www.windowsnetworking.com/articles_tutorials/w98tcpip.html
Quote:


IP
Autoconfiguration Addressing can be controlled by setting the value
of IPAutoconfigurationEnabled (type DWORD) in the registry key

HKEY_LOCAL_MACHINE\System
\CurrentControlSet\Services\VXD\DHCP




Top
#146224 - 2005-08-25 11:33 PM Re: IP-Manipulation
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
1999, now that's some good searching Witto. Great feedback.
Top
#146225 - 2005-08-25 11:41 PM Re: IP-Manipulation
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
seems to be the same script as in the 2002 post I linked.
_________________________
!

download KiXnet

Top
#146226 - 2005-08-26 12:06 AM Re: IP-Manipulation
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Google is my friend
http://www.google.be/search?hl=nl&q=win95+dhcp+site%3Akixtart.org&meta=
first hit

Top
#146227 - 2005-08-26 05:07 PM Re: IP-Manipulation
Roberto_Koempel Offline
Fresh Scripter

Registered: 2005-07-05
Posts: 34
Loc: Germany
Wowzer!

Thats really some cool researching.

I checked the scripts and am now able to cobble together a script which does all the things my boss ever wanted.
I have to admit that I not only learn a lot about scriptprogramming but also many things about those bread and butter knowledge that makes your day-to-day working that much easier.
I browsed a lot through the different forums and used the search function a lot but I didn't come up with info I was able to use.

You all are my true heroes.
I only wish I could contribute to this forum myself too a bit.
_________________________
Serenity: You can't stop the Signal!

Top
#146228 - 2005-08-26 07:32 PM Re: IP-Manipulation
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Don't worry, if you stay with us long enough you'll be able to contribute in no time.
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
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.082 seconds in which 0.039 seconds were spent on a total of 12 queries. Zlib compression enabled.

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