Radimus Posted December 20, 2004 Share Posted December 20, 2004 at some point my unattended CD (xpsp2+ hotfixes) is blowing the profile.When I look in docs & Settings there is administrator administrator.<computername> all users all users.windowsAny ideas on what I screwed up? It just started doing that one day.It is not joining domain, only workgroupI didn't see anything in the reg tweaks that deal with the shell folders... Link to comment Share on other sites More sharing options...
rdalling Posted December 20, 2004 Share Posted December 20, 2004 Are you doing a sysprep?I had to setup my system to reapply the setting on first login...I can provide more information if this will work for u.R Link to comment Share on other sites More sharing options...
Radimus Posted December 20, 2004 Author Share Posted December 20, 2004 before sysprepit does the unattend install and runonceex, and loads the desktop... the other profile folders are present by then. Link to comment Share on other sites More sharing options...
Radimus Posted December 23, 2004 Author Share Posted December 23, 2004 I have rebuilt the CD again and it is continuing to happenall the shell folders paths are afflicted by this.The UA cd completes and even before the first logoff the profiles are 'afflicted' by thisAny Ideas? Link to comment Share on other sites More sharing options...
Cartoonite Posted December 23, 2004 Share Posted December 23, 2004 How have you configured your uA process to run? For example, mine runs as follows:Text Mode SetupRebootGUI Mode SetupApply regtweaksCreate custom userSet custom user as auto logon accountRebootCustom user auto logonRun start.cmd to install appsRebootIf you could break down your uA process into something like this, it might help isolate the area where the problem is being created. Link to comment Share on other sites More sharing options...
Radimus Posted December 23, 2004 Author Share Posted December 23, 2004 Text Mode SetupRebootGUI Mode SetupApply HKCU regtweaks via cmdlines.txtset runonceex keys via cmdlines.txtRebootautoadmin logonrunonce keys install hotfixes (from CD)runonce keys install mso from CD 2runonce keys apply HKLM reg tweaksrunonce deletes aspnet userrunonce deletes temp filesgo to desktopfinishedat this time I can find that all the admin shell folders and the all user folders are pointed to the unusual/unexpected paths Link to comment Share on other sites More sharing options...
Cartoonite Posted December 23, 2004 Share Posted December 23, 2004 I would suggest cutting the uA down to the bare minimum to see if the folders are still created. Try cutting down the process to just:Text Mode SetupRebootGUI Mode SetupApply HKCU regtweaks via cmdlines.txtRebootautoadmin logonand then checking to see if the folders exist. If they do, the issue probably lies within either your WINNT.SIF file or your HKCU regtweaks. If they don't (which I think is more likely) they are probably being created either when a particular app is installed or via your HKLM regtweaks.One other quick question. Is there a reason why you have opted to install the hotfixes seperately rather than integrating them directly into your CD? Link to comment Share on other sites More sharing options...
Radimus Posted December 23, 2004 Author Share Posted December 23, 2004 I'll cut out the runonceex stuff to try and narrow it down... I can do this todayas for the patches, the type3 patches I could do so, they type 2 are a bit more involved, but isn't the goal of my process.My goal is to continue the UA cd through sysprep and ghost so I can deploy the image to the corp AND provide a simple automated process by which an updated image can be generatedWith this goal in mind, I have a batch that takes a slipstreamed vanilla XP SP2 source, deletes the uncessary folders, copies in the $oem$ and hotfix folders, copies in the winnt.sif file, and then ISOs and Burns it. Kind of a very basic version of GreenMachine's system, but I have to provide all the patches in the hotfix foders and it installs them during runonceex... just a few xcopy, move, and del statements with cdrecord and makeisoWhen that part is done it probpts for CD 2 (msoffice) and cd 3 (business apps like mcafee) copies in the drivers folders and sysprep files... I defrag it manually a few times, reboot it a few times and then sysprep it.Since this issue has popped up, I have skipped installing CD2 and CD3, Link to comment Share on other sites More sharing options...
Radimus Posted December 23, 2004 Author Share Posted December 23, 2004 I ran one without runonce, so all it is doing is hkcu.reg and winnt.sifThe allusers.windows folders appearedKey Name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell FoldersClass Name: <NO CLASS>Last Write Time: 12/23/2004 - 10:09 AMValue 0 Name: Common AppData Type: REG_SZ Data: C:\Documents and Settings\All Users.WINDOWS\Application DataValue 1 Name: Common Programs Type: REG_SZ Data: C:\Documents and Settings\All Users.WINDOWS\Start Menu\ProgramsValue 2 Name: Common Documents Type: REG_SZ Data: C:\Documents and Settings\All Users.WINDOWS\DocumentsValue 3 Name: Common Desktop Type: REG_SZ Data: C:\Documents and Settings\All Users.WINDOWS\Desktopetc...HKCU.reg.txt Link to comment Share on other sites More sharing options...
Cartoonite Posted December 23, 2004 Share Posted December 23, 2004 Bearing in mind that I am still relatively new at this myself, your regtweaks look clean. Also, your post shows that the suspect registry entries are created under HKLM rather than HKCU. That suggests to me that the issue being generated during some portion of the automated setup process itself. Taken from MSFN's Unattended XP CD Guide:» Text-mode Setup1. Loads Drivers2. Copies files required for Setup to the Hard Disk3. Copies the contents of your $OEM$ folders to the Hard Disk4. Reboots the PC...» GUI-mode Setup1. DetachedProgram executes from winnt.sif at T-39 minute stage2. Installs Devices3. Installs Network4. Installs Start Menu Items5. Registers Components6. svcpack.inf executes at T-13 minute stage7. cmdlines.txt executes at T-12 minute stage8. [setupParams] executes from winnt.sif at T-9 minute stage9. Saves Settings10. Deletes temporary files then reboots...» First Logon1. Windows XP logs you in and loads personal settings2. Both [GuiRunOnce] from winnt.sif and RunOnceEx executes at the same time3. Desktop and Taskbar loads.I believe we can rule out Text-mode Setup. There doesn't seem to be anything besides file-copying at that stage. Since you are using RunOnceEx, I assume you do not have anything in the [GuiRunOnce] section of WINNT.SIF, which means we can probably also ignore First Logon. This leaves only GUI-mode Setup. In looking at this timeline, I see four steps and three files that may be causing your problem. Steps 1 and 8 both make reference to WINNT.SIF (I believe), step 6 references svcpack.inf, and step 7 refers to cmdlines.txt.I suspect one, or more, of these three files has something in it that is causing the folders to be generated. In case you are unfamilliar with them, cmdlines.txt should be located in the $OEM$ folder while the other two should be in the I386 folder. It is possible that svcpack.inf may be cabbed as svcpack.in_. Take a look at these files, or post them here, to see if anything seems out of place.Hope this helps. Link to comment Share on other sites More sharing options...
prathapml Posted December 23, 2004 Share Posted December 23, 2004 I'm almost sure you're having this thing happening because of over-using the $Docs folder.Radimus, what folders do you have in $Docs ?For example, if $Docs\Administrator exists, it will get copied over during text-mode setup. Now when it comes to logging in the Administrator for the 1st time after install, windows assumes that "C:\Docs&Settings\Administrator" is a folder left-over from some previous install, and creates a new folder (Administrator.windows).What I do instead (assuming you want to fix the above problem), is to have and run silent extracting RAR SFXes, that extracts to %userprofile% when administrator gets logged in. Similarly, to extract to AllUsers, use %allusersprofile% but in this case you can extract to allusersprofile at T-12 itself.Hoping this helps... Link to comment Share on other sites More sharing options...
WwTIPPYwW Posted December 23, 2004 Share Posted December 23, 2004 I second prathapml theory! I've seen it before and that was the cause. Link to comment Share on other sites More sharing options...
Cartoonite Posted December 24, 2004 Share Posted December 24, 2004 Nice thinking, prathapml! Here I go again on another one of my long invloved trouble-shooting warpaths, when there may be just a simple solution to the problem. Post back, Radimus. Let us know if it has been solved. Link to comment Share on other sites More sharing options...
Radimus Posted December 24, 2004 Author Share Posted December 24, 2004 I have a $docs\All users\... for a rasphone.pbkI'll pull it out and just copy it in after the fact... I'll test it Monday Link to comment Share on other sites More sharing options...
Radimus Posted December 27, 2004 Author Share Posted December 27, 2004 It is still doing it... I have removed the hkcu.reg and the runonceex.cmd from cmdlines.txt (empty)Files added to CD:$OEM$\cmdlines.txt$OEM$\HKCU.reg$OEM$\RunOnceEx.cmd$OEM$\$$$OEM$\$$\Apps.cmd$OEM$\$$\CDR.exe$OEM$\$$\firewallcfg.cmd$OEM$\$$\Help$OEM$\$$\Hotfixes1.cmd$OEM$\$$\Hotfixes2.cmd$OEM$\$$\Hotfixes3.cmd$OEM$\$$\KIX32.EXE$OEM$\$$\kixforms.dll$OEM$\$$\Office.cmd$OEM$\$$\RegTweaks.reg$OEM$\$$\SHORTCUT.EXE$OEM$\$$\Shortcuts.cmd$OEM$\$$\sleep.exe$OEM$\$$\Switchless1.cmd$OEM$\$$\Switchless2.cmd$OEM$\$$\system32$OEM$\$$\user.cmd$OEM$\$$\Help\calcplus.chm$OEM$\$$\system32\cmdow.exe$OEM$\$$\system32\Drivers$OEM$\$$\system32\VCdControlTool.exe$OEM$\$$\system32\Drivers\VCdRom.sysHotfixes\Hotfixes.cmdHotfixes\qchain.exeHotfixes\Switchless1Hotfixes\Switchless1\dotnetfx.EXEHotfixes\Switchless1\dotnetfxsp1.EXEHotfixes\Switchless1\MSJAVA1.EXEHotfixes\Switchless1\MSJava2.EXEHotfixes\Switchless1\WMP10Silent.EXEHotfixes\Switchless2Hotfixes\Switchless2\MBSASetup-EN.msiHotfixes\Type1Hotfixes\Type2Hotfixes\Type2\WM9Codecs.exeHotfixes\Type3Hotfixes\Type3\WindowsXP-KB834707-x86-enu.exeHotfixes\Type3\WindowsXP-KB873339-x86-ENU.exeHotfixes\Type3\WindowsXP-KB885835-x86-ENU.exeHotfixes\Type3\WindowsXP-KB885836-x86-ENU.exeHotfixes\Type3\WindowsXP-KB885932-v2-x86-ENU.exeHotfixes\Type3\WindowsXP-KB886185-x86-enu.exeI386\WINNT.SIFWinnt.sif;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes" AutomaticUpdates=0[Unattended] UnattendMode = FullUnattended Repartition = No OemSkipEula = Yes OemPreinstall = Yes ComputerType = "Advanced Configuration and Power Interface (ACPI) PC", Retail TargetPath = \WINDOWS UnattendSwitch = Yes WaitForReboot = No Hibernation = No AutoActivate = No KeyboardLayout = "US" OemPnPDriversPath = "drivers\000_Chipset;drivers\001_network;drivers\002_video;drivers\003_cardbus;drivers\004_Sound;drivers\005_modem;drivers\006_irda;drivers\007_touchpad;drivers\008_printer" DriverSigningPolicy = Ignore NonDriverSigningPolicy = Ignore [GuiUnattended] AdminPassword="password" EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=1 OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1[Display] Xresolution=1024 Yresolution=768 BitsPerPel=16[UserData] ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx FullName="Agency" OrgName="Agency" ComputerName=*[Identification] JoinWorkgroup=FDHC[Networking] InstallDefaultComponents=Yes [IEPopupBlocker] AllowedSites=https://www.website.com BlockPopups=Yes FilterLevel=Medium ShowInformationBar=Yes[Branding] BrandIEUsingUnattended=Yes[URL] Home_Page=http://intranet/[Proxy] HTTP_Proxy_Server = http://proxy.agency.com:80 Proxy_Enable=1 Use_Same_Proxy=1 Proxy_Override = <local>[PCHealth] ER_Display_UI = 1 ER_Enable_Reporting = 0 RA_AllowToGetHelp = 0 RA_AllowFullControl = 0[TerminalServices]AllowConnections = 1[Components] AutoUpdate = off msmsgs = off msnexplr = off zonegames = off Solitaire = on Spider = On Pinball = Off minesweeper = on Freecell = On Hearts = Off OEAccess = Off Templates = Off[Shell] DefaultStartPanelOff=Yes DefaultThemesOff=Yes [GuiRunOnce]Runonceex.cmdcmdow @ /HID@echo Offset key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE "Installing Additional Applications" /fREG ADD %KEY%\001 /VE /D "Installation of Additional Components" /fREG ADD %KEY%\001 /V 1 /D "%windir%\Switchless1.cmd" /fREG ADD %KEY%\002 /VE /D "Installation of Type 1 Hotfixes" /fREG ADD %KEY%\002 /V 1 /D "%windir%\hotfixes1.cmd" /fREG ADD %KEY%\003 /VE /D "Installation of Type 2 Hotfixes" /fREG ADD %KEY%\003 /V 1 /D "%windir%\hotfixes2.cmd" /fREG ADD %KEY%\004 /VE /D "Installation of Type 3 Hotfixes" /fREG ADD %KEY%\004 /V 1 /D "%windir%\hotfixes3.cmd" /fREG ADD %KEY%\005 /VE /D "Installation of Additional Windows Apps" /fREG ADD %KEY%\005 /V 1 /D "%windir%\Switchless2.cmd" /fREG ADD %KEY%\008 /VE /D "Installation of Microsoft Office 2003" /fREG ADD %KEY%\008 /V 1 /D "%windir%\Office.cmd" /fREG ADD %KEY%\010 /VE /D "Installation of AHCA Apps" /fREG ADD %KEY%\010 /V 1 /D "%windir%\apps.cmd" /fREG ADD %KEY%\015 /VE /D "Installation of Kixtart Files" /fREG ADD %KEY%\015 /V 1 /D "regsvr32 /s kixforms.dll" /fREG ADD %KEY%\025 /VE /D "Creating and Modifying Shortcuts" /fREG ADD %KEY%\025 /V 1 /D "%windir%\shortcuts.cmd" /fREG ADD %KEY%\030 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\030 /V 1 /D "REGEDIT /S %windir%\RegTweaks.reg" /fREG ADD %KEY%\035 /VE /D "Setting Firewall Properties" /fREG ADD %KEY%\035 /V 1 /D "%windir%\firewallcfg.cmd" /fREG ADD %KEY%\090 /VE /D "Removing Unnecessary User Accounts" /fREG ADD %KEY%\090 /V 1 /D "%windir%\user.cmd" /fREG ADD %KEY%\095 /VE /D "Cleaning Up Temporary Files" /fREG ADD %KEY%\095 /V 1 /D "cmd /c del %windir%\*.cmd /f /q" /f 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