Jump to content

WDS and user accounts at oobe


Recommended Posts

Hi there,

I have had a dig through the search facility but I can't seem to find an straight up answer to my problem so if anyone could shed any light on this it would be greatly appreciated.

I have created an image from a reference pc with OEM Vista home Premium on and sysprepped it (sysprep /generalize /audit) and imaged it and uploaded to wds, now, the unattend file works great and the only step i have to click is the image selection but the problem i am having is that when you have gone through the oobe (after its been resealed) and created the user account via the welcome screen when you get to the final stage you are presented with 2 accounts, the one which was created when i did the reference machine and the one i just created now.

I have tried running a synchronous command like NET USER Account /Delete but I can't seem to get it to nuke that account pre welcome screen, i have run a synchronous command to enable the administrator account but just can't seem to shift the other account (from master pc), even tried putting it in first logon but that doesn't seem to work either.

If anyone has any suggestions on how i could sort this i would appreciate it, i would probably put money on it being something silly that i have overlooked but its beginning to mess with my mind now :)

I have included the .xml file i use for the image install below.

  <?xml version="1.0" encoding="utf-8" ?> 
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <component name="Microsoft-Windows-International-Core-WinPE" 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">
- <SetupUILanguage>
<WillShowUI>Never</WillShowUI>
<UILanguage>en-gb</UILanguage>
</SetupUILanguage>
<InputLocale>en-gb</InputLocale>
<SystemLocale>en-gb</SystemLocale>
<UILanguage>en-gb</UILanguage>
<UserLocale>en-gb</UserLocale>
</component>
- <component name="Microsoft-Windows-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">
- <ComplianceCheck>
<DisplayReport>Never</DisplayReport>
</ComplianceCheck>
- <Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
- <RunSynchronous>
- <RunSynchronousCommand wcm:action="add">
<Path>net user administrator /active:yes</Path>
<Order>1</Order>
<Description>Activate Administrator account</Description>
</RunSynchronousCommand>
</RunSynchronous>
- <UserData>
- <ProductKey>
<Key>Product Key Removed</Key>
<WillShowUI>Never</WillShowUI>
</ProductKey>
</UserData>
- <WindowsDeploymentServices>
- <Login>
- <Credentials>
<Domain>smallbusiness.local</Domain>
<Username>Administrator</Username>
</Credentials>
</Login>
</WindowsDeploymentServices>
<EnableFirewall>false</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
- <ImageInstall>
- <OSImage>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<WillShowUI>Never</WillShowUI>
</OSImage>
</ImageInstall>
</component>
</settings>
- <settings pass="specialize">
- <component name="Microsoft-Windows-Security-Licensing-SLC-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">
- <OEMInformation>
<Manufacturer>OEM Manufacturer</Manufacturer>
<SupportURL>http://www.companywebsite.com</SupportURL>
<SupportPhone>0123456789</SupportPhone>
</OEMInformation>
<ComputerName>*</ComputerName>
</component>
- <component name="Microsoft-Windows-IE-InternetExplorer" 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">
- <FavoritesList>
- <FavoriteItem wcm:action="add">
<FavID>Fav1</FavID>
<FavTitle>OEM Website</FavTitle>
<FavURL>http://www.companywebsite.com</FavURL>
</FavoriteItem>
</FavoritesList>
- <StartPages>
- <StartPage wcm:action="add">
<StartPageUrl>http://www.google.com</StartPageUrl>
<StartPageKey>startpage1</StartPageKey>
</StartPage>
</StartPages>
</component>
</settings>
- <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>false</HideEULAPage>
<SkipUserOOBE>false</SkipUserOOBE>
</OOBE>
- <FirstLogonCommands>
- <SynchronousCommand wcm:action="add">
<CommandLine>NET USER Account /DELETE</CommandLine>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
</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-GB</InputLocale>
<SystemLocale>en-GB</SystemLocale>
<UILanguage>en-GB</UILanguage>
<UserLocale>en-GB</UserLocale>
</component>
- <component name="Microsoft-Windows-Deployment" 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">
- <Reseal>
<Mode>Audit</Mode>
</Reseal>
</component>
</settings>
- <settings pass="auditUser">
- <component name="Microsoft-Windows-Deployment" 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">
- <RunSynchronous>
- <RunSynchronousCommand wcm:action="add">
<Path>net user administrator /active:yes</Path>
<Order>1</Order>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/temp/install.wim#Windows Vista HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Cheers

Livid

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...