<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Windows 7 Sysprep

Published on
150,125 Points
113,025 Views
51 Endorsements
Last Modified:
Awarded
Community Pick
I've spent numerous hours getting the sysprep right for Windows 7 images for my organization. I'll share what I've learned to make the process easier.

Files you will need:

WAIK for Windows (Windows Automated Installation Kit) installed on a computer not being used for imaging.
http://www.microsoft.com/downloads/details.aspx?FamilyID=c7d4bc6d-15f3-4284-9123-679830d629f2
To create an unattend.xml file to be used for sysprep, you will also need the image.wim file located on the Windows 7 installation disk.
After installing Windows 7 on a computer, log in using a domain account which has local administrator privileges (added to the Administrators group). The domain account should not have any scripts or polices associated with it. I use a domain account (named imageprep) as I install software located on a DFS share. This way if any programs need to be repaired they will find the setup files. You can use a local account if you wish. I install all necessary programs, run windows updates, configure the start menu, create local user accounts and configure the profile and OS the way I want it to be. This profile will later become the default profile on the computer in the image.

When the laptop is ready you'll need to create an unattend.xml answer file using Windows System Image Manager (Windows SIM). On a different computer install WAIK. When the install has finished run Windows SIM from the start menu.
1. Insert the media you used to install Windows 7 on your image computer into your CD-DVD drive.
2. Start Windows SIM. From the menu select “Tools – Create Catalog”. You’ll be prompted for the “install.wim” file located on your media. Browse to the install.wim file in the sources directory on your Windows 7 media. When the catalog is complete you’ll be ready to configure your answer file.
3. I've attached a sample unattend.xml file for reference. Open the file and take a look at some of the settings I’ve configured.

I need sysprep to prompt me for a computer name before adding the computer to the domain. In my organization we have a specific naming system for our laptops. The problem I found using the unattend.xml answer file and Windows sysprep was that if you do not specify a computer name in the file, it will add the computer to the domain using a random name. It’s written that if you remove <ComputerName></ComputerName> section from the answer file, you will be prompted for a name when the answer file is processed. By then it's too late. The computer will have already been added to the domain under a random name and naming the laptop after this just causes problems (trust relationship errors). My work around for this was to not use the Windows sysprep.exe file, instead an altered version named mysysprep.exe. Mysysprep2 allows you to name the computer and add it to the domain after unattend.xml has been processed. Mysysprep should be placed in C:\Windows\System32\Sysprep alongside sysprep.exe (do not remove it or rename sysprep.exe).

In my unattend.xml file you’ll see:
<ComputerName>%Please input a computer name(0,15)%</ComputerName>
<JoinDomain>%Please select a domain to join{your.domain.com}%</JoinDomain>

Open in new window

These are specific entries when using mysysprep2. They will show up as errors in SIM but ignore the errors. The (0,15) in the <ComputerName> field will automatically truncate the computer name if longer than 15 characters.

Also you will see:
<CopyProfile>true</CopyProfile>

Open in new window

This tells sysprep to copy the configured profile you’ve created to the default profile.

You must specify an OU to add the computers to otherwise they will not be added to the domain.
<MachineObjectOU>OU=Test,DC=Your,DC=Domain,DC=Here</MachineObjectOU>

Open in new window

The other thing regarding the unattend.xml, you need to create a local user during the sysprep process.  When you install Windows 7 (using the disks) you’re prompted to create a local user. This process still occurs when using an attend.xml file and sysprep. In the answer file I create a local user named TempUser. TempUser gets deleted when the laptop first boots up to Windows logon screen.  The sole purpose of TempUser is to hide the prompt to create a local user after sysprep runs.

There is one trick that is not documented very well, but works great.  On the laptop you’re imaging browse to the C:\Windows\Steup directory.  In there, create a new directory named Scripts.  Inside of scripts, create a file named SetupComplete.cmd.  Commands that you place in this file will run just before you are presented with the Windows logon screen. This is where TempUser will get deleted.

To delete the previously created TempUser account, add the following command to SetupComplete.cmd:  
net user TempUser /delete

Open in new window

To enable the local Administrator account, add the following command to SetupComplete.cmd:  
net user Administrator /active:yes

Open in new window

Even though you may have enabled the administrator account on the imaged laptop before running sysprep, it will be disabled again.

To delete the unattend.xml file, add the following command to SetupComplete.cmd:
del C:\Windows\System32\Sysprep\unattend.xml

Open in new window

Even though the passwords you enter in the xml file are encrypted, you’ll feel better knowing the file is not there.

You should customize the answer file to meet your needs. After you.ve completed the unattend.xml file, copy the file to C:\Windows\System32\Sysprep. You should be ready to run sysprep on the computer.

From within the configured profile you’ve created, open a command prompt. Navigate to C:\Windows\System32\Sysprep. Type the following command to start the sysprep process:
mysysprep.exe \generalize \oobe \shutdown \unattend:unattend.xml

Open in new window

The computer will shut down after sysprep has finished.

Now it’s time to take an image of the hard drive.  Everyone has their own way of doing this.  I use Ghost as it takes an image of the whole drive.  I’ve tested ImageX and found it to have it drawbacks.
The main reason I choose not to use it is because we use two partitions in our image. The C: partition for the OS and the D: partition for the users’ data. You cannot take a disk image with ImageX. You have to do each partition individually. The same goes for when applying the image. We ghost the hard drive and have our completed image.

When you apply the image to a computer then restart, you should be prompted for a computer name then the domain name. The domain name should automatically appear as we specified it in:
<JoinDomain>%Please select a domain to join{your.domain.com}%</JoinDomain>

Open in new window

If you have multiple domains you can also add it so the string to produce a dropdown menu.
<JoinDomain>%Please select a domain to join{domain1;domain2;domain3}%</JoinDomain>

Open in new window

The computer will then complete the setup process and eventually boot up to the Windows logon screen.  If all went well you should be able to log in using your domain account.


Problems, Fixes and Tips
Updated: 05/11/2011 - I will add to this list as I come across them.

- Add the following pass to your unattend.xml file to ensure all hardware remains installed after running sysprep.
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
When set to True = This specifies that Plug and Play devices remain installed on the destination computer during the generalize configuration pass. The devices then do not need to be reinstalled during the specialize configuration pass.
This should be added to the generalize pass: x86_Microsoft-Windows-PnpSysprep

- Configure a custom power plan in your image and specify the plan in your unattend.xml file.
Configure and name a custom power plan in Control Panel – Power Options. When your power plan is set up you need to retrieve the GUID of the configured plan. To find the GUID, type the following command at a command prompt: PowerCfg -List (look for the plan name you just created). Add the GUID to your unattend.xml file so that it becomes the default active power plan. This should be added to the specialize pass: x86_Microsoft-Windows-powercpl__neutral

- Slipstream drivers into the DriverStore in your image.
To slipstream drivers into your Windows image you can use the command line utility “pnputil.exe”.
If you need a certain driver installed in the image, like a scanner or printer, and do not want your users to be prompted for the driver then add it to the DriverStore in your Windows image. The command to add a driver using this utility is: pnputil.exe -a HP0001.inf
All the information regarding this command can be found here:
http://technet.microsoft.com/en-us/library/dd919234%28WS.10%29.aspx

- To disable the Action Center “Set backup” notification, create a registry file named DisableBackupMonitoring.reg using notepad and paste the following code. Run the registry file under the configured profile. You can also apply the registry file via group policy.
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsBackup]
"DisableMonitoring"=dword:00000001

Open in new window

- Here’s a script that un-pins the default shortcuts on the taskbar when a user first logs in and adds your own custom shortcuts. The script is from: http://social.technet.microsoft.com/forums/en-us/w7itproinstall/thread/07C56C20-3F56-4191-84C6-FC033F7A8F29
I copy the script to C:\Windows\System32\Sysprep\Custom and call it via a batch file I place in the configured profile’s startup folder (which will be the default profile). After it runs the batch file is deleted from the startup folder. This only runs the first time the user logs in.
Option Explicit

Const CSIDL_STARTMENU = &HB
Const CSIDL_COMMON_PROGRAMS = &H17

Dim objShell, objFSO
Dim objCurrentUserStartFolder
Dim strCurrentUserStartFolderPath
Dim objAllUsersProgramsFolder
Dim strAllUsersProgramsPath
Dim objFolder
Dim objFolderItem
Dim colVerbs
Dim objVerb

Set objShell = CreateObject("Shell.Application")
Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objCurrentUserStartFolder = objShell.NameSpace (CSIDL_STARTMENU)
strCurrentUserStartFolderPath = objCurrentUserStartFolder.Self.Path

Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS)
strAllUsersProgramsPath = objAllUsersProgramsFolder.Self.Path

'''''''''''''''''''''''''''''''''''''''Unpin Shortcuts'''''''''''''''''''''''''''''''''''''''

'*** All Users Shortcuts ****

'Internet Explorer
If objFSO.FileExists(strAllUsersProgramsPath & "\Network & Internet\Microsoft\Internet Explorer.lnk") Then
	Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Network & Internet\Microsoft")
	Set objFolderItem = objFolder.ParseName("Internet Explorer.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'Mozilla Firefox
If objFSO.FileExists(strAllUsersProgramsPath & "\Network & Internet\Mozilla Firefox\Mozilla Firefox.lnk") Then
	Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Network & Internet\Mozilla Firefox")
	Set objFolderItem = objFolder.ParseName("Mozilla Firefox.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'Windows Explorer
If objFSO.FileExists(strAllUsersProgramsPath & "\Accessories\Windows Explorer.lnk") Then
	Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Accessories")
	Set objFolderItem = objFolder.ParseName("Windows Explorer.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'Windows Media Player
If objFSO.FileExists(strAllUsersProgramsPath & "\Network & Internet\Microsoft\Windows Media Player.lnk") Then
	Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Network & Internet\Microsoft")
	Set objFolderItem = objFolder.ParseName("Windows Media Player.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'*** Current Users Shortcuts ****

'Internet Explorer
If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Internet Explorer.lnk") Then
	Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs")
	Set objFolderItem = objFolder.ParseName("Internet Explorer.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'Mozilla Firefox
If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Mozilla Firefox\Mozilla Firefox.lnk") Then
	Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs\Mozilla Firefox")
	Set objFolderItem = objFolder.ParseName("Mozilla Firefox.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'Windows Explorer
If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Accessories\Windows Explorer.lnk") Then
	Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs\Accessories")
	Set objFolderItem = objFolder.ParseName("Windows Explorer.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'Windows Media Player
If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Windows Media Player.lnk") Then
	Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs")
	Set objFolderItem = objFolder.ParseName("Windows Media Player.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
	Next
End If

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

''''''''''''''''''''''''''''''''''''''''Pin Shortcuts''''''''''''''''''''''''''''''''''''''''

'Internet Explorer - All Users
If objFSO.FileExists(strAllUsersProgramsPath & "\Network & Internet\Microsoft\Internet Explorer.lnk") Then
	Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Network & Internet\Microsoft")
	Set objFolderItem = objFolder.ParseName("Internet Explorer.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoIt
	Next
End If

'Mozilla Firefox - All Users
If objFSO.FileExists(strAllUsersProgramsPath & "\Network & Internet\Mozilla Firefox\Mozilla Firefox.lnk") Then
	Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Network & Internet\Mozilla Firefox")
	Set objFolderItem = objFolder.ParseName("Mozilla Firefox.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoIt
	Next
End If

'Windows Explorer - Current User
If objFSO.FileExists(strCurrentUserStartFolderPath & "\Programs\Accessories\Windows Explorer.lnk") Then
	Set objFolder = objShell.Namespace(strCurrentUserStartFolderPath & "\Programs\Accessories")
	Set objFolderItem = objFolder.ParseName("Windows Explorer.lnk")
	Set colVerbs = objFolderItem.Verbs
	For Each objVerb In colVerbs
		If Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoIt
	Next
End If

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Open in new window

- You set your "Network Location" in your unattend.xml file but still get prompted for it when first logging in.
Install the following hotfix into your image laptop: http://support.microsoft.com/kb/2028749

- Your IE homepage is reset after sysprep.
Add you IE settings to your unattend.xml file under the specialize pass:
x86_Microsoft-Windows-IE-InternetExplorer__neutral_31bf3856ad364e35_nonSxS

- You lose the Aero theme after sysprep
Run the following command at an elevated command prompt: WinSAT prepop
This will generate the WinSAT prepop .xml results files to the Datastore directory located at %WINDIR%\performance\winsat\datastore. This enables you to keep the configured aero theme after running sysprep (otherwise it will be reset back to basic).

unattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <servicing></servicing>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <ShowWindowsLive>false</ShowWindowsLive>
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
            <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            <TimeZone>Eastern Standard Time</TimeZone>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>AdminPassword</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>TempUserPassword</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Description>Temp Local Account</Description>
                        <DisplayName>TempUser</DisplayName>
                        <Group>Users</Group>
                        <Name>TempUser</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
        </component>
        <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>EN-US</InputLocale>
            <SystemLocale>EN-US</SystemLocale>
            <UILanguage>EN-US</UILanguage>
            <UserLocale>EN-US</UserLocale>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
            <TimeZone>Eastern Standard Time</TimeZone>
            <ShowWindowsLive>false</ShowWindowsLive>
            <RegisteredOrganization>Organization Name</RegisteredOrganization>
            <RegisteredOwner>Registered Owner</RegisteredOwner>
            <ProductKey>Your Product Key Here</ProductKey>
            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
            <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
            <Display>
                <HorizontalResolution>1024</HorizontalResolution>
                <VerticalResolution>768</VerticalResolution>
                <RefreshRate>60</RefreshRate>
                <ColorDepth>32</ColorDepth>
            </Display>
            <ComputerName>%Please input a computer name(0,15)%</ComputerName>
        </component>
        <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Identification>
                <Credentials>
                    <Domain>your.domain.com</Domain>
                    <Password>Password</Password>
                    <Username>Username of account to add PC to domain</Username>
                </Credentials>
                <JoinDomain>%Please select a domain to join{your.domain.com}%</JoinDomain>
                <MachineObjectOU>OU=Test,DC=Your,DC=Domain,DC=Here</MachineObjectOU>
            </Identification>
        </component>
    </settings>
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" processorArchitecture="x86" 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>
    <cpi:offlineImage cpi:source="wim:c:/temp/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Open in new window

DisableBackupMonitoring.reg
ConfigTaskbar.vbs
unattend.xml
51
Comment
Author:Ivano Viola
107 Comments

Expert Comment

by:Itsa56
The error appear"Windows could not parse or process unattend answer file [C:\Windows\Panther\unattend.xml] for pass [Specialize]. The answer file is invalid".
What does mean? Where can I fix this error.
0
LVL 22

Author Comment

by:Ivano Viola
Itsa56,

I suggest you start your unattend.xml from the beginning. There is something in your answer file that is causing it to fail. I suggest you keep the xml simple to start with then add components. This way you can locate any problems as you add components.

http://technet.microsoft.com/en-us/library/dd744253%28WS.10%29.aspx
0

Expert Comment

by:Itsa56
Thanks ivanoviola.
My answer file is working now, no error comes up. However, it appears another problem. After running Sysprep, it wiped out my customized install MS Office 2007. Any solution for this problem.
My customized install Office 2007details:
- In the Trust Center-Macro Setting: Tick - Disable all macros except digitally signed macros.
- Add "Help" in Customize Quick Access Toolbar.
0
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

LVL 22

Author Comment

by:Ivano Viola
Glad you got it working.

- For the Quick Access toolbars. I would customize all the tool bars for each Office application. The toolbar files can be retrieved from: C:\Users\[USERPROFILE]\AppData\Local\Microsoft\Office\
I would put them somewhere on the computer, eg. C:Windows\Options\Toolbars then add a line in the SetupComplete.cmd to copy them to the same location in the default profile. SetupComplete.cmd runs after sysprep. Doing it this way will ensure any user profile created will get the configured toolbars.

- As for the Macro setting, I would apply the settings through the Office 2007 group policy settings.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=92d8519a-e143-4aee-8f7a-e4bbaeba13e7&displaylang=en

Hope this helps

0

Expert Comment

by:Itsa56
I'm installing the Microsoft Office 2007 Help Tab add-in (download from here http://office.microsoft.com/en-gb/training/download-help-to-get-started-with-office-2007-HA010214685.aspx) as part of my SOE image.  The add-in installs correctly and works fine for the user account I installed it with (i.e. Local Administrator).  However, after sysprep and logging on as another user the Help tab does not appear in either MS Word 2007 or Excel 2007 (I haven't tried any other Office apps but I assume they will be the same).  Looking in the Control Panel under Programs and Features the application is showing as being installed.  If I re-run a reinstall and choose the Repair option the program installs correctly and is then available for use as the logged on user.
It is very important to us that this application be available for all our users on any PC they use.  How can I install it in our SOE and have the Help Tab visible please?
0
LVL 22

Author Comment

by:Ivano Viola
Itsa,

I'm not familiar with the Office 2207 help tab. I did come across this:
http://msgroups.net/microsoft.public.office.setup/Office-2007-Help-Tab-Not-Available-For-All-Users

Following the info in the link, I would create the registry file to install the help tab for all user. Put the info below into a Tab.reg file.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Word\Addins\MicrosoftOfficeHelpTab.Connect]
"FriendlyName"="Microsoft Office 2007 Help Tab"
"LoadBehavior"=dword:00000003
"Description"="Adds a Help tab to Microsoft Office"

I would deploy the reg file using group policy. Hope this helps.
0

Expert Comment

by:Itsa56
Million Thanks ivanoviola for your genuine and generous advice. It's working beautifully. I agree 100% with Aakash Shah comment in the link your provided.
Thanks again for your help.    
0

Expert Comment

by:Itsa56
Million Thanks ivanoviola for your genuine and generous advice. It's working beautifully. I agree 100% with Aakash Shah comment in the link your provided.
Thanks again for your help.    
0
LVL 22

Author Comment

by:Ivano Viola
You're welcome. I'm happy that you worked out the problems with your sysprep.

IV
0

Expert Comment

by:JamCoul
Can you use mysysprep2 with this unattend.xml?
0
LVL 22

Author Comment

by:Ivano Viola
Yes, can use mysysprep2 with your unattend.xml file. Instead of running:
"C:\Windows\System32\sysprep\Sysprep.exe" /generalize /oobe /shutdown /unattend:"C:\Windows\System32\sysprep\unattend.xml"

you run:

"C:\Windows\System32\sysprep\MySysprep.exe" /generalize /oobe /shutdown /unattend:"C:\Windows\System32\sysprep\unattend.xml"
0

Expert Comment

by:jwcchelpdesk
We build our own machines. Will the above computer naming variables work in this situation? I saw in the MySysprep2 article that customizations can be requested.

Also will MySysprep work in a lab environment where we image several machines at one time?

Thank you for your time and attention. Any suggestions are greatly appreciated!
0
LVL 22

Author Comment

by:Ivano Viola
I use the above for the Windows 7 images on campus. If you sysprep your image using mysysprep.exe then you'll be able to use the variables. When you boot up after running mysysprep, you'll be prompted to name the computer then pick select your domain. I got mysysprep customized with our school logo which looks pretty cool. You can request other customizations.
0

Expert Comment

by:jwcchelpdesk
You're awesome! Thank you for sharing.

I was never able to get the MachineObjectOU line to work. Not a big deal though. The machine joined the domain without it and I've always moved the machines manually anyway.

Again, thank you very much!
0
LVL 22

Author Comment

by:Ivano Viola
That's great that it worked!

Regarding the MachineObjectOU...
It will not work if your path points to a built-in AD container like the built-in "Computers" container.  It worked when I pointed an OU which I created. You should be able to get it to work as it works for me.

0
LVL 22

Author Comment

by:Ivano Viola
One more tip....
If the computer name is longer than 15 characters, the sysprep will fail. The computer name will not be shortened automatically as in a XP sysprep.

If you use the following variable in your unattnded.xml, the name will be shortened to 15 characters automatically.
<ComputerName>%Please input a computer name(0,15)%</ComputerName>

This will save you re-imaging the computer again.
0

Expert Comment

by:jwcchelpdesk
Thanks for the additional comments. Your help is greatly appreciated.
0

Expert Comment

by:boriskostov
I am trying to deploy some machines with Windows 7 Enterprise using MySysprep and Symantec Ghost
An error appears Microsoft-Windows-Shell-Setup and restarting infinitly.
I am just customize the existing xml file for my domain, time zone and international settings.
Any suggestions?
0
LVL 22

Author Comment

by:Ivano Viola
I would start with re-creating you xml file. Put in your Windows 7 Enterprise disk, open WAIK, create a new catalog then customize your settings.

I think this will help.
0

Expert Comment

by:boriskostov
I still have problems with <CopyProfile>true</CopyProfile>  in specialize pass,  Microsoft-Windows-Shell-Setup component name.  When is <CopyProfile>false</CopyProfile> mysysprep is passing OK, but still there is problems with international settings in oobeSystem.   I don't have patience testing to leave the field empty (nor true nor false) or to remove all the line. Is someone have tried that?  And at last is there any matter about the order of passes and components inside them? I'll  appreciate any shared experience about the correct order of passes (generalize, specialize, oobeSystem etc.), components inside and the settings and scripts at last in my answer file. I could show it.
Thanks in advance.
0
LVL 22

Author Comment

by:Ivano Viola
You should start by trying to get the <CopyProfile> setting to work first. When you have this working then try adding the International settings. Doing it this way we'll be able to find out what is causing the problem.

When you are configuring the laptop, are you logged in as Administrator? If not, try using the Administrator account. You can post your xml and I'll take a look to see if I can spot any problems.

What errors are you getting (if any)? Is the sysprep working and your settings just not applying?

IV
0

Expert Comment

by:jwcchelpdesk
Is there any way to specify what profile is copied?
0
LVL 22

Author Comment

by:Ivano Viola
The logged in profile when you run mysysprep will be the profile that gets copied over to the Default profile. There is no other way to specify a different profile to be copied over. If you have a specific profile that you would like to use as the default profile, then log in using that profile and run mysysprep.
0

Expert Comment

by:jwcchelpdesk
Thanks again!

Does anyone know of a way to keep the Windows Media Player Setup after sysprep? Also, the Java checkbox "Check for updates automatically " resets, and the Start menu and the Action Center repopulate.
0
LVL 22

Author Comment

by:Ivano Viola
I ran into the same problems as you.

You can prevent the first use dialog box from appearing when opening Windows Media Player by using Group Policy.  
Computer Config - Policies - Admin Templates - Windows Components - Windows Media Player

When running sysprep it resets a few things back to OOBE. This includes Action Center, Start Menu and WMP.

In my article above under "Problems and Fixes" it tells you how to disable the Backup Monitoring in Action Center.


0

Expert Comment

by:jwcchelpdesk
I’m at the point where mostly everything is working the way I would like. I’ve set up Windows 7, made changes to the default profile; I’ve also set up my unattend.xml, Mysysprep, the SetupComplete.cmd file in C:\windows\setup, and copied what’s needed to the sysprep folder. I’ve pulled an image and all works fine except when using the Ghost Console. When I push the image to a machine using the ghost console my profile information is lost. When I push the same image form the Ghost Cast Server all is well. I’ve watched and documented the process and the one looks identical to the other. Is anyone else having the same problem? Is there a reason for the Ghost Console to image differently than the Ghost cast server? Using the Ghost Console would be advantageous! Thanks for your time and attention.
0

Expert Comment

by:jwcchelpdesk
Problem solved. I thought it would be helpful, or at least not hurt, to leave the additional local account on my image instead of removing it in the mysysprep process. Seems as though the additional local account confuses the Ghost Console. Not sure why it works with the Ghost Cast Server but it does.

Hope this helps others.
0
LVL 22

Author Comment

by:Ivano Viola
jwcchelpdesk:
Thanks for sharing that. I didn't have an answer for you as I don't use the ghost console (and I couldn't test it). I use the Ghost cast server. It may help me if we decide to use the console. Thanks!
0

Expert Comment

by:jwcchelpdesk
I've imaged my first Windows 7 lab using the GhostCast Server. The lab had 13 machines in it. The first time that I pushed the image to the machines (all same hardware) 6 of the machines did not have the default profile settings. I decreased the number of machines in the GhostCast Server and pushed the same image to the 6 computers that did not have the default profile and 5 of the 6 loaded properly. I then decreased the count to 1 and the last one took the default profile. Has anyone else had problems with the default profile copying over?
0

Expert Comment

by:cameron213
Is there anyway to add a script or command to the unattend.xml file that will put any user who logs on to the computer directly into the local administrators group? I do not want to do this through group policy and I certainly dont want to go from machine to machine and add each user to that group, especially when there are multiple users per machine.
0
LVL 22

Author Comment

by:Ivano Viola
@ Cameron
I came across this which may help....
http://www.msfn.org/board/topic/72395-add-users-to-local-administrators-group/

@ jwcchelpdesk:
I haven't come across a problem like that. I've had some funky things happen to some computers when doing a multicast session but re-imaging them usually fixes the problem. Sorry.
0

Expert Comment

by:Quadraam
@ jwcchelpdesk , why not download the "offline" version of Java , its the same but does not have the update part in it.
0

Expert Comment

by:Michael3232
Do you remove the entire command <ComputerName></ComputerName>  to prompt for computer name or just the content in between the ><? When trying it without the entire command <ComputerName></ComputerName>  I get an error that it couldn't parse or process in the specialize pass section.

When I leave the command in there just as is: <ComputerName></ComputerName>  it asks for a username and then names the computer a random name.

I would like on startup to be able to name the computer and let what I specify be the computer name. And then remove the temp local user created and enable the Administrator account with the specified password, and join domain.
0

Expert Comment

by:jwcchelpdesk
Michael3232: The above reference worked great for me:
<ComputerName>%Please input a computer name(0,15)%</ComputerName>

Quadraam: Thanks for the Java tip. We would like to be able to control the updates ourselves, teherfore just want the box unchecked.
0
LVL 22

Author Comment

by:Ivano Viola
You may have a problem inserting %Please input a computer name(0,15)% into the computer name field when creating your unattend.xml file using WAIK. If so you can open the unattend.xml with a text editor (notepad) and find the string <ComputerName></ComputerName> and replace it with <ComputerName>%Please input a computer name(0,15)%</ComputerName>. This will prompt you for a computer name.

Follow the instructions above under "There is one trick that is not documented very well, but works great....." which details how to use the SetupComplete.cmd to delete the temp user and make the Administrator account active.

Lets us know if you have any other questions or problems.

0

Expert Comment

by:Michael3232
It prompted for me a computer name now. It then continues, but errors out at: Windows could not parse or process the unattend answer file for pass [specialize]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for component [Microsoft-Windows-Shell-Setup].  And below it says "Setup is applying system settings" on the screen.

I can send you a copy of the answer file if you would like. This was tested on a "clean" xml file that you provided. Thank you for your help.
0
LVL 22

Author Comment

by:Ivano Viola
The problem is usually your xml file. I suggest you re-create your unattend.xml file from scratch. When you do make sure you use the wim file from the Windows 7 media (disk) you used to create your image.  
0

Expert Comment

by:Michael3232
As mentioned previously, I tried again with a new xml from scratch with the unattand.xml file you provided.

I can send you a copy of the answer file if you would like. This was tested on a "clean" xml file that you provided.
0
LVL 22

Author Comment

by:Ivano Viola
You will need to create a new xml file using WAIK. Download and install WAIK for Windows as indicated above. Here is a link that will step you through creating an unattend.xml using your Windows 7 media.
http://www.bohack.com/2011/01/how-to-make-an-unattend-xml-sysprep-file/
My xml may not be compatible with the windows 7 media you used that's why you're getting that error.
0

Expert Comment

by:Michael3232
I got the XML working now using the link you provided, thank you! How can I get it to prompt for a username? I use the <ComputerName>%Please input a computer name(0,15)%</ComputerName> for Computer Name and that works fine, just didn't know about a username. Or have it not prompt at all and just use the local administrator account only, which I have working also to enable and the password set in the XML file.
0

Expert Comment

by:Michael3232
OK, I got it figured out... I used the same syntax as the computer name except for user name it is: <Name>%Please Input User Name%</Name>. The only thing is now, as soon as I sysprep the machine and shutdowns, I then power it back on and it prompts for username and computer name then loads devices and restarts... at this point it asks again for username hit next and wants password.

I am not sure why it is asking this again, when I have already specified the username before?
0
LVL 22

Author Comment

by:Ivano Viola
OK, we're making progress. Now...the way I have my sysprep setup I'm only prompted for a computer name and domain (domain is pre-filled). I set the Administrator password when configuring the laptop before imaging. I add the username and password of the account which has permission to add computers to the domain in my XML file. This is the pass you need to add to your xml Credentials add PC to domain. Here is how the code looks in my xml.
 
<Identification>
                <Credentials>
                    <Domain>Your Domain</Domain>
                    <Password>User Password</Password>
                    <Username>User Name</Username>
                </Credentials>
                <JoinDomain>%Please select a domain to join{your domain}%</JoinDomain>
                <MachineObjectOU>OU=Re-Imaged,OU=your,DC=domain,DC=com</MachineObjectOU>
                <UnsecureJoin>false</UnsecureJoin>
                <DebugJoin>false</DebugJoin>
                <DebugJoinOnlyOnThisError>0</DebugJoinOnlyOnThisError>
</Identification>

Open in new window

We use a domain account called imageprep and only use this for this purpose. You also need to specify the domain OU to add the computer to.
The second username and password is of my TempUser which gets deleted as outlined in the article.
0
LVL 1

Expert Comment

by:Corp616
Hi there,

Thank you again for sharing this
0
LVL 1

Expert Comment

by:Corp616
I wonder if there is a way to keep the video driver. I have already installed the Intel HD Graphics driver but verytime I ran the "MySysprep", it reset the video driver to default and I loose all my video setiings. Please advice
0
LVL 22

Author Comment

by:Ivano Viola
After sysprep does the Aero feature remain or do you have to set that again as well? Which settings are you losing? Did you run the WinSAT prepop command before taking your image?

If the computers you're syspreping have the same hardware the you can use the WinSAT prepop command. Run the following command at an elevated command prompt:
WinSAT prepop
This will generate the WinSAT prepop .xml results files to the Datastore directory located at %WINDIR%\performance\winsat\datastore. This enables you to keep the configured aero theme after running sysprep (otherwise it will be reset back to basic). The video driver should still be installed after sysprep.
0
LVL 1

Expert Comment

by:Corp616
Hello,it remains after sysprep but the intel graphics application disappears from the application list under control panel. The screen resolution went to 800 x 600. I did run winsat prepop before I sysprep the machine but still ahving the same issue. Any thoughts?
0
LVL 22

Author Comment

by:Ivano Viola
Do these computers have the same hardware?
You can set the resolution in your unattend.xml under the following pass:
Display Settings.The application shouldn't disappear but you may lose the settings. If we can pinpoint where the settings are held (registry or folder) then we could apply them after sysprep runs.
0
LVL 1

Expert Comment

by:Corp616
That is very wierd. I had the settings in my xml file but it did not take it. Please advice
My config
0
LVL 22

Author Comment

by:Ivano Viola
Try setting the PnpSysprep pass in your unattend.xml (if you haven't already done so):
 XML Setting
That may help.
0
LVL 1

Expert Comment

by:Corp616
I have updated my xml and I'm running another Mysysprep. I will keep you posted. Thank you for your time
0
LVL 1

Expert Comment

by:Corp616
You are the best!!! It worked. Thank you very much. I sent you an email yesterday about the MySysprep customization. Is there a way to remove the logo as we are going to deploy it for the entire company
Thank you, thank you
0
LVL 22

Author Comment

by:Ivano Viola
Great to hear that it worked. I got James (from mysysprep) to add our logo to our copy of mysysprep. Our logo is centered on the screen (top). Looks much better than on the right. I also had him send us a copy of mysysprep without the logo.
0
LVL 1

Expert Comment

by:Corp616
That would be much appreciate it if we can have a copy without the logo. Thank you
0
LVL 22

Author Comment

by:Ivano Viola
Just in case....I have nothing to do with MySysprep. I've only written the article on how you can use it with Windows 7. images I only use it.....
James is the person who created it. If you emailed him using the email address on his website he'll respond.

Glad all worked out for you.
0
LVL 1

Expert Comment

by:Corp616
Ah!!! Did not know that. I did send an email yesterday and I'm still waiting for a response. Again thank you for all your help. Take care
0

Expert Comment

by:leatherleaf
I see above that you say you must specify the OU to which the computer will be added. We have a number of PCs that will use the same image, but need to go into different OUs. Will we need to create different images for different OUs?
0
LVL 1

Expert Comment

by:Corp616
Hi All, i have a technical question and need help. I'm using MySysprep to deploy Windows 7. The naming convention in our company is the computer SN. Rather than using %Please input a computer name(0,15)% in the XML file, I wonder if there is a way to grab the machine SN and use it as default name. Thank you
0
LVL 22

Author Comment

by:Ivano Viola
@ leatherleaf:
If you want to automate the exact OU to add them to then you will need an image for each OU. Really you just need to create different unattend.xml files with the different OUs then replace it in the image (then retake the image). I just have all the computers go to one OU then move them accordingly. Because of our computer naming scheme it's easy to tell where they should go.

@ Corp616:
Check the mysysprep website. It mentions something about using the following variable for the computer name in the unattend.xml: %SerialNo%
http://www.tsaysoft.com/mysysprep2/
0
LVL 1

Expert Comment

by:Corp616
This did the trick Ivanoviola. Thank you again
0

Expert Comment

by:leatherleaf
Awesome. Thanks so much for this article! This works like a charm!
0
LVL 1

Expert Comment

by:Corp616
Anther question for the experts. I have craete my windows image, ghost it (it's more that 5 gigs) and I would like to load it from my usb ntfs flash drive. I know it's easy to create a bootable fat 32 usb drive. Now I wonder if it is possible to do it with an ntfs drive and have a batch file running on start
0

Expert Comment

by:jwcchelpdesk
Has anyone been successful inserting a driver path in sysprep? Having trouble with My Dell Optiplex980 video drivers.

Thanks
Vicky
0

Expert Comment

by:jwcchelpdesk
Sorry, I meant Mysysprep for Windows 7.
0
LVL 22

Author Comment

by:Ivano Viola
@Vicky
Are you referring to adding a driver path to your unattend.xml file? If so, and I looked this up previously, that field can only be used if you're using Windows Deployment Server to distribute your images. My work around was to slipstream my drivers to the DriveStore on my Windows 7 image using the pnputil.exe utility before taking the image. More info here:
http://technet.microsoft.com/en-us/library/dd919234%28WS.10%29.aspx



0
LVL 22

Author Comment

by:Ivano Viola
@Corp616:
Not sure about this. I created a nice WInPE 3.0 disk which loads ghost automatically when loaded which is on a FAT32 partition. Maybe a question to ask the Windows 7 forum.
0
LVL 22

Author Comment

by:Ivano Viola
Corp616:
I did a little test today and created my WinPE 3.0 boot disk on NTFS. All went well. You'll find instructions here on how to create a WinPE 3.1 boot disk:
http://theitbros.com/dism-tool-winpe-3-1-boot-environment
Just format it as NTFS instead of FAT32. When you have the boot disk working I'll show you how to add ghost. When WinPE is loaded, ghost opens up and ready to connect to a session. Not sure how's we go about loading the image from the flash drive.
0
LVL 1

Expert Comment

by:Corp616
Thanks but I'm not sure if it will work in my case. I have 2 big different images I would like to run from my flash drive. It's bootable and I have created an autooexec.bat file in which Im using the dos choice command to choose between desktop and laptop. or cancel the process. The problem is everytime I try to run ghost from teh usb drive it crashed fro some reasons I can't figure out so far
0

Expert Comment

by:Achievement_First
Ivanoviola,
Thanks for sharing your awesome job.  I've been using this to deploy Windows 7 on all of our new laptops coming in.
Do you have any idea how I can make the laptop join the domain wirelessly?
0
LVL 22

Author Comment

by:Ivano Viola
Achievement_First,
Thanks! I'm glad it's working great. Regarding the wireless...I've never thought about it till you asked. I'm not sure if it's possible and if it is, I really don't know how to do it. Getting the laptop to connect to the wireless network (SSID) before it's added to the domain sounds almost impossible. I did do a little googling but not much showed up. Sorry. If you find an answer, please post it for others.

Ivano
0

Expert Comment

by:IELTechServices
I keep hitting a wall and I was hoping ivanoviola or someone else could help me out.

Basic premise:

Windows 7 Pro SP1 installed on a laptop (in this case).  All drivers, software, user profile, etc setup and working as desired.

I simply want to 'sysprep' this image and shut it down.  We use third party tools (several) to 'image' this to multiples of the exact same hardware.

What we are doing:
1. ready the machine
2. Copy /Scripts folder to /windows/setup it contains
net user TempUser /delete
net user Administrator /active:yes
C:\Windows\System32\Sysprep\unattend.xml

Open in new window

as SetupComplete.cmd per the instructions above (we previously didn't do this, but I like the idea of it).
3. Put our unattend.xml file (attached) unattend-sample.xml in the sysprep folder
4. Run
WINSAT  prepop

Open in new window

5. Elevated command prompt, sysprep folder, and run
sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml

Open in new window


At this point, we are logged in as an account that has our look/feel and settings (background, office setup as we like, etc) and I am under the impression that this profile will be copied to/become the default profile per the unattend.xml file?

Sysprep runs fine, the machine shuts down.

NOT doing any imaging at this point, so I want to rule out the system we use as an issue.  I am simply turning the exact same machine on to ensure that the process works.  It fails at Windows Shell Setup on pass 4, specialize.

 WSIM screen cap
The machine never successfully boots after this.  It goes through one more time, says windows has a problem (still in the OOBE portion here) and then stops with an error, rebooting brings it back to the same error (to be clear, the pass 4 specialize error is shown once then the 2nd, generic can't boot error happens over and over).

What we are NOT doing:
1. the MySysprep2 portions.  Interesting and probably helpful but I just want something basic, changing a computer name manually, etc is of no concern right now. I just need to get these out.
2. Slipstreaming/pointing sysprep at any drivers, etc BUT we are setting PersistAllDeviceInstalls to true to keep the specific (and often troublesome) laptop video, WLAN, etc drivers installed on the machine.

Some notes:
We have a MAK key.  Previous Win 7 Ent sysprep process we used included two FirstLogonCommands on pass 7 oobeSystem, Shell setup Neutral:
cscript //b c:\windows\system32\slmgr.vbs /ipk 00000-00000-00000-00000-00000
cscript //b c:\windows\system32\slmgr.vbs /ato

Open in new window

This worked and activated the machine fine.
With our old sysprep on Win 7 ent  we never truly had the 'default profile' process down (that's what is propelling this new process, to be honest) and we would get post sysprep 'logging in with temp profile' issues, corrupted profiles, etc. We resorted to the first few hacks people were doing with Win7 including enabling the 'copy' button to copy profiles (as in WinXP), copying 'our' profile and then renaming it Default and Default User, etc - frankly, a bunch of BS that wasn't consistent.   It is my understanding now that the CopyProfile option in Sysprep works...

The attached XML is what we are trying now.  I generated a new WIM/Catalog setup for WSIM with the exact same Win 7 Pro SP1 disc that I then built the base image on the notebook with. (a primary suggestion for everyone has been to rebuild the WIM/catalog/XML file combination from scratch if you are having issues).

Can someone take a look and see if anything jumps out?

Thanks
0

Administrative Comment

by:Robert Marley
IELTechServices:

Please note if you above comment http:#c26082 is technical question, you may be better served opening a thread in the same zone as the Article:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/

The Article discussion can be referenced in your question and hopefully you get some of the same participants from here in that thread.

Mod_MarlEE
Experts Exchange Moderator
0
LVL 22

Author Comment

by:Ivano Viola
IELTechServices,

Something simple you can try is using the full path to the sysprep files in your command when running sysprep. Example:

"C:\Windows\System32\sysprep\Sysprep.exe" /generalize /oobe /shutdown /unattend:"C:\Windows\System32\sysprep\unattend.xml"

Let me know how that goes.
0

Expert Comment

by:jwcchelpdesk
For anyone who has problems with drivers I found an easy fix here on Experts Exchange in a post from DKowalchik.

In the unattend.xml file add:
Microsoft Windows-PnpSysprep_neutral - PersistAllDeviceInstalls=True and DoNotCleanUpNonPresentDevices=True to the generalize pass.

Hope this helps someone else.
0
LVL 22

Author Comment

by:Ivano Viola
jwcchelpdesk,

I actually use that pass but forgot all about it. Sorry!
PersistAllDeviceInstalls
True = This specifies that Plug and Play devices remain installed on the destination computer during the generalize configuration pass. The devices then do not need to be reinstalled during the specialize configuration pass.
False = Specifies that Plug and Play devices are uninstalled during the generalize configuration pass. If the devices are on the computer during the next specialize configuration pass, they are reinstalled. This is the default value.

Another that may be of interest is DoNotCleanUpNonPresentDevices
True: This specifies that during the next specialize configuration pass, Plug and Play devices that are not detected remain installed.
False: Plug and Play devices that are not detected are removed from the computer. This is the default value.

How is the mysysprep process going? I have it working flawlessly and amd preety happy with the sysprep process.


0

Expert Comment

by:jwcchelpdesk
The mysysprep process is going well, thanks. We've deployed one test lab and are getting ready to start our mass summer deployment starting tomorrow.

Thanks for all the help that you've provided.


0
LVL 1

Expert Comment

by:Corp616
Does anybody know why my network type goes back to public rather than work after I run mysysprep? I would like to default network type to work for all my users. Thank you
0
LVL 22

Author Comment

by:Ivano Viola
Corp,

Did you set your network location in your unattend.xml? Also did you apply the fix above in your image computer? http://support.microsoft.com/kb/2028749
Looking at my xml I noticed that my location is set to "Other". I can't remember why I did this but it's working fine. Something you can try.

 Network Location
0
LVL 1

Expert Comment

by:Corp616
The network loacation in my xml file is set to work. I did not apply that patch because we are not using AD but EDirectory and I did set that registry file to hide the wizard
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard]
"HideWizard"=dword:00000001
0
LVL 22

Author Comment

by:Ivano Viola
Strange. Try setting the location to Other and see what happens.
0
LVL 1

Expert Comment

by:Corp616
That's just what I tried and it did not help
0
 

Administrative Comment

by:Mark Wills
Corp616,

Think it is time you raised a question so you can get the more focussed help and attention that you seem to be needing.

Using the Article as a Q&A thread is not really the intention of Articles.

Once you have raised the question, post a link back here so ivanoviola can get involved.

Cheers,
Mark Wills
Page Editor
0
LVL 1

Expert Comment

by:Corp616
I wonder if there si a registry key to change it, so I will add it in my setupcomplete.cmd file
0
LVL 22

Author Comment

by:Ivano Viola
0

Expert Comment

by:Michael3232
The unattend.xml file runs fine and shuts down normally. I then imaged the machine and when we power them all on, it doesn't run the setupcomplete.cmd file in the c:\windows\setup\scripts directory.

I can run the file manually and it works.  
0
LVL 22

Author Comment

by:Ivano Viola
What commands do you have in the .cmd file?
These are some of the commands I use in my .cmd file.
 
:: Enable local administrator user account
net user Administrator /active:yes

:: Delete temp sysprep User
net user TempUser /delete

:: Remove domain users group from local users Group
net localgroup users "Domain\domain users" /delete

:: Delete Unattend.xml file
del "C:\Windows\System32\sysprep\unattend.xml" /q
del "C:\Windows\Panther\unattend.xml" /q

Open in new window

0

Expert Comment

by:Michael3232
Here's everything I have in mine:

net user TempUser /delete
net user Administrator /active:yes
del C:\Windows\System32\Sysprep\unattend.xml
del C:\Windows\Panther\unattend.xml  
0
LVL 22

Author Comment

by:Ivano Viola
Not sure why the script is not running. Just make sure the path is:
C:\Windows\Setup\Scripts\
There really isn't anything else you need to do to make this run.

0
LVL 22

Author Comment

by:Ivano Viola
Here is a post regarding joining the computer to the domain automatically after sysprep.
http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_27043915.html
0

Expert Comment

by:YRich
Instead of pnputil, have you used ghost deploy anywhere?

Thanks,
Rich
0
LVL 22

Author Comment

by:Ivano Viola
Thanks for the post YRich:. I haven't come across ghost deploy but it seems to be worth a look at, The pnputil.exe is more for a small number of drivers. Too many drivers will bloat the image size. I will look into Ghost Deploy. I think it's something worth using.

IV
0

Expert Comment

by:jwcchelpdesk
Do you have a 64bit version of mysysprep?
0

Expert Comment

by:jwcchelpdesk
Never mind, I found it.
0

Expert Comment

by:jwcchelpdesk
What is the difference between wow64, amd64 and x86 in the components section of Windows Image when creating my Windows 7 64bit unattend.xml?
0
LVL 22

Author Comment

by:Ivano Viola
amd64 = settings for 64-bit apps on a 64-bit OS.
wow64 = settings for 32-bit apps on a 64-bit OS.
x86 = app settings on a 32-bit OS.
0

Expert Comment

by:jwcchelpdesk
We are kind of despirate for help here. Classes start Monday.

Having problems with our CAD/Inventor install. Windows 7 64bit. The install works fine but when the individual users open Inventor they get an error because the program sets a file path to the administrator account.

Are you aware of any way this can be altered in the unattend.xml file?

Thank you for your input.
Vicky
0
LVL 22

Author Comment

by:Ivano Viola
Vicky,

What you can try is to delete the registry key under Administrator for the CAD/Inventor  program before taking the image. While you're logged in with the configured profile navigate to and delete:
Run - Regedit - HKEY_CURRENT_USER\Software\{Program Name}
Program Name would be the name of the CAD/Inventor program. Delete this key.

Take the image and test. Hope this helps.

The school where I work doesn't start till the first week of September. I know the feeling of coming down to the crunch! :)

IV
0
LVL 22

Author Comment

by:Ivano Viola
Vicky,

It also occurred to me that you might also have to delete the folders in the Administrator profile along with the registry key above:
C:\Users\Administrator\AppData\Local\{Program Name}
C:\Users\Administrator\AppData\Roaming\{Program Name}

Try it on a machine that is not working and see if that fixes the problem. If so you can make those changes in your image then retake the image.

Ivano
0

Expert Comment

by:jwcchelpdesk
Thank you for your help. Unfortunately, this did not work.The fix for now is to create a Power User group and give them full control of the problematic folders in the local administrator account. Not the way we would like to do it but it works.

Thanks again!
Vicky
0

Expert Comment

by:jwcchelpdesk
Has anyone experienced slow first login times? Anywhere from 1 to 3 minutes. We have a script that loads an X: drive and printers. We've also tried preferences to load printers. Printserver runs on Server 2008 R2. Papercut loads through a policy. The printers sometimes load and sometimes not. They also sometimes load 2 of th 3 printers in the IS area. We are using Vipre for antivirus. I read an article that said that sysprep deletes readyboot and superfetch but it did not elaborate.  
0

Administrative Comment

by:Robert Marley
jwcchelpdesk, you can always As a New Question if needed!
0

Expert Comment

by:jwcchelpdesk
I guess I got a little carried away. Basically I would like to know if there is anything in the sysprep/mysysprep process that could slow the network first time login?
0

Expert Comment

by:garryshape
Hmm

I got an error after reboot during the Specialize pass not details from it given. But I suspect it's an issue with the MySysprep2 variables inside.

Did you use this in your answer file? If so maybe I can copy and use it.

Is the point of the Mysysprep2 join domain part to actually join the domain with credentials you enter in the prompt?
0

Expert Comment

by:garryshape
Nvm I got it to work after re-creating a new answer file (thankfully found this site: http://benosullivan.co.uk/windows-7-unattend-xml-generator/) much easier than having to use the Microsoft Tool.

But this is in x86 Windows 7 in VMWare so I will try again tomorrow in Win764 bit.
0

Expert Comment

by:garryshape
Yeah I'm doing the same thing making sure architecture is right but same structure in XML file, and this mysysprep 2 is ruining my images. I get Specialize pass errors after sysprep after reboot and issues at Preparing your computer for first use screen "computer restarted unexpectedly or encountered an unexpected error".

I guess I will stick to RunOnce chaining for naming computer and joining domain.

There's no support for MySysprep2 either I sent 2 emails to the guy a few days ago and haven't heard back yet.
0

Expert Comment

by:03fcp14
Hi,
      I used this procedure to image and deploy Win7 professional 64bit. Everything works fine but after I enter the computer name and Domain in Mysysprep2 dialog boxes, I again get prompt by Windows to give name to computer, which then overwrites the name which I had given during sysprep. And so the machine is also not joined to the Domain.

Does anyone else got this problem?

Where I am doing wrong?

Thanks
0
LVL 22

Author Comment

by:Ivano Viola
Hi,

The naming box that appears twice, is this the same box or do they look different?

Not sure why you're getting prompted twice to name your computer. The first place to check is your unattend.xml file. Make sure of the data in the following fields in your unattend file:

<ComputerName>%Please input a computer name(0,15)%</ComputerName>
See attached image.

There shouldn't be any other fields that contain computer name in your xml. Try recreating your unattend.xml file if this still is a problem.

IV
Capture.jpg
0

Expert Comment

by:WMFS_SUPPORT
Thanks for a brilliant article.

I am having issues with mysysprep so if anyone could please look at my question located here and provide assistance, I would be eternally grateful:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_28432747.html

I already have a full head of grey hair thanks to this, so the next stage will be to pull it out.
0

Featured Post

Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Join & Write a Comment

This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month