white_tiger Posted September 11, 2004 Share Posted September 11, 2004 evilvoiceI deleted it after I create and logon with the new userCoolsights2000I just delete the Default user not Default User.Domainnamebut I didn't use the ~SIDShutDownBlocker.cmd filetake a look at my filesRunOnceEx.cmdcmdow @ /HID@Echo OffIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:rem PP=%cdrom%\Apps\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "**** ****" /fREG ADD %KEY%\000 /VE /D "Default User Swap" /fREG ADD %KEY%\000 /V 1 /D "%systemdrive%\Apps\~SIDefaultuser\~SIDefaultuser.cmd" /fREG ADD %KEY%\001 /VE /D "Register ACDSee 6.0.6 PowerPack" /fREG ADD %KEY%\001 /V 1 /D "REGEDIT /S %cdrom%\Apps\ACDSee6\register.reg" /fREG ADD %KEY%\002 /VE /D "ACD Systems ACDSee 6.0.6 PowerPack" /fREG ADD %KEY%\002 /V 1 /D "%cdrom%\Apps\ACDSee6\ACDSee6.msi REBOOT=REALLYSUPPRESS /qb-" /fREG ADD %KEY%\003 /VE /D "Adobe Reader 6.0.1 Full" /fREG ADD %KEY%\003 /V 1 /D "%cdrom%\Apps\AdobeReader6\Adobe_Reader_6.0.1_full.exe -p\"-s /v\"/qn\"\"" /fREG ADD %KEY%\004 /VE /D "Update Adobe Reader To 6.02" /fREG ADD %KEY%\004 /V 1 /D "%cdrom%\Apps\AdobeReader6\update.exe /s /v/qb" /fREG ADD %KEY%\005 /VE /D "Registering Alcohol 120" /fREG ADD %KEY%\005 /V 1 /D "REGEDIT /S %cdrom%\Apps\alcohol120\register.reg" /fREG ADD %KEY%\006 /VE /D "Installing AlCohol 120" /fREG ADD %KEY%\006 /V 1 /D "%cdrom%\Apps\Alcohol120\setup.exe REBOOT=REALLYSUPPRESS /qb-" /fREG ADD %KEY%\007 /VE /D "Codec Pack All in 1 Build 6.0.1.7" /fREG ADD %KEY%\007 /V 1 /D "%cdrom%\Apps\CodecPack_All_In_1\setup.exe /s" /fREG ADD %KEY%\008 /VE /D "Diskeeper Professional Edition V8.0.478" /fREG ADD %KEY%\008 /V 1 /D "%cdrom%\Apps\Diskeeper\setup.exe /s /v/qn" /fREG ADD %KEY%\009 /VE /D "Mozilla Firefox 0.9.3 Browser" /fREG ADD %KEY%\009 /V 1 /D "%cdrom%\Apps\Firefox_0.9.3\setup.exe -ms -ira" /fREG ADD %KEY%\010 /VE /D "Flashget 1.65" /fREG ADD %KEY%\010 /V 1 /D "%cdrom%\Apps\flashget\fgf165.exe /S" /fREG ADD %KEY%\011 /VE /D "Registering FlashGet 1.65" /fREG ADD %KEY%\011 /V 1 /D "REGEDIT /S %cdrom%\Apps\flashget\register.reg" /fREG ADD %KEY%\012 /VE /D "Maxthon v1.0.0250 Combo Browser" /fREG ADD %KEY%\012 /V 1 /D "%cdrom%\Apps\Maxthon\maxthon.exe /S" /fREG ADD %KEY%\013 /VE /D "MSN Messenger 6.2 Final" /fREG ADD %KEY%\013 /V 1 /D "%cdrom%\Apps\MSN\msnmsgs.msi /QB" /fREG ADD %KEY%\014 /VE /D "Nero Burning ROM v6.3.1.20 Enterprise Edition" /fREG ADD %KEY%\014 /V 1 /D "%cdrom%\Apps\Nero\Nero63120.exe /silent /noreboot" /fREG ADD %KEY%\015 /VE /D ".NET Framework v1.1" /fREG ADD %KEY%\015 /V 1 /D "%SystemDrive%\Apps\NetFramework\netfx.msi /QB" /fREG ADD %KEY%\016 /VE /D ".NET Framework v1.1 SP1" /fREG ADD %KEY%\016 /V 1 /D "%SystemDrive%\Apps\NET.Framework.SP1\setup.exe /QB" /fREG ADD %KEY%\017 /VE /D "PowerDVD V5.6.0.3 Deluxe" /fREG ADD %KEY%\017 /V 1 /D "%cdrom%\Apps\PowerDVD_5\PowerDVD_5\setup.exe -S" /fREG ADD %KEY%\018 /VE /D "PowerDVD 5 Patch to Build No. 1203" /fREG ADD %KEY%\018 /V 1 /D "%cdrom%\Apps\PowerDVD_5\PowerDVD_5_Patch\setup.exe -S" /fREG ADD %KEY%\019 /VE /D "PowerToys TweakUI 2.10" /fREG ADD %KEY%\019 /V 1 /D "%cdrom%\Apps\PowerToys\TweakUI2.10\TweakUI.msi /qn" /fREG ADD %KEY%\020 /VE /D "Quick Time V6.5.1" /fREG ADD %KEY%\020 /V 1 /D "%cdrom%\Apps\QuickTime\QuickTimeFullInstaller.exe /VERYSILENT /SP-" /fREG ADD %KEY%\021 /VE /D "Real Player V10.5 With Harmony Technology" /fREG ADD %KEY%\021 /V 1 /D "%cdrom%\Apps\real\setup.exe /s /v /qn" /fREG ADD %KEY%\022 /VE /D "Spy Sweeper V3.0 build 129" /fREG ADD %KEY%\022 /V 1 /D "%cdrom%\Apps\Spysweeper\setup.exe /VERYSILENT /SP-" /fREG ADD %KEY%\022 /V 2 /D "cmd.exe /c xcopy /y %cdrom%\Apps\spysweeper\install.dat \"%ProgramFiles%\Webroot\Spy Sweeper\\"" /fREG ADD %KEY%\023 /VE /D "SUN JAVA VM 1.4.2" /fREG ADD %KEY%\023 /V 1 /D "%cdrom%\Apps\SunJava\setup.exe /s /v"/qn" /fREG ADD %KEY%\024 /VE /D "UltraISO Media Edition 7.21" /fREG ADD %KEY%\024 /V 1 /D "%cdrom%\Apps\UltraISO\setup.exe /VERYSILENT /SP-" /fREG ADD %KEY%\025 /VE /D "Registring UltraISO" /fREG ADD %KEY%\025 /V 1 /D "%cdrom%\Apps\UltraISO\register.exe" /fREG ADD %KEY%\026 /VE /D "WinRAR 3.3 Corporate Edition" /fREG ADD %KEY%\026 /V 1 /D "%cdrom%\Apps\WinRAR\WinRAR33.exe /s" /fREG ADD %KEY%\027 /VE /D "WinXP Manager V4.8.5" /fREG ADD %KEY%\027 /V 1 /D "%cdrom%\Apps\WinXP_Manager_V4.8.5\xpmanager.msi /qn" /fREG ADD %KEY%\028 /VE /D "Registering WinXP Manager" /fREG ADD %KEY%\028 /V 1 /D "REGEDIT /S %cdrom%\Apps\WinXP_Manager_V4.8.5\register.reg" /fREG ADD %KEY%\029 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\029 /V 1 /D "%cdrom%\Apps\WMP10\setup.exe /q:A /c:\"setup_wm.exe /Q /R:N DisallowSystemRestore\"" /fREG ADD %KEY%\030 /VE /D "Yahoo Messenger 6.0" /fREG ADD %KEY%\030 /V 1 /D "%cdrom%\Apps\Yahoo\ymsgrie.exe /s" /fREG ADD %KEY%\031 /VE /D "Shutting Down Yahoo Messenger" /fREG ADD %KEY%\031 /V 1 /D "%cdrom%\Apps\Yahoo\pager.cmd" /fREG ADD %KEY%\032 /VE /D "Microsoft Plus! For XP" /fREG ADD %KEY%\032 /V 1 /D "%cdrom%\Apps\MicrosoftPlus\setup.msi /QB" /fREG ADD %KEY%\033 /VE /D "MS Office 2003 Professional" /fREG ADD %KEY%\033 /V 1 /D "%cdrom%\OFFICE.2003.AIO\OFFICE\setup.exe TRANSFORMS=Unattended.MST /qb-" /fREG ADD %KEY%\034 /VE /D "Importing Registery Tweaks" /fREG ADD %KEY%\034 /V 1 /D "REGEDIT /S %cdrom%\Apps\RegTweaks.reg" /fREG ADD %KEY%\035 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\035 /V 1 /D "%cdrom%\apps\cleanup.cmd" /fEXIT~SIDefaultuser.cmdTITLE SIDFinishcmdow @ /HID@echo offClsECHO.ECHO SID Finish%systemdrive%\Apps\~SIDefaultuser\Sid.vbsStart /wait shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute And you will be on the Default User Profile"ECHO.ECHO Restarting the PC in 1 minute...pauseEXITSid.vbsOn Error Resume NextDIM HKLMLOCstrComputer = "."Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colItems = objWMIService.ExecQuery("Select * from Win32_Account",,48)For Each objItem in colItems If objItem.Name = "Default User" then HKLMLOC = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\" & objItem.SID & "\ProfileImagePath" Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegWrite HKLMLOC,"%SystemDrive%\Documents and Settings\Default User","REG_EXPAND_SZ" END IFNextautologon.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Default User""DefaultPassword"="""AutoAdminLogon"="1";Disable Administrator User[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]"Administrator"=dword:00000000cmdlines.txt[COMMANDS]"usersetup.cmd""RunOnceEx.cmd"that's all Link to comment Share on other sites More sharing options...
white_tiger Posted September 11, 2004 Share Posted September 11, 2004 for usersetup.cmd@echo offcmdow @ /HIDtitle Setup Accountsrenuser Guest Disablednet localgroup guests Disabled /deletenet user aspnet /deletenet user HelpAssistant /deletenet user SUPPORT_388945a0 /deleteclsnet user "Default User" /addnet localgroup Administrators "Default User" /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regexit Link to comment Share on other sites More sharing options...
evilvoice Posted September 11, 2004 Share Posted September 11, 2004 i do exactly what you do, and it works for me, well I have yet to create a new user or anything, but the switch is successful...and I dont think you can delete the default user, I think windows needs this...default user is not a normal user...it is being used here in that way, but you really should never delete the default user...you can delete the default user.domain, but should never delete the default user. Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 11, 2004 Author Share Posted September 11, 2004 That is true evilWe created a throw away default user.domainname The plain default user you have to keep,,,you are switching from the default user.domainname to the hidden default user profile... Link to comment Share on other sites More sharing options...
webservices Posted September 11, 2004 Share Posted September 11, 2004 GOOD. 1) but to resume, what really we should do and not ?2 ) is there a way to have a choice between a tweak user and a normal one when creating one ?should be great, cause sometimes for work i really need a clean and full installtion with no tweak to invetsigate on customers problems. Link to comment Share on other sites More sharing options...
white_tiger Posted September 11, 2004 Share Posted September 11, 2004 evilvoiceCoolsights2000thanks aloti think there is a Missunderstanding when I said I deleted the Default User , I meant from the User Accounts not the hidden folder in Documents and Settings\and i delete the default user.domainname foldernowI modify reg key AutoAdminLogon to 0then I restart it again and it's working GREATE any idea to modify the key automatic after I create the new user name ? Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 11, 2004 Author Share Posted September 11, 2004 any idea to modify the key automatic after I create the new user name ? Why do you want to create a new users!I'm confused as to who what where when and why......if you mean before you login the first time as far as i know the answer is nounless someonne knows how to modify the files sooner.....the only folders that you should see while you are loading software isDocuments and Settings All Users Default User LocalService NetworkServiceand the Default User.domainname if you have not deleted it yet,,,LOL On deleting the Default User in the applet .... it got rid of the hidden default users /// and left the Default User.domainname but that profile is useless cause you remove the link to it...Mac! Link to comment Share on other sites More sharing options...
white_tiger Posted September 11, 2004 Share Posted September 11, 2004 I'm not making this Unattended Windows for me onlyI need to make it easy for who duesn't like the Defaul Userany buddy used this CD and creat a user name for himself then delete the Default User once he restart the windows it'll looks for the Default User for auto logon, in that time windows will tops on the welcome screen caus the default user duesn't exist any more right ?!!for now i'll tri something and i hope it worksat the end I added in cleanup.cmdREGEDIT /S %systemdrive%\Apps\disableautologon.regHope it works with me Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 11, 2004 Author Share Posted September 11, 2004 OK Now I got youok so lets say you get to the end of installing all the software then you can make a new user just like you made the default user.domain in the beginning when you reboot it will boot on to there desktop..just add a new set of these at the end .... useraccounts.cmd autologon.reghave it reboot and you will be on there new desktop...just add to the register to hide the default users like you do to the admin account...you could even prompt them for there user name...somebody might even know how to get that window that you normal get when you don't do a unattended install..also you could leave the defualt user.domain and just relink back to it then delete that profile... that would put the hidden default back to hidden....So many idea's cause when they create there new profile it will come from the hidden default user... and that one is the one you loaded up...it all depends on how you want to do it you could have it log into the admin account and let them go from there....and at the same time unlink from the default user and go back to the default user domain.name and delete that one at the same time...here are the netuser commands you will notice there is delete in there http://support.microsoft.com/?kbid=251394once you change the links and enable the admin account on the reboot put in the runonceEX a commandalso hide the default user net user "Default User" /deleteMac! Link to comment Share on other sites More sharing options...
white_tiger Posted September 11, 2004 Share Posted September 11, 2004 Finaly it works perfect I used this reg filedisableautologon.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Default User""DefaultPassword"="""AutoAdminLogon"="0";Disable Administrator User[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]"Administrator"=dword:00000000at the end of installing the softwares in cleanup.cmd filenow I can delete the Default User and create new users without any problemsthanks for every one Link to comment Share on other sites More sharing options...
white_tiger Posted September 11, 2004 Share Posted September 11, 2004 I think we post at the same time any way it works fine nowbut I think ur idea to prompt them for theire user name is better .. so how could I do it like that ?Best Regards Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 11, 2004 Author Share Posted September 11, 2004 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Admin""DefaultPassword"="""AutoAdminLogon"="0";Disable ASPNET and Administrator User[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]"ASPNET"=dword:00000000"Administrator"=dword:00000001change admin to onemodify my default user to change it back to default user.domain nameon the reboot run thiscmdow @ /HID@echo offnet user "Default User" /DeleteEXIT Link to comment Share on other sites More sharing options...
white_tiger Posted September 12, 2004 Share Posted September 12, 2004 Do you meane I have to modify the disableautologon.regto Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Admin""DefaultPassword"="""AutoAdminLogon"="0";Disable ASPNET and Administrator User[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]"ASPNET"=dword:00000000"Administrator"=dword:00000001and add thisnet user "Default User" /Deleteto my cleanup.cmdin the end it'll be like thiscleanup.cmdcmdow @ /HID@echo offshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deletenet user "Default User" /DeleteREGEDIT /S %systemdrive%\Apps\disableautologon.regRD /S /Q "%systemroot%\Cache\Adobe Reader 6\"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\apps\EXITis that all ? Link to comment Share on other sites More sharing options...
white_tiger Posted September 12, 2004 Share Posted September 12, 2004 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