Jump to content

Recommended Posts

Posted

Hello guys,

does anybody know how to rename a workstation with windows xp using AutoIt script?

I'm new in programing stuff like this. Pleas help me. :P

Posted

Hey and welcome to the forums!

I'd take a close look in example scripts and search the forums because I'm pretty sure this has been asked before :P

Cheers,

Brett

Posted

A very easy way which i use in my scripts is this:

RunWait ("c:\install\compname.exe /c " & $Pcname)

compname.exe is a little freeware tool which renames the PC. You can download ist here.

Now you just have to set $PCname to the desired name for your workstation.

You can use the install command to integrate the compname.exe in the autoit script.

SpecialK

Posted (edited)

Be careful. If you rename a domain computer, you must use NETDOM.exe from Windows Supporttools. You must have administrative rights on workstation and on domain. You can specify multiple accounts with netdom.exe. See help netdom.exe renamecomputer /?. You can use autoit to set specific parameters for netdom.exe.

Also keep in mind: Passwords and Accounts are not safe in autoit compiled exe programs.

;-))

Stefan

Edited by 99ojo

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
×
×
  • Create New...