Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: User Profiles - Create and Move During Windows 7 Installation

03 May 2012   #300
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by RCWin7 4M View Post
I'm using Notepad++ to edit Kari's script. I keep getting an error message when I check the xml syntax. "XML parsing error at line 11; Extra content at the end of the document"
...
Syntax is correct, if your install media is located on drive R:.

You can use any Windows 7 install media when sysprepping, it does not need to be the one you have used to install. Get an OEM or Retail SP1 ISO, burn or create a USB and use it. Should work.

Kari


My System SpecsSystem Spec
.
08 May 2012   #301
Jenac

Win 7 64 bit
 
 
Excellent guide!!!

Well done. Super useful. Love it!
My System SpecsSystem Spec
22 May 2012   #302
BWR

Windows 7 Professional x64
 
 

I am having the same issue as above Xosder in post 144, derryvolge in post 156, and Vict555 in post
I have two new build your own systems with
-New 128GB SSD, C: drive
-New 1 TB SATA drive E:
-DVD drive is D:
-OS Windows 7 x64 PROFESSIONAL

my unattended.xml file contains:
Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" 
xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FolderLocations>
<ProfilesDirectory>E:\Users</ProfilesDirectory>
<ProgramData>E:\ProgramData</ProgramData>
</FolderLocations>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:D:/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Additionally, I type:

Code:
Sysprep.exe /audit /reboot /unattend:Z:\relocate.xml
After running script, computer reboots in Audit mode, then when I exit Audit mode (by clicking OK on OOBE popup) and reboot occurs, I get:

Quote:
"Windows could not parse or process unattend answer file C:\Windows\Panther\unattend.xml for pass oobeSystem"

This only shows up once and then I'm back to the "Windows could not complete the installation. To intall Windows on this computer, please restart the installation" over the "Setup is preparing your computer for first use" screen.
Has there been a resolution to this?

It seems that this is the one issue that seems to get ignored.


Please help if possible.
My System SpecsSystem Spec
28 May 2012   #303
dcapit8

Windows 7 Home premium 64bit
 
 
Awesome but a few questions

Kari,

This is simply an outstanding tutorial, I spent a few weeks looking into this. I find this method to be just superb as to doing manual registry edits to get similar results.

I had to use the method twice because I didn't read the full thread about doing system imaging. I have a 100GB SSD and a 2TB HDD. I originally just moved users and program data to the HDD which only had the one partition. I realized in order to make a good image I need all the basic windows folders (user and program data included). I realized that would now require me to image the full HDD. So I decided against that and created a partition and make the move, one more time. The only thing I am noticing is that now in both my C and E drives still contain a ProgramData folder. I am not sure if it is safe to delete those folders all together because it seems redundant. On the E: there is a Microsoft folder that has a search folder and windows folder. The same folder is on C: too. The one on Z: (the partition) has a more extensive Microsoft folder that has just more than Search and Windows. Would it be safe to delete on the other drives, assuming your or anybody else came across something similar.

Edit....I was thinking for imaging and backing up reasons, would it be possible to make a symbolic link on your OS drive to the user and programData folder drive, so therefore when the image is being created it will know where to look for the remaining system folders. This might be a completely dumb question as I am by know means computer savvy, so bare with me.
My System SpecsSystem Spec
.

28 May 2012   #304
William Lyders

Windows 7 Home Premium 64bit SP1
 
 

Following the PDF instructions, using "new scenario" in Post #22, AFTER Windows is already installed

Basic question 1:
Can all this be done on a re-build computer where the Windows 7 has not yet been RE-ACTIVATED? [ I have yet to "fight" with MS to be able to re-activate this re-built computer which sports a new motherboard, SSD, and HDDs]

Question 2:
Why have I stalled?
All has gone OK up to Kari's instruction (pg 6):
Sysprep.exe /audit /reboot /unattend:\relocate.xml
which I have modified to:
Sysprep.exe /audit /reboot /unattend:E:\RELOCATION TEXT, MODIFIED.XML

When I enter this, I get the following message on a small screen:

<< Usage: sysprep.exe /quiet /generalize /audit | /oobe /reboot | shutdown | /quit /unattend:<FILENAME>
If no command-line arguments are provided, a graphical user interface is used to select the desired mode of sysprep operation >>

When I click "OK", it goes back to the Command Prompt, but does nothing more.

Just what is this message telling me?
My System SpecsSystem Spec
28 May 2012   #305
dcapit8

Windows 7 Home premium 64bit
 
 

William,

Take my answer with a grain of salt, but I think E:\RELOCATION TEXT, MODIFIED.XML needs to read E:\"RELOCATION TEXT, MODIFIED.XML" if there are spaces in the document title.

I can't remember where I read that, but hopefully it helps.

dcapit8
My System SpecsSystem Spec
29 May 2012   #306
William Lyders

Windows 7 Home Premium 64bit SP1
 
 

Thanks, decapit8,

Will just change the file name to Kari's \relocate.xml, and give it a retry, tomorrow.
My System SpecsSystem Spec
29 May 2012   #307
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by BWR View Post
Quote:
"Windows could not parse or process unattend answer file C:\Windows\Panther\unattend.xml for pass oobeSystem"

This only shows up once and then I'm back to the "Windows could not complete the installation. To intall Windows on this computer, please restart the installation" over the "Setup is preparing your computer for first use" screen.
Has there been a resolution to this?

It seems that this is the one issue that seems to get ignored.


Please help if possible.
The error message you get is one normally gotten when there's a syntax error in answer file, when answer file or install.wim is not found. This can be the case for instance if the drive letter is changed between Audit Mode and first boot to OOBE. Also, I have seen this error when sysprepping some heavily manipulated OEM Windows versions.

This error message might also occur when sysprepping a Windows version with bootloader. This, of course, I do not believe your case.

Reading your answer file I noticed that it returns an error where there should be a schematic check:
Quote:
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
xmlns:wcm="Error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
I need to check if I need to rebuild this answer file again, original was created about two years ago.

I will be back as soon as I find some time to spare.

Quote   Quote: Originally Posted by dcapit8 View Post
Kari,

This is simply an outstanding tutorial, I spent a few weeks looking into this. I find this method to be just superb as to doing manual registry edits to get similar results.

I had to use the method twice because I didn't read the full thread about doing system imaging. I have a 100GB SSD and a 2TB HDD. I originally just moved users and program data to the HDD which only had the one partition. I realized in order to make a good image I need all the basic windows folders (user and program data included). I realized that would now require me to image the full HDD. So I decided against that and created a partition and make the move, one more time. The only thing I am noticing is that now in both my C and E drives still contain a ProgramData folder. I am not sure if it is safe to delete those folders all together because it seems redundant. On the E: there is a Microsoft folder that has a search folder and windows folder. The same folder is on C: too. The one on Z: (the partition) has a more extensive Microsoft folder that has just more than Search and Windows. Would it be safe to delete on the other drives, assuming your or anybody else came across something similar.

Edit....I was thinking for imaging and backing up reasons, would it be possible to make a symbolic link on your OS drive to the user and programData folder drive, so therefore when the image is being created it will know where to look for the remaining system folders. This might be a completely dumb question as I am by know means computer savvy, so bare with me.
About duplicate Programdata folders, read this post: User Profiles - Create and Move During Windows 7 Installation

Imaging and how to do it is up to you. I am a bit disappointed in Microsoft for making using built-in imaging tool so difficult when system folders are spread on two or more drives, so I use Macrium Reflect to always create an image containing both system drive (Program Files, Windows) and the Users drive (ProgramData, Users).

Call me coward but I really do not want to give detailed instructions in how to image an SSD / HDD system with system folders spread in between them. So much can (must not!) go wrong and me being not an imaging expert, I would spent rest of my days in explaining my wrong advice

Kari
My System SpecsSystem Spec
29 May 2012   #308
dcapit8

Windows 7 Home premium 64bit
 
 

Kari, thank you for the quick response.

I don't have a problem leaving the program data folder on C: drive, since that will be one of the drives I use to image. I am trying to avoid having to include the e: drive as that is 1.5TB and for down the road I don't think I will be willing to wait as the system has to image all that, assuming I fill 1TB.

I too am like you and want to include all the system folders when I do an image. I don't think that program data is required to be on e: as you said it is really only there for programs that hard code to c:\programData. I think my dilemma came from doing the sysprep twice (First User and ProgramData went from c: to e: and then from e: to z Therefore if I decide another partition down the road and need to move these folders again there will be a trailing ProgramData folder in each of the previous drives. This is what I am trying to solve. I would like to move the e:\programData over to c:. Since you said you done this many of times, have they all been on the same machine? If so what was your work around for this situation. Again I know in post you referred is that you just left it alone, I am absolutely fine with that for the c drive.

Anybody who has dealt with this please feel free to answer as well.
My System SpecsSystem Spec
03 Jun 2012   #309
William Lyders

Windows 7 Home Premium 64bit SP1
 
 

An Update:

I took time off to complete the problematic re-activation of my re-built computer, which I was finally able to do successfully using the double-install method.

But that killed the chance to use Kari's re-locate Users folder process, because I now get this message:

"Sysprep cannot run on a computer that has been upgraded to a new version of Windows. You can only run Sysprep on a custom (clean) install version of Windows"

Now what????

I haven't digested the method published by Brink, yet.
My System SpecsSystem Spec
Comment

 User Profiles - Create and Move During Windows 7 Installation




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




Similar help and support threads
Windows 7 Tutorial Category
Help with User Profiles in Windows Server 2008
Hey guys and ladies. So i have scoured the forums looking for answers to my problem and have yet to get a definitive fix. It may just be me though lol. So I am an IT technician for some schools and i have just implemented a new server. It is running Windows Server 2008. My client machines are...
General Discussion
Windows 7 User profiles issue - Shows logging off after entering corru
This issue has become specific as fixing one problem led to the other: 1) I deleted ntuser.* files while working in linux as they had ugly looking file extensions and I thought they are temporary files. 2) I started getting the message "The Group Policy Client service failed the logon....
Installation & Setup
cannot create new user profiles
Win 7 Home Premium. Optiplex 755. I have a working user profile with administartive rights which works fine. I also have a working guest user. However when I try to create a new user, standard or administator, the new user is shown in "mange users" but cannot be logged into. This happens in safe...
General Discussion
Can't move user profiles
Guys ... opening this as separate thread as previous one took a direction of its own. Scenario As per Tutorial moved my profiles off the C:\ http://www.sevenforums.com/tutorials/87555-user-profile-change-default-location.html In order to use Windows Repair/Upgrade Disk I need to move them...
Installation & Setup
How do I move my user profiles back to C:\user
On advice here to keep OS disk space small, followed the tutorial http://www.sevenforums.com/tutorials/87555-user-profile-change-default-location.html and moved my user profile from C:\user\name to E:\user\name The problem is Windows upgrade (need to run for repair) will not accept profiles...
Installation & Setup
New to Win7 move User profiles or use Libraries?
I have just upgraded from Vista where we had two user account profiles on the D partition, as I recall, Vista prompted me to set it up this way initially. I got used to using this method, as my single hdd is divided into two partitions, C for the OS and D for Data. I did a new clean install of...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:39.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App