Jump to content

Change Windows 7 Computer Name?


jp10558
 Share

Recommended Posts

  • 2 years later...

hi,

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 www.stratesave.com

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.

prerequisites:

download sidchg64.exe from stratesave.com

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)
GUISetFont(10,600)
GUICtrlCreateLabel("SID-Changer für Windows 7 64bit",10,5)
GUISetFont(8,400)
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
GUISetFont(7,400)
GUICtrlCreateLabel("Eingabe des neuen Computernamens", 10, 80, 230, 17)
GUISetFont(8,400)
$Input1 = GUICtrlCreateInput("rXX", 10, 99, 32, 21)

GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
  Exit
Case $But_EXIT
  Exit
Case $But_Start
   $input_Comp = GUICtrlRead ($input1, 1)
   _sidchg64 ()
EndSwitch
WEnd

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}")
EndFunc
Edited by joehittn
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...