User creation during Sysprep

M

MaST MaX

Dear All

We want to create image of Window Vista enterprise edition. we are
facing some problem in sysprep.

We want to remove new user creation during sysprep runs Or remove
newly created login ID after sysprep finish.

Note: we create answer file for auto logon to administrator but
still its asking to create new user with administrator privileges.

Thank You
 
Z

Zaphod Beeblebrox

MaST MaX said:
Dear All

We want to create image of Window Vista enterprise edition. we are
facing some problem in sysprep.

We want to remove new user creation during sysprep runs Or remove
newly created login ID after sysprep finish.

Note: we create answer file for auto logon to administrator but
still its asking to create new user with administrator privileges.

Unlike XP, you have to create a new user in Vista. As I recall, what we
initially did was go ahead and create one using the sysprep answer file
so we don't get prompted during deployment, like this:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<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">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>MyPassword</Value>
<PlainText>true</PlainText>
</Password>
<DisplayName>MyUserName</DisplayName>
<Name>MyUserName</Name>
<Group>Users</Group>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>

Then later, delete the user with a RunSynchronousCommand, like this:

<settings pass="specialize">
<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 MyUserName /DELETE </Path>
<Order>1</Order>
<Description>Delete MyUserName Account</Description>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>

We do something different now (we always need a user with a particular
name and password, so we just create it in sysprep). I can't find the
actual sysprep files we used, so I hope these are correct. If not,
hopefully someone else can help. You might also try at Microsoft's
Vista Deployment and Imaging Technet Forum
(http://forums.microsoft.com/TechNet/ShowForum.aspx?ForumID=721&SiteID=17).
They tend to be more focused on MDT, but there are some sysprep folks in
there as well.

Good luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top