Windows 7
--
Questions
--
Followers
Top Experts
"Set CopyProfile to true in the Unattend.xml file that you will use with Sysprep in the next step"
Can anyone give us all the steps on how to do that (add the copy profile to the unattend.xml file) using the AIK tool.
Thanks
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
http://www.irongeek.com/i.php?page=security/windows-7-copy-default-profile
Thank you for these instructions. Â I looked at http://support.microsoft.com/kb/973289Â but could not make enough sense out of it to generate the proper unattend.xml file. Â I couldn't have done it without your guidance.
To save others the trouble of messing with AIK, I have created a batch file that will automatically generate the unattend.xml file necessary to copy the currently logged in profile settings over to the Windows 7 default profile. Â Then you will need to restart the computer, and after that the default profile should be set.
Save the following as a .BAT file. Â *RUN AT YOUR OWN RISK* Â You should know what you're doing.
You may need to unwrap long lines (especially the one in the middle of the series of ECHOs).
====BEGIN CODE=====
@ECHO OFF
ECHO Copy settings from currently logged in profile to the Default User Profile?
ECHO Please note the all files on the desktop will also be copied to the default profile.
set Choice=n
set /p Choice=Proceed? (y/n)[n]:
IF %Choice%==y GOTO YES
IF %Choice%==Y GOTO YES
:NO
ECHO Aborted.
PAUSE
EXIT
:YES
SET SPPath=%systemdrive%\Windo
ECHO ^<?xml version="1.0" encoding="utf-8"?^> >%SPPath%\unattend.xml
ECHO ^<unattend xmlns="urn:schemas-microso
ECHO Â Â ^<settings pass="specialize"^> >>%SPPath%\unattend.xml
ECHO Â Â Â Â ^<component name="Microsoft-Windows-Sh
ECHO Â Â Â Â Â Â ^<CopyProfile^>true^</Copy
ECHO Â Â Â Â ^</component^> >>%SPPath%\unattend.xml
ECHO Â Â ^</settings^> >>%SPPath%\unattend.xml
ECHO ^</unattend^> >>%SPPath%\unattend.xml
REM http://support.microsoft.com/kb/973289
REM type sysprep /? to get a list of possible switches.
REM Instead of /audit you may want /oobe. Â Or just leave them out and use the GUI that comes up.
%SPPath%\sysprep.exe /generalize /audit /quit /unattend:%SPPath%\unatten
IF %ERRORLEVEL%==0 ECHO Current profile copied to default profile
PAUSE
DEL %SPPath%\unattend.xml
=====END CODE=====
ECHO Â Â Â Â ^<component name="Microsoft-Windows-Sh
to
ECHO Â Â Â Â ^<component name="Microsoft-Windows-Sh
I can't think of a reason it wouldn't, and I may test regardless, but I thought I would ask first.
Thanks!






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/0be9b1f0-a21f-4889-9568-6ec455689aa9
and decided to check in the %ProgramFiles%\Windows AIK\Samples folder on my 64-bit machine. Â This is the line that was in the headlessunattend_X64.xml file:
<component name="Microsoft-Windows-Sh
It looks like the publicKeyToken is the same, although I don't know why the processorArchitecture says "amd64." Â What if someone doesn't have an amd processor?
   Â
I run into a problem after I run the sysprep command. When windows reboots after configuring the sysprep I get an error stating that "Wndows could not parse or process unattended answer file for pass specialize...". I am using the <CopyProfile>true</CopyPro
<?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>
<ProductKey>xxxxxxxxxxxxxxxxxxxxxxxxx</ProductKey>
</component>
</settings>
<settings pass="generalize">
<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">
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/users/test/desktop/new%20folder/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
For those that received this error:
http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/c469805c-98af-4bb2-9655-c86c294470a9
Once I applied all this I was was then abile to copy the default profile for my VDI environment. Â If someone gave MS the direction to take something simple and complicate it I would say they get a 10 on this one. Â I'm all for more security, if that was the intention here, Â but add the facilities to keep administration costs down.
Thanks for all the help here, it made the choice for the subscription well worth it.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Windows 7
--
Questions
--
Followers
Top Experts
Windows 7 is an operating system from Microsoft. Features include multi-touch support, a redesigned Windows Shell with a new taskbar, referred to as the Superbar, a home networking system called HomeGroup, and performance improvements.