User Profiles - Create and Move During Windows 7 Installation

Page 15 of 113 FirstFirst ... 5131415161725 ... LastLast

  1. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #140

    apSlain said:
    boger1 said:
    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 Computer


  2. Posts : 2
    Windows 7 Home Premium 64bit
       #141

    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 Computer


  3. Posts : 7
    Windows 7 Home Premium 64-bit
       #142

    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 Computer


  4. Posts : 2
    Windows 7 Professional x64 SP1
       #143

    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.
    <?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
    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
    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
    c:\windows\system32\sysprep\sysprep /audit /reboot /generalize /unattend:%1:\Utilitaires\UNATTENDED\XML\unattendx%2.xml
    Content of unattendx64.xml
    <?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
    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
    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.
    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!
    Last edited by darkanonymous; 06 Nov 2011 at 19:40.
      My Computer


  5. Posts : 1
    Windows 7 Home Premium x64
       #144

    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 Computer


  6. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #145

    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 Computer


  7. Posts : 2
    Windows 7 Professional x64 SP1
       #146

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


  8. Posts : 1
    Win 7 Home Premium
       #147

    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!
    Last edited by jslbb; 09 Nov 2011 at 17:24.
      My Computer


  9. Posts : 57
    Windows 7 Pro 64 SP1
       #148

    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.
    Last edited by ibex; 18 Nov 2011 at 22:55. Reason: Found the answer elsewhere
      My Computer


  10. Posts : 57
    Windows 7 Pro 64 SP1
       #149

    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?
    Last edited by ibex; 18 Nov 2011 at 23:41. Reason: correction
      My Computer


 
Page 15 of 113 FirstFirst ... 5131415161725 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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 07:12.
Find Us