jp10558 Posted December 15, 2009 Posted December 15, 2009 I used to use a Run command to start NewSid, but that's no longer supported in Win7... How would you do this now?
joehittn Posted May 8, 2012 Posted May 8, 2012 (edited) 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 sysprep2) use sidchg.exe from www.stratesave.comexplained in english hereexplained in german herei 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.comthere has to be a copy of sidchg64.exe in your windows directoryexpandcollapse popup#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 May 8, 2012 by joehittn
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