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

22 Oct 2015   #990
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by tjg79 View Post
My XML script won't run. I keep getting an error message that indicates: Windows could not parse or process unattend answer file [c:\relocate.xml]. The answer file is invalid. The error was detected at line 9 column 3 of the answer file.

I've checked my transcription of the text for this file many times and I'm moved the line 9 indent forward and backward. If I move the indent to 0, the error message indicates that the error was detected at column 0. If I move the indent one space bar in, I get error at column 2. As I've indicated, I've retyped, and checked syntax many times and I always get the error.
The error message is clear and is only shown when there really is something wrong with the answer file.

Please post the answer file exactly as it is. Use the CODE tags when posting it ([CODE]The Answer file here[/CODE]).

Kari


My System SpecsSystem Spec
.
22 Oct 2015   #991
tjg79

Windows 7 Professional x64 SP1
 
 

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="http://schemas.microsoft.com/WMIConfig/2002/State" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FolderLocations>
<ProfilesDirectory>d:\Users</ProfilesDirectory>
<ProgramData>d:\ProgramData</ProgramData>
<FolderLocations>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:E:/sources/install.wim#Windows 7 
PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
The code above is my file.

I've attempted runs from both C:\ & D:\.

I've disabled all third party services except some NVIDIA and Intel RST.

I couldn't enter audit mode from the command prompt window, I had to do it from SAFE Mode command prompt.

Now, I can't get out of audit mode. When I change the Sysprep pop-up to OOBE boot, I get a fatal error. When I reboot, I'm back in audit mode.

These two issues may be related.

Another general observation about the Audit Mode install was that I couldn't download updates in Audit Mode. Is that typical? For my install, once I entered the OOBE and installed the software key, the downloads were activated.
My System SpecsSystem Spec
22 Oct 2015   #992
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by tjg79 View Post
I couldn't enter audit mode from the command prompt window, I had to do it from SAFE Mode command prompt.
The answer file seems to be OK.

From the beginning, you have done this wrong. If you can't enter Audit Mode as told in instructions, something is wrong in your system and you should post or search for advice instead if thinking "OK I'll try it in another way". Safe Mode and Sysprep are no friends.

Anyway, let's now try to get you out of the Audit Mode. While still in Audit Mode, please copy the file SETUPACT.LOG from the folder C:\Windows\System32\Sysprep\Panther to desktop. When copied, right click the file and select Send to > Compressed (zipped) folder.

This creates a ZIP archive of your log file. Attach that ZIP file here in your next post, I will check the log to see what's causing your fatal error.

Tutorial about how to attach files in your post: Screenshots and Files - Upload and Post in Seven Forums

Kari
My System SpecsSystem Spec
22 Oct 2015   #993
tjg79

Windows 7 Professional x64 SP1
 
 

setupact.zip

Thank you Kari. Attached is my log file.

I know that my attempt didn't exactly follow the instructions on the tutorial, but that's because I'm prepared to start over from scratch if necessary.

I'm attempting to have a perfect new clean install so I can get a good image for security. Originally, I attempted to follow your Audit Mode install, but that didn't work out as planned, because I couldn't download updates in Audit Mode. So, I started over in regular mode and after loading all updates, drivers, and a few utilities, I attempted to move my User folder to the D:\ drive by following one of Brink's tutorials. That wasn't fully successful either. So, I removed all traces of that attempt and confirmed no issues in the Windows logs and then attempted this tutorial, moving the User Folders and Program Data Folder to the D:\ after Windows is installed. It appeared that this modified procedure was for SSD drives, but I'm not using a SSD drive, but I attempted it anyway. It didn't work as I mentioned so I attempted from SAFE Mode. I've rebooted several times before I attempted to run the script. That worked, but then I couldn't run the script or exit Audit Mode. If this install is diseased, I'll start over.

Regards


My System SpecsSystem Spec
.

22 Oct 2015   #994
Kari

Microsoft Community Contributor Award Recipient

 

No clear reason for the error shown in the log. Next you could try this command (elevated command prompt):
Code:
%windir%\system32\sysprep\sysprep.exe /oobe /quit
When done, reboot normally and see if Windows boots to normal mode. I am afraid that if this does not work, the options are limited: a system restore, restoring a system image or reinstall.
My System SpecsSystem Spec
22 Oct 2015   #995
tjg79

Windows 7 Professional x64 SP1
 
 

Quote   Quote: Originally Posted by Kari View Post
No clear reason for the error shown in the log. Next you could try this command (elevated command prompt):
Code:
%windir%\system32\sysprep\sysprep.exe /oobe /quit
When done, reboot normally and see if Windows boots to normal mode. I am afraid that if this does not work, the options are limited: a system restore, restoring a system image or reinstall.
I attempted a similar command, without the /quit, and it didn't work. I give the command a try, but I'm getting the impression that this install is diseased and I'll start over with a new clean install. I'd like to do it from Audit Mode, but I had the issue with the updates. Is it normal for updates not to install in Audit Mode?

Thanks for the help.

Regards
My System SpecsSystem Spec
22 Oct 2015   #996
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by tjg79 View Post
Is it normal for updates not to install in Audit Mode?
Yes, Windows Update does not work in Audit Mode.
My System SpecsSystem Spec
22 Oct 2015   #997
tjg79

Windows 7 Professional x64 SP1
 
 

The command failed with the same indications as before. I checked the log file and I see some error messages with error codes, but I don't have a way to decode them. I think I'm at the point of starting over.

I'll attempt a clean install in Audit Mode and once I get to Audit Mode desktop, I'll attemp to run the script per the tutorial. If I run into any issues, I'll post first to get a recommendation.

Thank you for all the support. I think you create some excellent tutorials.

Regards
My System SpecsSystem Spec
22 Oct 2015   #998
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by tjg79 View Post
I'll attempt a clean install in Audit Mode and once I get to Audit Mode desktop, I'll attemp to run the script per the tutorial. If I run into any issues, I'll post first to get a recommendation.
Thanks for the compliments

If updating Windows before you even start customizing is important, this works but includes a bit extra work:
  • Install Windows normally, creating the initial admin user
  • Update Windows
  • Boot to Audit Mode
  • Remove the user you created if no longer needed
  • Customize and sysprep
Keep us posted
My System SpecsSystem Spec
23 Oct 2015   #999
tjg79

Windows 7 Professional x64 SP1
 
 

This is a different new clean install with the same xml script problem. Below are some screen shots, the code, the xml file in compressed folder, and the log files.

User Profiles - Create and Move During Windows 7 Installation-screen-shot-1.jpg

User Profiles - Create and Move During Windows 7 Installation-screen-shot-2.jpg

User Profiles - Create and Move During Windows 7 Installation-screen-shot-3.jpg

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="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <FolderLocations>
    <ProfilesDirectory>d:\Users</ProfilesDirectory>
    <ProgramData>d:\ProgramData</ProgramData>
   <FolderLocations>
  </component>
 </settings>
 <cpi:offlineImage cpi:source="wim:E:/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Sysprep Log Files.zip

Relocate.zip

This was a clean install per your tutorial. I didn't load any drivers or software once I booted into Audit Mode. The only thing different from most on this install is that I'm running an Intel RST Raid 1 (mirror) with two partitions, one is C:\ (200 GB) and the other is D:\ (735 GB). In the motherboard BIOS, I set the SATA drives to RAID and I configure the RAID type and partition size in the Intel utility during POST. During the Win 7 install, I F6 the RST driver. This is an Intel DX58SO motherboard and the Intel Desktop RAID is a feature of this board. As far as I've experienced using Intel RST for about six years, the feature is completely invisible to Win 7. I've had no issues with Intel RST.

Also, I'm installing an OEM version of Win 7 Pro x64

When I first booted into Audit Mode, I setup and quick formatted Drive D:\ so that it would be available for the relocation. I then shutdown to add a disk to an available SATA port on the mb. The added disk has my Intel hardware drivers in folders. I then restarted and the system booted into Audit Mode without issue.

Also, I can change between Audit Mode and OOBE Mode with this install.

Do the attached log files give any indication as to the problem with the xml script? Are there any other log files in Audit Mode that would give an indication as to why the xml script failed to run?

There are no Windows Updates downloaded and installed. Does the xml script require any Windows Updates to run properly?

Regards


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 17:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App