Hy From France,
I want to change the primary DNS and the secondary DNS of a computer like XP or Seven according to network like this :
If mynetwork is 192.168.1.0 255.255.252.0 then
arrDNSServers = Array("x.x.x.x", "y.y.y.y.")
elseif mynetwork is 192.168.4.0 255.255.252.0 then
arrDNSServers =...
This is the code pasted.
Regards
'==========================================================================
'
' NAME: SubnetChanger.vbs
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: http://www.TheSpidersParlor.com
' COPYRIGHT (c) 2006 All Rights Reserved
' DATE : 7/12/2006
'
'...
Hy,
Thank you for your contribution but script does not go: - (
I have this message :
Ligne69
Types non correspondants
code : 80041005
Source: SWbemObjectX
On the other hand, my script goes, but on a machine with 2 @ IP, it replaces the first @ by the second.
Regards,
Gil
Ok thank your help JJ, I worked above this after midday, and I found !
I recover the 3 byte, I modify it and I insert it in the new address IP which I writes in the register. I benefitted from it to record the DNS, etc...
thank you still!
'On Error Resume Next
''*** Définit la...
Ok thank You for vour code.
Here my code. I manage well to post the 3 Byte, on the other hand the modification does not pass...
An idea? Thank you,
'On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &...
I have a whole park of XP with IP addresses into 192.168.16. * 192.168.17.* 192.168.18.* that I must change into 192.168.4.* 192.168.5.* 192.168.6.*
It is our national center network which requires of us to standardize our IP addresses
Thanks for your script and Ok for the select case, but...
Hy,
New on the forum (from France), I seek to modify the thirdOctet byte of @ the IP in the base of register for a whole park information in XP.
If 16 become 4
If 17 becomes 5
If 18 becomes 6
Anybody can help me ?
Thank you in advance,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.