Jump to content

Shortcut to Change Computer Name

Recommended Posts

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


Have you try this tool ? WSNAME


It's about to provide an automated method to change a workstations name

I have created a simple VBS script to change, in my unattended XPCD,with a popup the computer name.


'Script de changement du nom de machine de l'ordinateur.

Option Explicit

Dim objNet, sh, commande_wsname,utilisateur,ordinateur,domaine

Set objNet = WScript.CreateObject("WScript.Network")

Set Sh = WScript.CreateObject("WScript.Shell")

Utilisateur = objNet.UserName

Ordinateur = objNet.ComputerName

Domaine = objNet.UserDomain

Dim 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.Quit

WScript.Echo "Bienvenue " & Domaine & "\" & Utilisateur & "."

'Lancement de wsname pour changer le nom de l ordinateur

commande_wsname="wsname.exe" & " /n:" & MachineName & " /NOREBOOT /MCN"

Sh.run commande_wsname

Link to comment
Share on other sites

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

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