Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

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


  • Please log in to reply
10 replies to this topic

#1
avi952

avi952

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x86
  • Country: Country Flag
^
title
thanks for anyone who'll help :hello:


How to remove advertisement from MSFN

#2
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
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, 16 September 2012 - 09:31 AM.


#3
avi952

avi952

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x86
  • Country: Country Flag
^
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.)

#4
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag

^
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.

#5
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

That command in specialize pass is not needed at all.

#6
avi952

avi952

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x86
  • Country: Country Flag

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?

#7
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
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>


#8
avi952

avi952

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x86
  • Country: Country Flag
^
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)

#9
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
Not a problem.

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

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

Edited by MrJinje, 18 September 2012 - 05:40 AM.


#10
avi952

avi952

    Newbie

  • Member
  • 10 posts
  • OS:Windows 7 x86
  • Country: Country Flag
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?

#11
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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, 18 September 2012 - 12:06 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN