Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


avi952

how can I enable & set the admin account as default without settin

11 posts in this topic

^

title

thanks for anyone who'll help :hello:

0

Share this post


Link to post
Share on other sites

Run this from your unattend.xml specialize pass.

        <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">
<Description>Enable Admin Account</Description>
<Order>1</Order>
<Path>net user administrator /active:yes</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>

Run this from your oobesystem pass

            <UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>EDIT</Value>
<PlainText>true</PlainText>
</Password>
<Description>Default Administrator Account</Description>
<DisplayName>Administrator</DisplayName>
<Group>Administrators</Group>
<Name>Administrator</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>

If you need more details, check out the "Ask your seven XML here" sticky in the Windows 7 unattended forum

Edited by MrJinje
0

Share this post


Link to post
Share on other sites

^

will this skip the OOBE as well? if not, how can i? I mean I don't plan on setting any users but the admin (I'm aware of its restrictions, such as no apps etc.)

0

Share this post


Link to post
Share on other sites

^

will this skip the OOBE as well? if not, how can i? I mean I don't plan on setting any users but the admin (I'm aware of its restrictions, such as no apps etc.)

Just get the sample xml in post #432. That is what I am using, it has both x86 and x64 blank unattended.xml files that automate everything except for choosing your partition and OS version.

0

Share this post


Link to post
Share on other sites

That command in specialize pass is not needed at all.

0

Share this post


Link to post
Share on other sites

Run this from your unattend.xml specialize pass.

        <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">
<Description>Enable Admin Account</Description>
<Order>1</Order>
<Path>net user administrator /active:yes</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>

Run this from your oobesystem pass

            <UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>EDIT</Value>
<PlainText>true</PlainText>
</Password>
<Description>Default Administrator Account</Description>
<DisplayName>Administrator</DisplayName>
<Group>Administrators</Group>
<Name>Administrator</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>

If you need more details, check out the "Ask your seven XML here" sticky in the Windows 7 unattended forum

Thanks, I tried it as autounattend.xml and it worked perfectly :thumbup , now help with one more thing, not related to the title but to the forum - how can i deploy/slipstream a reg file?

0

Share this post


Link to post
Share on other sites

Use setupcomplete.cmd and put the reg file in the same folder. It runs under local system privilege right before the first logon occurs, so changes you make using regedit will apply before a user profile is created.

regedit /s %~dp0Set-ExecutionPolicy.reg

Also there is a setting to disable first logon animation, gets you to the desktop a minute faster.

    <settings pass="specialize">
<component name="Microsoft-Windows-Deployment" 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">
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v EnableFirstLogonAnimation /d 0 /t REG_DWORD /f</Path>
</RunSynchronousCommand>
</RunSynchronous>
</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">
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v EnableFirstLogonAnimation /d 0 /t REG_DWORD /f</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>

0

Share this post


Link to post
Share on other sites

^

could you please give some more info about setupcomplete.cmd and where does it appear? (sorry about my ignorance until now i relied too much on unattended programs)

0

Share this post


Link to post
Share on other sites

Not a problem.

Goes in your $OEM$ folder on your DVD or USB.

Sources\$OEM$\$$\Setup\Scripts\setupcomplete.cmd

Edited by MrJinje
0

Share this post


Link to post
Share on other sites

i know but the problem is that i don't have a $OEM$ folder at all, how do i create it? regularily or by windows setup like in XP?

0

Share this post


Link to post
Share on other sites

Create yourself manually inside your distribution folder | inside: .\sources

.\sources\$OEM$\$$\Setup\scripts\SetupComplete.cmd

You must create all these files yourself:

$OEM$

$$

Setup

scripts

SetupComplete.cmd

Edited by myselfidem
0

Share this post


Link to post
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.