Jump to content

Admin profile problem


Recommended Posts

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

Any ideas on what I screwed up? It just started doing that one day.

It is not joining domain, only workgroup

I didn't see anything in the reg tweaks that deal with the shell folders...

Link to comment
Share on other sites


How have you configured your uA process to run? For example, mine runs as follows:

  1. Text Mode Setup
  2. Reboot
  3. GUI Mode Setup
  4. Apply regtweaks
  5. Create custom user
  6. Set custom user as auto logon account
  7. Reboot
  8. Custom user auto logon
  9. Run start.cmd to install apps
  10. Reboot

If 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

Text Mode Setup

Reboot

GUI Mode Setup

Apply HKCU regtweaks via cmdlines.txt

set runonceex keys via cmdlines.txt

Reboot

autoadmin logon

runonce keys install hotfixes (from CD)

runonce keys install mso from CD 2

runonce keys apply HKLM reg tweaks

runonce deletes aspnet user

runonce deletes temp files

go to desktop

finished

at 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

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 Setup

Reboot

GUI Mode Setup

Apply HKCU regtweaks via cmdlines.txt

Reboot

autoadmin logon

and 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

I'll cut out the runonceex stuff to try and narrow it down... I can do this today

as 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 generated

With 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 makeiso

When 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

I ran one without runonce, so all it is doing is hkcu.reg and winnt.sif

The allusers.windows folders appeared

Key Name:          HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Class Name:        <NO CLASS>

Last Write Time: 12/23/2004 - 10:09 AM

Value 0

  Name:            Common AppData

  Type:            REG_SZ

  Data:            C:\Documents and Settings\All Users.WINDOWS\Application Data

Value 1

  Name:            Common Programs

  Type:            REG_SZ

  Data:            C:\Documents and Settings\All Users.WINDOWS\Start Menu\Programs

Value 2

  Name:            Common Documents

  Type:            REG_SZ

  Data:            C:\Documents and Settings\All Users.WINDOWS\Documents

Value 3

  Name:            Common Desktop

  Type:            REG_SZ

  Data:            C:\Documents and Settings\All Users.WINDOWS\Desktop

etc...

HKCU.reg.txt

Link to comment
Share on other sites

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 Setup

1. Loads Drivers

2. Copies files required for Setup to the Hard Disk

3. Copies the contents of your $OEM$ folders to the Hard Disk

4. Reboots the PC...

» GUI-mode Setup

1. DetachedProgram executes from winnt.sif at T-39 minute stage

2. Installs Devices

3. Installs Network

4. Installs Start Menu Items

5. Registers Components

6. svcpack.inf executes at T-13 minute stage

7. cmdlines.txt executes at T-12 minute stage

8. [setupParams] executes from winnt.sif at T-9 minute stage

9. Saves Settings

10. Deletes temporary files then reboots...

» First Logon

1. Windows XP logs you in and loads personal settings

2. Both [GuiRunOnce] from winnt.sif and RunOnceEx executes at the same time

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

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

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

Hotfixes\Hotfixes.cmd
Hotfixes\qchain.exe
Hotfixes\Switchless1
Hotfixes\Switchless1\dotnetfx.EXE
Hotfixes\Switchless1\dotnetfxsp1.EXE
Hotfixes\Switchless1\MSJAVA1.EXE
Hotfixes\Switchless1\MSJava2.EXE
Hotfixes\Switchless1\WMP10Silent.EXE
Hotfixes\Switchless2
Hotfixes\Switchless2\MBSASetup-EN.msi
Hotfixes\Type1
Hotfixes\Type2
Hotfixes\Type2\WM9Codecs.exe
Hotfixes\Type3
Hotfixes\Type3\WindowsXP-KB834707-x86-enu.exe
Hotfixes\Type3\WindowsXP-KB873339-x86-ENU.exe
Hotfixes\Type3\WindowsXP-KB885835-x86-ENU.exe
Hotfixes\Type3\WindowsXP-KB885836-x86-ENU.exe
Hotfixes\Type3\WindowsXP-KB885932-v2-x86-ENU.exe
Hotfixes\Type3\WindowsXP-KB886185-x86-enu.exe

I386\WINNT.SIF

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

cmdow @ /HID
@echo Off
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V  TITLE "Installing Additional Applications" /f

REG ADD %KEY%\001 /VE /D "Installation of Additional Components" /f
REG ADD %KEY%\001 /V 1 /D "%windir%\Switchless1.cmd" /f

REG ADD %KEY%\002 /VE /D "Installation of Type 1 Hotfixes" /f
REG ADD %KEY%\002 /V 1 /D "%windir%\hotfixes1.cmd" /f

REG ADD %KEY%\003 /VE /D "Installation of Type 2 Hotfixes" /f
REG ADD %KEY%\003 /V 1 /D "%windir%\hotfixes2.cmd" /f

REG ADD %KEY%\004 /VE /D "Installation of Type 3 Hotfixes" /f
REG ADD %KEY%\004 /V 1 /D "%windir%\hotfixes3.cmd" /f

REG ADD %KEY%\005 /VE /D "Installation of Additional Windows Apps" /f
REG ADD %KEY%\005 /V 1 /D "%windir%\Switchless2.cmd" /f

REG ADD %KEY%\008 /VE /D "Installation of Microsoft Office 2003" /f
REG ADD %KEY%\008 /V 1 /D "%windir%\Office.cmd" /f

REG ADD %KEY%\010 /VE /D "Installation of AHCA Apps" /f
REG ADD %KEY%\010 /V 1 /D "%windir%\apps.cmd" /f

REG ADD %KEY%\015 /VE /D "Installation of Kixtart Files" /f
REG ADD %KEY%\015 /V 1 /D "regsvr32 /s kixforms.dll" /f

REG ADD %KEY%\025 /VE /D "Creating and Modifying Shortcuts" /f
REG ADD %KEY%\025 /V 1 /D "%windir%\shortcuts.cmd" /f

REG ADD %KEY%\030 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\030 /V 1 /D "REGEDIT /S %windir%\RegTweaks.reg" /f

REG ADD %KEY%\035 /VE /D "Setting Firewall Properties" /f
REG ADD %KEY%\035 /V 1 /D "%windir%\firewallcfg.cmd" /f

REG ADD %KEY%\090 /VE /D "Removing Unnecessary User Accounts" /f
REG ADD %KEY%\090 /V 1 /D "%windir%\user.cmd" /f

REG ADD %KEY%\095 /VE /D "Cleaning Up Temporary Files" /f
REG ADD %KEY%\095 /V 1 /D "cmd /c del %windir%\*.cmd /f /q" /f

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