Sign in to follow this  
Followers 0

Change Windows 7 Computer Name?

2 posts in this topic

I used to use a Run command to start NewSid, but that's no longer supported in Win7... How would you do this now?

Share this post

Link to post
Share on other sites

#2 ·  Posted (edited)


newsid is no longer existing.

you might want to read about this here.

my conclusion was that it is not necessary for the most part of it, but for the wsus-stuff, so i searched for a way to still change it, just to go for sure.

you can change the sid in two different ways:

1) windows sysprep

2) use sidchg.exe from

explained in english here

explained in german here

i made a little gui where you can enter the new computername you want to choose while changing the sid.


download sidchg64.exe from

there has to be a copy of sidchg64.exe in your windows directory

#include <GUIConstants.au3>  ;this is required for a GUI to work
;This creates the inital GUI box
GUICreate ("RaumUmwelt Administrations GUI",370,140)
GUICtrlCreateLabel("SID-Changer für Windows 7 64bit",10,5)
GUICtrlCreateLabel("Achtung: sidchg64.exe muss bereits in windowssystem32 vorhanden sein!",10,30)
$But_Start = GUICtrlCreateButton("Start!", 60, 100, 100, 20)
$But_Exit = GUICtrlCreateButton("Exit", 260, 100, 100, 20) ;This causes the application to exit
GUICtrlCreateLabel("Eingabe des neuen Computernamens", 10, 80, 230, 17)
$Input1 = GUICtrlCreateInput("rXX", 10, 99, 32, 21)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $But_EXIT
Case $But_Start
   $input_Comp = GUICtrlRead ($input1, 1)
   _sidchg64 ()

Func  _sidchg64 ()
    sleep (1000)
send ("#r", 0)
sleep (500)
send ("cmd", 0)
sleep (1000)
send ("{enter}")
sleep (1000)
send (@WindowsDir&"System32sidchg64 /COMPNAME:"&$input_Comp& " /F /R")
    sleep (500)
send ("{enter}")
Edited by joehittn

Share this post

Link to post
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
Sign in to follow this  
Followers 0