Jump to content

Default User Swap Revised


Recommended Posts

evilvoice

I deleted it after I create and logon with the new user

Coolsights2000

I just delete the Default user not Default User.Domainname

but I didn't use the ~SIDShutDownBlocker.cmd file

take a look at my files

RunOnceEx.cmd

cmdow @ /HID
@Echo Off

IF 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\RunOnceEx

REG ADD %KEY% /V TITLE /D "**** ****" /f

REG ADD %KEY%\000 /VE /D "Default User Swap" /f
REG ADD %KEY%\000 /V 1 /D "%systemdrive%\Apps\~SIDefaultuser\~SIDefaultuser.cmd" /f

REG ADD %KEY%\001 /VE /D "Register ACDSee 6.0.6 PowerPack" /f
REG ADD %KEY%\001 /V 1 /D "REGEDIT /S %cdrom%\Apps\ACDSee6\register.reg" /f

REG ADD %KEY%\002 /VE /D "ACD Systems ACDSee 6.0.6 PowerPack" /f
REG ADD %KEY%\002 /V 1 /D "%cdrom%\Apps\ACDSee6\ACDSee6.msi REBOOT=REALLYSUPPRESS /qb-" /f

REG ADD %KEY%\003 /VE /D "Adobe Reader 6.0.1 Full" /f
REG ADD %KEY%\003 /V 1 /D "%cdrom%\Apps\AdobeReader6\Adobe_Reader_6.0.1_full.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\004 /VE /D "Update Adobe Reader To 6.02" /f
REG ADD %KEY%\004 /V 1 /D "%cdrom%\Apps\AdobeReader6\update.exe /s /v/qb" /f

REG ADD %KEY%\005 /VE /D "Registering Alcohol 120" /f
REG ADD %KEY%\005 /V 1 /D "REGEDIT /S %cdrom%\Apps\alcohol120\register.reg" /f

REG ADD %KEY%\006 /VE /D "Installing AlCohol 120" /f
REG ADD %KEY%\006 /V 1 /D "%cdrom%\Apps\Alcohol120\setup.exe REBOOT=REALLYSUPPRESS /qb-" /f

REG ADD %KEY%\007 /VE /D "Codec Pack All in 1 Build 6.0.1.7" /f
REG ADD %KEY%\007 /V 1 /D "%cdrom%\Apps\CodecPack_All_In_1\setup.exe /s" /f

REG ADD %KEY%\008 /VE /D "Diskeeper Professional Edition V8.0.478" /f
REG ADD %KEY%\008 /V 1 /D "%cdrom%\Apps\Diskeeper\setup.exe /s /v/qn" /f

REG ADD %KEY%\009 /VE /D "Mozilla Firefox 0.9.3 Browser" /f
REG ADD %KEY%\009 /V 1 /D "%cdrom%\Apps\Firefox_0.9.3\setup.exe -ms -ira" /f

REG ADD %KEY%\010 /VE /D "Flashget 1.65" /f
REG ADD %KEY%\010 /V 1 /D "%cdrom%\Apps\flashget\fgf165.exe /S" /f

REG ADD %KEY%\011 /VE /D "Registering FlashGet 1.65" /f
REG ADD %KEY%\011 /V 1 /D "REGEDIT /S %cdrom%\Apps\flashget\register.reg" /f

REG ADD %KEY%\012 /VE /D "Maxthon v1.0.0250 Combo Browser" /f
REG ADD %KEY%\012 /V 1 /D "%cdrom%\Apps\Maxthon\maxthon.exe /S" /f

REG ADD %KEY%\013 /VE /D "MSN Messenger 6.2 Final" /f
REG ADD %KEY%\013 /V 1 /D "%cdrom%\Apps\MSN\msnmsgs.msi /QB" /f

REG ADD %KEY%\014 /VE /D "Nero Burning ROM v6.3.1.20 Enterprise Edition" /f
REG ADD %KEY%\014 /V 1 /D "%cdrom%\Apps\Nero\Nero63120.exe /silent /noreboot" /f

REG ADD %KEY%\015 /VE /D ".NET Framework v1.1" /f
REG ADD %KEY%\015 /V 1 /D "%SystemDrive%\Apps\NetFramework\netfx.msi /QB" /f

REG ADD %KEY%\016 /VE /D ".NET Framework v1.1 SP1" /f
REG ADD %KEY%\016 /V 1 /D "%SystemDrive%\Apps\NET.Framework.SP1\setup.exe /QB" /f

REG ADD %KEY%\017 /VE /D "PowerDVD V5.6.0.3 Deluxe" /f
REG ADD %KEY%\017 /V 1 /D "%cdrom%\Apps\PowerDVD_5\PowerDVD_5\setup.exe -S" /f

REG ADD %KEY%\018 /VE /D "PowerDVD 5 Patch to Build No. 1203" /f
REG ADD %KEY%\018 /V 1 /D "%cdrom%\Apps\PowerDVD_5\PowerDVD_5_Patch\setup.exe -S" /f

REG ADD %KEY%\019 /VE /D "PowerToys TweakUI 2.10" /f
REG ADD %KEY%\019 /V 1 /D "%cdrom%\Apps\PowerToys\TweakUI2.10\TweakUI.msi /qn" /f

REG ADD %KEY%\020 /VE /D "Quick Time V6.5.1" /f
REG ADD %KEY%\020 /V 1 /D "%cdrom%\Apps\QuickTime\QuickTimeFullInstaller.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\021 /VE /D "Real Player V10.5 With Harmony Technology" /f
REG ADD %KEY%\021 /V 1 /D "%cdrom%\Apps\real\setup.exe /s /v /qn" /f

REG ADD %KEY%\022 /VE /D "Spy Sweeper V3.0 build 129" /f
REG ADD %KEY%\022 /V 1 /D "%cdrom%\Apps\Spysweeper\setup.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\022 /V 2 /D "cmd.exe /c xcopy /y %cdrom%\Apps\spysweeper\install.dat \"%ProgramFiles%\Webroot\Spy Sweeper\\"" /f

REG ADD %KEY%\023 /VE /D "SUN JAVA VM 1.4.2" /f
REG ADD %KEY%\023 /V 1 /D "%cdrom%\Apps\SunJava\setup.exe /s /v"/qn" /f

REG ADD %KEY%\024 /VE /D "UltraISO Media Edition 7.21" /f
REG ADD %KEY%\024 /V 1 /D "%cdrom%\Apps\UltraISO\setup.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\025 /VE /D "Registring UltraISO" /f
REG ADD %KEY%\025 /V 1 /D "%cdrom%\Apps\UltraISO\register.exe" /f

REG ADD %KEY%\026 /VE /D "WinRAR 3.3 Corporate Edition" /f
REG ADD %KEY%\026 /V 1 /D "%cdrom%\Apps\WinRAR\WinRAR33.exe /s" /f

REG ADD %KEY%\027 /VE /D "WinXP Manager V4.8.5" /f
REG ADD %KEY%\027 /V 1 /D "%cdrom%\Apps\WinXP_Manager_V4.8.5\xpmanager.msi /qn" /f

REG ADD %KEY%\028 /VE /D "Registering WinXP Manager" /f
REG ADD %KEY%\028 /V 1 /D "REGEDIT /S %cdrom%\Apps\WinXP_Manager_V4.8.5\register.reg" /f

REG ADD %KEY%\029 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\029 /V 1 /D "%cdrom%\Apps\WMP10\setup.exe /q:A /c:\"setup_wm.exe /Q /R:N DisallowSystemRestore\"" /f

REG ADD %KEY%\030 /VE /D "Yahoo Messenger 6.0" /f
REG ADD %KEY%\030 /V 1 /D "%cdrom%\Apps\Yahoo\ymsgrie.exe /s" /f

REG ADD %KEY%\031 /VE /D "Shutting Down Yahoo Messenger" /f
REG ADD %KEY%\031 /V 1 /D "%cdrom%\Apps\Yahoo\pager.cmd" /f

REG ADD %KEY%\032 /VE /D "Microsoft Plus! For XP" /f
REG ADD %KEY%\032 /V 1 /D "%cdrom%\Apps\MicrosoftPlus\setup.msi /QB" /f

REG ADD %KEY%\033 /VE /D "MS Office 2003 Professional" /f
REG ADD %KEY%\033 /V 1 /D "%cdrom%\OFFICE.2003.AIO\OFFICE\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\034 /VE /D "Importing Registery Tweaks" /f
REG ADD %KEY%\034 /V 1 /D "REGEDIT /S %cdrom%\Apps\RegTweaks.reg" /f

REG ADD %KEY%\035 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\035 /V 1 /D "%cdrom%\apps\cleanup.cmd" /f

EXIT

~SIDefaultuser.cmd

TITLE SIDFinish
cmdow @ /HID
@echo off
Cls

ECHO.
ECHO SID Finish

%systemdrive%\Apps\~SIDefaultuser\Sid.vbs

Start /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...
pause
EXIT

Sid.vbs

On Error Resume Next
DIM HKLMLOC
strComputer = "."
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 IF
Next

autologon.reg

Windows 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:00000000

cmdlines.txt

[COMMANDS]
"usersetup.cmd"
"RunOnceEx.cmd"

that's all :)

Link to comment
Share on other sites


for usersetup.cmd

@echo off

cmdow @ /HID
title Setup Accounts

renuser Guest Disabled
net localgroup guests Disabled /delete
net user aspnet /delete
net user HelpAssistant /delete
net user SUPPORT_388945a0 /delete
cls

net user "Default User" /add
net localgroup Administrators "Default User" /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
exit

:D

Link to comment
Share on other sites

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

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

evilvoice

Coolsights2000

thanks alot

i think there is a Missunderstanding :P

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 folder

now

I modify reg key AutoAdminLogon to 0

then I restart it again and it's working GREATE

:thumbup

any idea to modify the key automatic after I create the new user name ?

Link to comment
Share on other sites

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 no

unless someonne knows how to modify the files sooner.....

the only folders that you should see while you are loading software is

Documents and Settings

All Users

Default User

LocalService

NetworkService

and 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

I'm not making this Unattended Windows for me only

I need to make it easy for who duesn't like the Defaul User

any 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 works

at the end I added in

cleanup.cmd

REGEDIT /S %systemdrive%\Apps\disableautologon.reg

Hope it works with me :)

Link to comment
Share on other sites

OK Now I got you

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

have 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=251394

once you change the links and enable the admin account

on the reboot put in the runonceEX a command

also hide the default user

net user "Default User" /delete

Mac!

Link to comment
Share on other sites

:thumbup:thumbup:thumbup

Finaly it works perfect :D

I used this reg file

disableautologon.reg

Windows 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:00000000

at the end of installing the softwares

in cleanup.cmd file

now I can delete the Default User and create new users without any problems

thanks for every one

Link to comment
Share on other sites

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:00000001

change admin to one

modify my default user to change it back to default user.domain name

on the reboot run this

cmdow @ /HID
@echo off

net user "Default User" /Delete
EXIT

Link to comment
Share on other sites

Do you meane I have to modify the

disableautologon.reg

to

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:00000001

and add this

net user "Default User" /Delete

to my cleanup.cmd

in the end it'll be like this

cleanup.cmd

cmdow @ /HID
@echo off

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete

net user "Default User" /Delete

REGEDIT /S %systemdrive%\Apps\disableautologon.reg

RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"
RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\apps\

EXIT

is that all ?

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