Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

Thank you very much for help

About "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.

Posted

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 :whistle:

Logicae Homo EstFemina Homo EstFemina Logicae Est

Posted

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 :whistle:

Hi,

Yes I began with Regedit, but it doesn't work even after a computer reboot.

Posted

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.

Posted

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.

Posted

Try this:

http://support.microsoft.com/default.aspx?...593&sd=tech

It uses netdom.exe utility wich works great if you have XP

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 ?

Posted

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 :whistle:

  • 2 weeks later...
Posted

Thank you very much for your help, Iznogoud. :nuke:

It works (but unhappily, the cpl window can't be hidden !) :P

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...