windows xp Sysprep

Posted on 2005-05-16
Last Modified: 2012-05-05
need help this is very urgent. Every time i use Sysprep using windows xp w/sp 2 the IIS breaks. how would I solve this problem.
Question by:jolivare
    LVL 6

    Expert Comment

    Describe what you mean by "IIS breaks"

    Something you should understand about IIS is that many of the items in the IIS metabase are machine and system specific.  They don't take well to imaging.

    What you should do is backup your IIS metabase from within the Information Systems Manager snap-in.

    Save this metabase on the system you're imaging.

    Then when you image a system, you'll need to restore the the metabase WITHOUT the machine specific variables.  To accomodate this microsoft has included two VBS files called iisback.vbs and iiscnfg.vbs (might be iisconfig.vbs, I can't remember the exact file name)

    Read this document for detailed instructions on how to backup and restore an IIS metabase.
    LVL 6

    Expert Comment

    Oh, and also remember that the IIS user accounts need to be renamed.  THey are specific to the name of the server.


    it is also important to note that part this sequence can be automated in your sysprep file.  One of the options in the setupmgr.exe tool is commands to run at the end of the installation.  You can run command line actions at the end of your sysprep sequence that will restore your IIS metabase.  Now that the computer has a unique name it will work just fine.

    It's also possible to rename the user accounts from the command line.

    There is a free tool called renuser that you could put in your image.

    I think the command "renuser IUSR_SERVERNAME IUSER_%computername% SERVERNAME" will work, though I've never tried it.

    You would then repeat using IWAM_SERVERNAME

    Author Comment

    what i mean about IIS("Internet Information Services") breaks is the the subfolders disapear after it runs the sysprep setup. if  I only image the system then i works fine it will not break but if i image the system and do a sysprep ("System Preparation Tool and Answer File Usage") then it will break.
    LVL 6

    Accepted Solution

    Well that's a bit strange.  So far as I understand, sysprep should only be delete any files contained within the sysprep folder.  It cleans itself up as part of the installation.  If for some reason the folders you're missing are contained in the sysprep folder then that would be the reason.

    I can't think of any other reason sysprep would randomly delete IIS directories.

    Is this the inetpub directory?

    Author Comment

    I sorry I don't know what you mean about inetpub direcitory? you mean the subfolder under the IIS component?

    do you know any script that will install a windows component in this case IIS?

    Author Comment

    Here is the solution to this problem. I found it on all you need is to delete a file before you do the sysprep. Here is what you need to do:

    To work around this problem, use one of the following methods:• Install the Windows XP SP2 Sysprep image from a Windows XP SP2 integrated source.
    • Install Windows XP SP2 before you install IIS.  
    • Delete the Iischema-update.md0 file before you run Sysprep. To do this, follow these steps:1. Open Windows Explorer.
    2. Locate and then double-click the %SystemRoot%\System32\Inetsrv\MetaBack folder.
    3. Right-click iischema-update.md0, and then click Delete.
    4. When you are prompted to confirm the deletion, click Yes.
    5. Quit Windows Explorer.

    here is the site for more info:

    Author Comment

    I'm going to give the points to someone to close this question. Thank you all for all your answer. I found the correct answer on the microsoft web site. I'll give the points to mslunecka because mslunecka answer first and try to help me.
    LVL 6

    Expert Comment

    By inetpub I meant the C:\inetpub  directory.  This is the default location in which IIS stores your WWW documents.  Your default website is usually housed at c:\inetpub\wwwroot

    Your solution is actually what I was refering to...though I didn't know Microsoft had an article specifically about it.  The metabase contains machine-specific language that will be different on every computer, even if you reload the same computer twice it will need a new metabase.

    You do need to be careful with the IUSR and IWAM accounts, though, because if you don't change the names of those accounts on each server after you image them, you could run into the problem with cross-site security problems.  The same username is being granted access on multiple servers when maybe they shouldn't be.  

    Good luck!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now