User Profiles - Create and Move During Windows 7 Installation

Page 31 of 113 FirstFirst ... 21293031323341 ... LastLast

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

    RCWin7 4M said:
    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 Computer


  2. Posts : 9
    Win 7 64 bit
       #301

    Excellent guide!!!


    Well done. Super useful. Love it!
      My Computer


  3. BWR
    Posts : 1
    Windows 7 Professional x64
       #302

    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:

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


  4. Posts : 3
    Windows 7 Home premium 64bit
       #303

    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.
    Last edited by dcapit8; 28 May 2012 at 14:53. Reason: Another backup and restore idea
      My Computer


  5. Posts : 8
    Windows 7 Home Premium 64bit SP1
       #304

    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 Computer


  6. Posts : 3
    Windows 7 Home premium 64bit
       #305

    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 Computer


  7. Posts : 8
    Windows 7 Home Premium 64bit SP1
       #306

    Thanks, decapit8,

    Will just change the file name to Kari's \relocate.xml, and give it a retry, tomorrow.
      My Computer


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

    BWR said:
    "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:
    <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.

    dcapit8 said:
    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 Computer


  9. Posts : 3
    Windows 7 Home premium 64bit
       #308

    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 Computer


  10. Posts : 8
    Windows 7 Home Premium 64bit SP1
       #309

    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 Computer


 
Page 31 of 113 FirstFirst ... 21293031323341 ... 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 15:28.
Find Us