MSFN Forum: Autologon in Autounattend.xml - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Autologon in Autounattend.xml Could not get it working

#1 User is offline   blue4603 

  • 7Customizer Developer
  • Group: Developers
  • Posts: 276
  • Joined: 10-October 09
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 October 2009 - 02:28 PM

Hi

I have been trying to get windows 7 to auto logon with the administrator account after finishing the installation but it is still not working.

here is my autounattend.xml file

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" 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">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<UILanguage>en-US</UILanguage>
<UserLocale>ar-SA</UserLocale>
<InputLocale>0401:00000401</InputLocale>
</component>
<component name="Microsoft-Windows-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">
<UserData>
<ProductKey>
<Key>D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
</settings>
<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">
<AutoLogon>
<Enabled>true</Enabled>
<Password>
<Value />
</Password>
<LogonCount>9999999</LogonCount>
<Username>Administrator</Username>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
</OOBE>
</component>
</settings>
<settings pass="specialize">
<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">
<ComputerName>pcname</ComputerName>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:E:/sources/install.wim#Windows 7 Ultimate" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Regards


#2 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,604
  • Joined: 14-November 03

  Posted 30 October 2009 - 03:35 PM

See the relevant section of my xml auto logon, admin group.
BTW don't post your product key...

Quote

</component>
<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">
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>99</LogonCount>
<Username>****</Username>
<Password>
<PlainText>false</PlainText>
<Value>dAB5AHMAbwBuAFAAYQBzAHMAdwBvAHIAZAA=</Value>
</Password>
</AutoLogon>
<RegisteredOrganization>****</RegisteredOrganization>
<RegisteredOwner>****</RegisteredOwner>
<TimeZone>AUS Eastern Standard Time</TimeZone>
<StartPanelOff>false</StartPanelOff>
<ComputerName>****</ComputerName>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
</component>
<component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">
<SkipAutoActivation>false</SkipAutoActivation>
</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">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd /c &quot;FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i:\ -m&quot;</Path>
<Description>Path</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>reg add &quot;HKLM\Software\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork&quot; /v Category /t REG_DWORD /d 00000001 /f</Path>
<Description>Network Setup Tweak</Description>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<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">
<TimeZone>AUS Eastern Standard Time</TimeZone>
<VisualEffects>
<FontSmoothing>ClearType</FontSmoothing>
</VisualEffects>
<RegisteredOwner>****</RegisteredOwner>
<RegisteredOrganization>****</RegisteredOrganization>
<StartPanelOff>false</StartPanelOff>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipUserOOBE>true</SkipUserOOBE>
<SkipMachineOOBE>true</SkipMachineOOBE>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<DisplayName>****</DisplayName>
<Name>****</Name>
<Group>Administrators</Group>
<Password>
<PlainText>false</PlainText>
<Value>dAB5AHMAbwBuAFAAYQBzAHMAdwBvAHIAZAA=</Value>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
</Display>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<ShowWindowsLive>true</ShowWindowsLive>
</component>
<component name="Microsoft-Windows-Sidebar" 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">
<SidebarOnByDefault>false</SidebarOnByDefault>
<Gadget1>%PROGRAMFILES%\windows sidebar\gadgets\SlideShow.gadget,true</Gadget1>
<Gadget3>%PROGRAMFILES%\windows sidebar\gadgets\RSS.Gadget,false</Gadget3>
<Gadget2>%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true</Gadget2>
</component>
</settings>
<settings pass="auditSystem">
<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">
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<TimeZone>AUS Eastern Standard Time</TimeZone>
<StartPanelOff>false</StartPanelOff>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
</component>
</settings>
<settings pass="offlineServicing">
<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">
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Running FirstLog.cmd</Description>
<CommandLine>cmd /C start /wait %systemdrive%\Install\FirstLog.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
<OEMInformation>
<Logo>c:\windows\System32\oemlogo.bmp</Logo>
<Manufacturer>Seven UA</Manufacturer>
<Model>001</Model>
<SupportHours>All</SupportHours>
<SupportPhone>1000</SupportPhone>
</OEMInformation>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<StartPanelOff>false</StartPanelOff>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/se7en_ua/uadvd/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Hope that helps.

#3 User is offline   blue4603 

  • 7Customizer Developer
  • Group: Developers
  • Posts: 276
  • Joined: 10-October 09
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 October 2009 - 03:51 PM

Quote

See the relevant section of my xml auto logon, admin group.
BTW don't post your product key...


OK. Thanks for the help

by the way that is not my product key. That is the default key installed if you do not provide a key to the installation process.

I will test it and give you my feedback

Regards

#4 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,604
  • Joined: 14-November 03

Posted 30 October 2009 - 06:39 PM

No worries, the Autologon sections are identical to the Vista UA values which are covered in depth on this board.

#5 User is offline   blue4603 

  • 7Customizer Developer
  • Group: Developers
  • Posts: 276
  • Joined: 10-October 09
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 October 2009 - 11:27 AM

hi,

It worked finally. Thanks man.

Now I have one slight problem. how about if I want it to auto logon to the built in administrator account?

Regards

#6 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,604
  • Joined: 14-November 03

Posted 31 October 2009 - 01:07 PM

Not sure if it can be done, would like this myself. Same as XP.

#7 User is offline   MrJinje 

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

  Posted 05 November 2009 - 05:20 PM

View Postblue4603, on Oct 31 2009, 11:27 AM, said:

how about if I want it to auto logon to the built in administrator account?
I was thinking, why not use SetupComplete.cmd to enable the Administrator account and force Auto Login. I think it can be done, M$ only disabled the account, is very simple to re-enable. Maybe I would try something like this.

SetupComplete.cmd
Net user administrator /active:yes
Regedit /s %~dp0AUTOLOGIN.REG
NET USER MrJinje /DELETE
AUTOLOGIN.REG
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Administrator"
"DefaultPassword"=""
"AutoAdminLogon"="1"
"ForceAutoLogon"="1"


Just add an AutoUnattend.xml and change the Net User Delete Script with whatever account name your use.

In theory, this should avoid ever having to login with that account, thus preventing a folder from being created in the users directory.

This post has been edited by MrJinje: 06 November 2009 - 01:15 PM


#8 User is offline   Rudi1 

  • Member
  • PipPip
  • Group: Members
  • Posts: 130
  • Joined: 13-April 04

Posted 06 November 2009 - 10:17 AM

I am try your instruction and I must say that works!I am look for instruction like this one for a long time!
I must say that you must still write your name,computer name and then when windows boot it boot at administrator account.Then I am go to the control panel-user accounts and there is also my typing user account.
So,we now we only need another script or something to delete my user account. :)

#9 User is offline   Rudi1 

  • Member
  • PipPip
  • Group: Members
  • Posts: 130
  • Joined: 13-April 04

Posted 06 November 2009 - 11:03 AM

Can you maybe add some small info where I must put the AutoUnattend.xml ?
So far I am not try AutoUnattend.xml :rolleyes:

o.k,I am find where ;)

This post has been edited by Rudi1: 06 November 2009 - 11:48 AM


#10 User is offline   Rudi1 

  • Member
  • PipPip
  • Group: Members
  • Posts: 130
  • Joined: 13-April 04

Posted 06 November 2009 - 11:52 AM

Hmm,maybe I do something wrong with AutoUnattend.xml because I still must type user info and the another user is still in user accounts.

Can you give us some small info how we can do this setup correct?

This post has been edited by Rudi1: 06 November 2009 - 12:34 PM


#11 User is offline   MrJinje 

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

Posted 06 November 2009 - 01:00 PM

Try this one, is basically my working AutoUnattend.xml. It's pretty lackluster, but the only prompt you should get is Which partition to format. It is set to install Ultimate, but you can change it if you like.

Search your WAIK folder for Unattend.chm, I use the OPK, so I not sure the exact link, but that file has all the syntax for AutoUnattend.xml

Attached File(s)


This post has been edited by MrJinje: 06 November 2009 - 01:03 PM


#12 User is offline   biatche 

  • Member
  • PipPip
  • Group: Members
  • Posts: 194
  • Joined: 23-November 05

Posted 07 November 2009 - 02:52 AM

May I ask if you people use autounattend.xml directly for unattended setups, meaning doing so without the use of MDT or WAIK or whatever 3rd party means?

#13 User is offline   Rudi1 

  • Member
  • PipPip
  • Group: Members
  • Posts: 130
  • Joined: 13-April 04

Posted 07 November 2009 - 04:29 AM

Big hug for MrJinje because this guide really works!
I am try with this commands in SetupComplete.cmd

Quote

SetupComplete.cmd

Net user administrator /active:yes
Regedit /s %~dp0AUTOLOGIN.REG
NET USER MrJinje /DELETE


working like a sharm.The only one user account in control panel is administrator and guest. :thumbup

#14 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,604
  • Joined: 14-November 03

  Posted 07 November 2009 - 01:23 PM

View Postbiatche, on Nov 7 2009, 07:52 PM, said:

May I ask if you people use autounattend.xml directly for unattended setups, meaning doing so without the use of MDT or WAIK or whatever 3rd party means?


I sometimes use my sound xml without going through the wsim found in waik. Should I use someone's else xml or making a new one I will then use the wsim.

#15 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,604
  • Joined: 14-November 03

  Posted 07 November 2009 - 01:26 PM

View PostRudi1, on Nov 7 2009, 09:29 PM, said:

Big hug for MrJinje because this guide really works!
I am try with this commands in SetupComplete.cmd

Quote

SetupComplete.cmd

Net user administrator /active:yes
Regedit /s %~dp0AUTOLOGIN.REG
NET USER MrJinje /DELETE


working like a sharm.The only one user account in control panel is administrator and guest. :thumbup


That's good news, you may need to ensure your machine is secure as poss to prevent an attack though.

#16 User is offline   Rudi1 

  • Member
  • PipPip
  • Group: Members
  • Posts: 130
  • Joined: 13-April 04

Posted 07 November 2009 - 05:21 PM

Not really,so far I am use administrator account several years and no problems.
I hate UAC popup windows and all other UAC stuff! :rolleyes:

#17 User is offline   biatche 

  • Member
  • PipPip
  • Group: Members
  • Posts: 194
  • Joined: 23-November 05

Posted 07 November 2009 - 09:46 PM

Oh and that's something else I've been meaning to ask since I skipped Vista. I have seen this UAC thing mentioned many times, and came to the understanding that most people don't use an administrator account, in XP, i never bother creating normal user accounts.. so what's the verdict in vista/win7. Is it necessary at all? Or is it for those folks who don't know what they are doing?

#18 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,604
  • Joined: 14-November 03

Posted 08 November 2009 - 01:11 AM

Generally speaking the administrator account in Vista & W7 is not accessible by default. In Vista & W7 you must create a user, they can have administrative privileges. Their are ways to enable the admin account as recently posted on this board.

#19 User is offline   MrJinje 

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

  Posted 09 November 2009 - 05:09 AM

View PostMAVERICKS CHOICE, on Nov 8 2009, 01:11 AM, said:

Generally speaking the administrator account in Vista & W7 is not accessible by default. In Vista & W7 you must create a user, they can have administrative privileges. Their are ways to enable the admin account as recently posted on this board.
While M$ claims you are safer having it disabled, there are others who will claim you are no safer than if you had simply renamed your Administrator account. (via control userpasswords2) Both situations will prevent malicious software from hacking an account called "Administrator", now malicious programmers not only need to crack the password, but also need to guess the account name. All this is assuming said malicious software actually attacks via user/password, instead of buffer exploit like a normal piece of malware.

If said malware can access you non-administrator user account (which in M$ infinite wisdom has local administrator privileges), your false sense of security is out the window (pun not intended), as hacking any account with Local Admin rights will allow malicious software full access. :realmad:

I rank this up there with "Editing the Registry can cause catastrophic failure", sure technically that is true, but has it ever stopped anyone ?

This post has been edited by MrJinje: 09 November 2009 - 05:10 AM


#20 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,482
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 November 2009 - 07:19 AM

I personally don't use Administrator but I do turn LUA off and I think It's just as powerful as that Admin account who couldn't delete folder's i couldn't delete. I develop and I need to have an account which be on same level as 99.9% out there. Gives me better perspective and my Admin account does have a Pass I set with my Xml

I'd like to know just what is the difference between Administrator and a local Admin

This post has been edited by maxXPsoft: 09 November 2009 - 06:51 PM


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

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



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