Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Vista » microsoft.public.windows.vista.installation_setup
Thread: User creation during Sysprep

HTVi
TV Discussion Newsgroups

User creation during Sysprep
MaST MaX <mustafajambu[ at ]gmail.com> 10/19/2008 6:48:17 AM
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

Re: User creation during Sysprep
"Zaphod Beeblebrox" <Zaphod.Arisztid.Beeblebrox[ at ]gmail.com> 10/20/2008 1:56:45 PM

"MaST MaX" <mustafajambu[ at ]gmail.com> wrote in message
news:7cbe00d1-3063-47e0-aa18-5d0aefefad76[ at ]64g2000hsu.googlegroups.com...
[Quoted Text]
> 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!

--
Zaphod

No matter where you go, there you are!


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen