mls15000 Posted June 15, 2006 Share Posted June 15, 2006 I need to create a shortcut to the Change Computer Name applet in XP. I have found this, "control.exe sysdm.cpl,,1 -1", will open the system propereties and computer name tab, but I want to open the Change Computer Name applet directly. Anybody know the command to do this? Link to comment Share on other sites More sharing options...
Doc Symbiosis Posted June 15, 2006 Share Posted June 15, 2006 Don't know a shortcut, but you could use the following AutoIT scriptRun("control sysdm.cpl,,1 -1")WinWaitActive("System Properties")Send("!c")Unfortunately it only runs on english versions. Link to comment Share on other sites More sharing options...
gizmo127 Posted June 15, 2006 Share Posted June 15, 2006 Hello,Have you try this tool ? WSNAMEhttp://mystuff.clarke.co.nz/wsname.aspIt's about to provide an automated method to change a workstations nameI have created a simple VBS script to change, in my unattended XPCD,with a popup the computer name.Bye'Script de changement du nom de machine de l'ordinateur.Option ExplicitDim objNet, sh, commande_wsname,utilisateur,ordinateur,domaineSet objNet = WScript.CreateObject("WScript.Network")Set Sh = WScript.CreateObject("WScript.Shell")Utilisateur = objNet.UserNameOrdinateur = objNet.ComputerNameDomaine = objNet.UserDomainDim MachineName'********************** Nom de la machine ***************************'MachineName = InputBox("Nom de machine actuelle :" & ordinateur & vbCrLf & "Utlisateur :" & utilisateur & vbCrLf & vbCrLf & "Entrez le nouveau nom d'ordinateur : ", "Changement nom ordinateur", "WIN_XPSP2")If MachineName = "" Then WScript.QuitWScript.Echo "Bienvenue " & Domaine & "\" & Utilisateur & "."'Lancement de wsname pour changer le nom de l ordinateurcommande_wsname="wsname.exe" & " /n:" & MachineName & " /NOREBOOT /MCN"Sh.run commande_wsname Link to comment Share on other sites More sharing options...
mls15000 Posted June 16, 2006 Author Share Posted June 16, 2006 I have scripts to rename the computer to a three letter site code and serial number and then join the machine to the domain that work fine. I need this to pop up on machines that get reimaged. The scriptwii fail if the machine account already exixts in the domain, but if I do it manually it joins fine. Link to comment Share on other sites More sharing options...
bober Posted June 16, 2006 Share Posted June 16, 2006 thanks gizmo127, just what i have been looking for. 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