MSFN Forum: how can I enable & set the admin account as default without settin - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   avi952 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 08-March 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 16 September 2012 - 01:49 AM

^
title
thanks for anyone who'll help :hello:


#2 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 16 September 2012 - 09:30 AM

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

This post has been edited by MrJinje: 16 September 2012 - 09:31 AM


#3 User is offline   avi952 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 08-March 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 16 September 2012 - 02:32 PM

^
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 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 16 September 2012 - 08:16 PM

View Postavi952, on 16 September 2012 - 02:32 PM, said:

^
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 User is offline   TheWalrus 

  • N.W.O.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 911
  • Joined: 11-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 September 2012 - 01:01 AM

That command in specialize pass is not needed at all.

#6 User is offline   avi952 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 08-March 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 17 September 2012 - 01:23 PM

View PostMrJinje, on 16 September 2012 - 09:30 AM, said:

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 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 17 September 2012 - 11:57 PM

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 User is offline   avi952 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 08-March 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 September 2012 - 04:53 AM

^
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 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 18 September 2012 - 05:37 AM

Not a problem.

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

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

This post has been edited by MrJinje: 18 September 2012 - 05:40 AM


#10 User is offline   avi952 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 08-March 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 September 2012 - 10:21 AM

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 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,443
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 September 2012 - 12:01 PM

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

This post has been edited by myselfidem: 18 September 2012 - 12:06 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy