Shao Posted August 8, 2006 Posted August 8, 2006 Hello, I'm developping a programm that changes in an automatic way the @IP and Network Name of a computer. I know how to do with a mouse, but I don't know how to automate it ! Some help is welcome. Thank you.
Iznogoud Posted August 8, 2006 Posted August 8, 2006 You can change the IP adres with the command NETSH, typ it in a dos box with /? to get further detail.If you mean the network name like Domain name you can use a command wich is getting explained here:http://support.microsoft.com/kb/150493/You can run these command just with the RUN function in AutoIT.This will give you a headstart i hope
Shao Posted August 8, 2006 Author Posted August 8, 2006 You can change the IP adres with the command NETSH, typ it in a dos box with /? to get further detail.If you mean the network name like Domain name you can use a command wich is getting explained here:http://support.microsoft.com/kb/150493/You can run these command just with the RUN function in AutoIT.This will give you a headstart i hopeThank you very much for helpAbout "Network Name of a computer" I meant the name of a computer as visible on a network, so your answer about this question is not that I was searching for.
Iznogoud Posted August 8, 2006 Posted August 8, 2006 Thank you very much for helpAbout "Network Name of a computer" I meant the name of a computer as visible on a network, so your answer about this question is not that I was searching for.Try this:http://support.microsoft.com/default.aspx?...593&sd=techIt uses netdom.exe utility wich works great if you have XP
HELSAY Posted August 8, 2006 Posted August 8, 2006 You can check the information inside the registry : for computer name --> run Regedit Then Edit/Search and fill in your computer name... You'll see some keys (I think the main one is hklm/software/microsoft/windows nt/currentversion/winlogon/DefaulDomainName) that you can read or write in autoit (regread/regwrite) The same thing for IP (static or dhcp is reported in the registry) A+ Hels@y Logicae Homo EstFemina Homo EstFemina Logicae Est
Shao Posted August 9, 2006 Author Posted August 9, 2006 You can check the information inside the registry :for computer name --> run Regedit Then Edit/Search and fill in your computer name...You'll see some keys (I think the main one is hklm/software/microsoft/windows nt/currentversion/winlogon/DefaulDomainName) that you can read or write in autoit (regread/regwrite)The same thing for IP (static or dhcp is reported in the registry)A+Hels@y Hi,Yes I began with Regedit, but it doesn't work even after a computer reboot.
Iznogoud Posted August 9, 2006 Posted August 9, 2006 Hi,Yes I began with Regedit, but it doesn't work even after a computer reboot.You can't change your ip within the registry. Try my suggestions, they work and they are even explained by Microsoft. They can't be that difficult for someone who has never used them before.With Netsh you can do alot of thins like controlling your firewall etc. You will see.
Shao Posted August 9, 2006 Author Posted August 9, 2006 You can't change your ip within the registry. Try my suggestions, they work and they are even explained by Microsoft. They can't be that difficult for someone who has never used them before.With Netsh you can do alot of thins like controlling your firewall etc. You will see.Yes, I already used Netsh, it's great !I saw a plentiful other utilities in system32.
Shao Posted August 9, 2006 Author Posted August 9, 2006 Try this:http://support.microsoft.com/default.aspx?...593&sd=techIt uses netdom.exe utility wich works great if you have XPI tried netdom.exe and it fails because my computer isn't in a domain.My computer and others are in the same Network and none of them have a domain name. If I try to give them a domain Name, so I have an error.How can I do to use netdom with no domain name ?
Iznogoud Posted August 9, 2006 Posted August 9, 2006 I tried netdom.exe and it fails because my computer isn't in a domain.My computer and others are in the same Network and none of them have a domain name. If I try to give them a domain Name, so I have an error.How can I do to use netdom with no domain name ?I will look for a solution, but you can also use: Run("rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,1")Then i think the controlID is Edit1 and go on with control send.The only thing is that you will see a screen flashing wich looks nice if you ask me
Shao Posted August 21, 2006 Author Posted August 21, 2006 Thank you very much for your help, Iznogoud. It works (but unhappily, the cpl window can't be hidden !)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now