unsuwe Posted October 30, 2008 Share Posted October 30, 2008 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. Link to comment Share on other sites More sharing options...
BrettF Posted October 30, 2008 Share Posted October 30, 2008 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 Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
SpecialK Posted October 30, 2008 Share Posted October 30, 2008 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 Link to comment Share on other sites More sharing options...
99ojo Posted October 30, 2008 Share Posted October 30, 2008 (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 October 30, 2008 by 99ojo Link to comment Share on other sites More sharing options...
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