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

27 Oct 2011   #140
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by apSlain View Post
Quote   Quote: Originally Posted by boger1 View Post
HELP!
Kari, great guide. However, everything was going great until it came time to run the script to start sysprep/OOBE.
When I type in the command sysprep.exe/audit/reboot/unattend/:u:\relocate.xml I get the following in an info box:

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

What do I do now?!? It won't execute the command, and just returns me to a new command prompt line.
I think you've forgotten to put spaces. Try:

sysprep.exe /audit /reboot /unattend:U:\relocate.xml
Yes, the command syntax is wrong. Before every switch there must be a space.

Kari


My System SpecsSystem Spec
.
27 Oct 2011   #141
boger1

Windows 7 Home Premium 64bit
 
 

Uh, yeah...that was it. What a newb...but that's what's so great about this forum. Even a total newb like me can follow the directions to do this...most of the time.
Thanks again for the great guide.
My System SpecsSystem Spec
05 Nov 2011   #142
mv808

Windows 7 Home Premium 64-bit
 
 

Followed the instructions in post #22 because I had already installed Windows7 and created a user. Anyway, the screens went beyond what is shown in that post where it took me to request for cd key screen, enter user, enter computer name, etc.

Entered all info requested (probably should have aborted prior to doing that?) Continued to page 4 of the tutorial, ran the script, then got an error message to re-install. Ended up doing a restore from my system image.

Will try again. Question: I had the Windows Installation disk in the optical drive, should I have taken it out then go through the process?

Thanks
My System SpecsSystem Spec
06 Nov 2011   #143
darkanonymous

Windows 7 Professional x64 SP1
 
 

Hi,

First of all I would thanks Kari for such a great tutorial. There is all needed for a newbie to make it right. I'm french so I apologize for my english to not be as good as I would.

I've read the whole thread and unfortunalety, it appears that I'm the only one getting the following issue. At the end of the process, i didn't have my users and programData folders moved in the D disk.

What can i tell you is that I'm not using a DVD to install a fresh OS but USB drive. Every files I need is stored on it. The OS ( Windows 7 Professional SP1 x64 Fr ) at the root and a Utilitary folder with soft to reinstall, xml files... The USB letter is F: by the way.

I wanna do an unattended windows 7. So at the beginning i'm using an autounattend.xml file to avoid lanuage, disk settings etc instead of pressing the SHIFT F3... combo to enter the audit mode.
I guess its doesnt make any difference right ? I have only one physical disk with 2 partitions formated in NTFS etc. C: 50Go D: 100Go.

So, once the OS Setup is over, the computer reboot in audit mode.

As noticed in the tutorial, I start sysprep with the following associated xml file
relocate.xml. Below is its content.
Quote:
<?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>
<cpifflineImage cpi:source="wim:F:/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
So i launch my batch 'relocate.bat'. Its content is following bellow
Quote:
c:\windows\system32\sysprep\sysprep /audit /reboot /unattend:%1:\Utilitaires\UNATTENDED\XML\relocatex%2.xml
To Lauch the batch : F is the USB drive's letter and 64 the architecture
Quote:
relocate F 64
The computer reboots, always in audit mode. However, D is still empty. There is no users or programdata folder. According to the tutorial, it seems to be normal.

Then I install applys, drivers etc before reboot the computer, always in audit mode. This way i save my user cfg for next new basic created accounts.
So i launch my batch 'audit.bat'. Its content is following bellow
Quote:
c:\windows\system32\sysprep\sysprep /audit /reboot /generalize /unattend:%1:\Utilitaires\UNATTENDED\XML\unattendx%2.xml
Content of unattendx64.xml
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<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">
<CopyProfile>true</CopyProfile>
</component>
</settings>
<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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
</OOBE>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-Windows-Security-SPP" 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">
<SkipRearm>1</SkipRearm>
</component>
</settings>
<cpifflineImage cpi:source="wim:c:/win7dvd/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi"/>
</unattend>
To Launch the batch : F is the USB drive's letter and 64 the architecture
Quote:
audit F 64
Now user cfg is saved and i can reboot the computer in oobe mode so i can finalize the OS setup.

So i launch my batch 'oobe.bat'. Its content is following bellow
Quote:
c:\windows\system32\sysprep\sysprep /oobe /shutdown /generalize /unattend:%1:\Utilitaires\UNATTENDED\XML\unattendx%2.xml
To Launch the batch : F is the USB drive's letter and 64 the architecture.
Quote:
oobe F 64
OOBE mode launched so i can fill username etc...
The computer is finally ready so i go check the D disk and users & programData folders are still missing... I dont understand what I missed and what the mess is going on.

Thanks!
My System SpecsSystem Spec
.

08 Nov 2011   #144
Xosder

Windows 7 Home Premium x64
 
 

Ok, I originally thought this was going to be a great solution for my situation. I've been running Win7 Home Premium x64 on a WD 1tb hdd since January. I recently bought an SSD to use as an OS drive. At the same time, I built a new box for my wife, also using the same version of Win7. My initial hope was to have only an SSD in her machine and route everything to the "old" WD hdd for storage as a network drive in my box. From reading through this and a ton of other forum material, it seems that won't work (at least not easily enough for me to accomplish it w/o enormous headaches), so I scrapped that plan and ordered a separate storage HDD for the new machine.

Where I'm running into the issue, though, is trying to get Win7 functional under the method in this thread after installing on the SSD in the machine that houses the existing HDD. I didn't come across this until I'd already installed and created a User account, so I initially tried using the post #22 method, editting the xml file to reflect HOMEPREMIUM and that is was going to drive h: (first attempt) or f: (2nd, see below) from the D: dvd drive. I did have the issue w/ WMPNetworkSvc, but I was able to get passed that. Everything seemed to go ok until I got to the reboot after exiting Audit mode. I got an error message with a particular file path I didn't note at the time, had the system reboot, and then got an error that I simply couldn't get passed:

"Windows could not complete the installation. To intall Windows on this computer, please restart the installation."

This appears over the "Setup is preparing your computer for first use" screen.

I couldn't figure out what to do, so after some more research, I wiped the SSD with diskpart from the language select screen on the Windows 7 disk install (not sure if this was necessary, but it seemed like it) and proceeded to follow this tutorial as a fresh install. But I encountered the same problem. This time I actually caught the error:

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

I'm not really sure what to do at this point. I can't figure out if there's a way to get back into Audit mode and make an adjustment to the relocate.xml file to fix the Panther error. Is this happening because the HDD that I'm trying to use has Win7 installed on it still (I didn't want to delete anything on this drive until I got the SSD up and running successfully); it seems post #120 may be in reference to this, so would I need to rename or actually delete the files on the hdd first?

I did find an old post about this error at theether.net/kb/100124 via a google search, but I also found other references on ms support forums about ShowMediaCenter being the issue (not sure if that's the same as the ether post), but no instructions how to correct it. I'm wondering if it is the issue from ether.net if the <UserAccounts> code can just be incorporated into Kari's relocate.xml file?

At this point I'm stuck and not sure how to proceed, aside from wiping the SSD yet again and just abandoning this setup altogether (which I really don't want to do). Any suggestions/solutions are greatly appreciated. At least I have the setup on the new machine to keep me busy once the HDD arrives today....
My System SpecsSystem Spec
08 Nov 2011   #145
Kari

Microsoft Community Contributor Award Recipient

 

On the road, not on my own rig. I'm going to check this error of yours tomorrow. Have to read that theether.net solution and see how it could be implemented.

Kari
My System SpecsSystem Spec
09 Nov 2011   #146
darkanonymous

Windows 7 Professional x64 SP1
 
 

"Windows could not complete the installation. To intall Windows on this computer, please restart the installation."

I'm pretty sure you get this error because you tried to install an antivirus software.
If you work with a SP0 version of windows 7, install the KB981542 hotfix to fix this problem.
If you work with a SP1 version of windows 7, this hotfix is already added to updates.

If it doesnt work and it could be even the hotfix instaled... i guess you're trying to install AVIRA. Before reboot, turn off guardian protection and registry protection in security section ( expert mode must be enabled to see that section )

By the way, when having the error, you can display a cmd thanks to shitf+F10. Then go to avira's folder then write "setup.exe /REMOVE" to get avira unistalled. Reboot, and the pc will be again in audit mode so you dont have to start from the begining. If its not avira u did install, try looking for the same options in its configuration...

No help for me Kari ?
My System SpecsSystem Spec
09 Nov 2011   #147
jslbb

Win 7 Home Premium
 
 
Relocate

I followed all instructions for clean install, etc. Have the "relocate.xml" file on the "D" drive. Have looked it all over, and changed the text inside to HOMEPREMIUM as instructed, but it will not run. Error is" Windows could not parse or process unattend answer file [D:\relocate.xml]. The specified file does not exist." - But it does, it's the only file on the D drive, which was completely formatted prior to copying the text to the .xml file.

I've triple-checked all of the spelling, and have reattempted the procedure many times now, always watching the spelling and spaces in the command line. I've also tried making a new relocate.xml file on the C drive, changing the command line of course, and still get the same error.

I am stuck, and don't know what to try next. Brand new ASUS MB, 8G ram, 4 core AMD, 90G SSD for C drive, etc. Any ideas anyone? I would appreciate help. I was really excited about being able to move my user profile, but now am afraid I won't be able to get it to work.

Thanks for any and all help!
My System SpecsSystem Spec
18 Nov 2011   #148
ibex

Windows 7 Pro 64 SP1
 
 
Sysprep could not initialize

I find I'm failing at the first step.

When I run Sysprep I get the message:
Sysprep could not initialize. There are one or more windows updates that require a reboot. To run Sysprep, reboot the computer and restart the application.

So far rebooting and restarting has had no affect.

have also tried stopping the WMPnetworksvc but windows says it isn't running.

Win7 HOMEPREMIUM on a 60GB SSD as C: and a 1.0TB hard drive on E:

EDIT: I solved this by uninstalling and reinstalling solitaire. Sysprep ran properly after that.
My System SpecsSystem Spec
18 Nov 2011   #149
ibex

Windows 7 Pro 64 SP1
 
 
User directories moved but program data didn't

I ran the sysprep and everything seemed to work OK.

At the end the USER directories have moved properly and new users are being created in there properly, and the ProgramData has moved, but the original program data folder is still on the C: drive. Is this normal?
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 13:16.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App