+ Post New Thread
Results 1 to 11 of 11
O/S Deployment Thread, how to stop autologin in Technical; My sysprep file is working great. Does everything I need it to do, but it logs in automatically to a ...
  1. #1

    Join Date
    May 2012
    Posts
    279
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    how to stop autologin

    My sysprep file is working great. Does everything I need it to do, but it logs in automatically to a local account (HelpDesk), and not to the login screen for the domain. Ive removed the autologin section from the xml and it still does it. When i reboot it logs directly into the account.

    If i activate net user administrator, and remove the local account maybe that will work?

    I still want a way to locally log in as an admin.

    Here is the xml:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" 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">
                <SkipRearm>8</SkipRearm>
            </component>
        </settings>
        <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">
                        <Order>1</Order>
                        <Path>net user administrator /active:no</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-Security-SPP-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>true</SkipAutoActivation>
            </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">
                <ComputerName>%Computer Name%</ComputerName>
                <CopyProfile>true</CopyProfile>
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>Eastern Standard Time</TimeZone>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-International-Core" 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">
                <InputLocale>en-us</InputLocale>
                <SystemLocale>en-us</SystemLocale>
                <UILanguage>en-us</UILanguage>
                <UserLocale>en-us</UserLocale>
            </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">
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipk xxxx-xxxxx-xxxxx-xxxxx-xxxxx</CommandLine>
                        <Order>1</Order>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <CommandLine>c:\windows\system32\cscript C:\&quot;Program Files (x86)\Microsoft Office\Office14\OSPP.VBS&quot;</CommandLine>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>cwBhAG0AbQBpAGMAaAAyADAAMQAxAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>cwBhAG0AbQBpAGMAaAAyADAAMQAxAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Local Administrator</Description>
                            <DisplayName>HelpDesk</DisplayName>
                            <Group>Administrators</Group>
                            <Name>HelpDesk</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <RegisteredOrganization>Rollins College</RegisteredOrganization>
                <RegisteredOwner>CSS Lab</RegisteredOwner>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:e:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

  2. #2
    eddyc's Avatar
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    432
    Thank Post
    98
    Thanked 47 Times in 43 Posts
    Rep Power
    21
    My script is pretty much identical to that and does not log in locally automatically...
    We've got two local accounts on our image, which we enable as you've done.
    Have you updated the XML on the WDS server where it says about the unattend.xml?

  3. #3

    Join Date
    May 2012
    Posts
    279
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I have the lab machine that this unattend.xml file is for in audit mode, and i run the command mysysprep /generalize /oobe /shutdown /unattend:unattend.xml

    then i captrue the image using imagex to my server, and then deploy the image using imagex on the lab machine. It runs through the mysysprep and then auto logs into the help desk account...

  4. #4

    Join Date
    May 2012
    Posts
    279
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I have a script to auto join the domain ROllins.edu when the machine 1st logs in. Im wondering if there is a local setting somewhere that is forcing the machine to login as Helpdesk on the domain?

  5. #5

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    I have this section in my unattend from MDT but should be the saem format for just WDS:

    Code:
                <AutoLogon>
                    <Enabled>true</Enabled>
                    <Username>Admin-User</Username>
                    <Domain>YOUDOMAIN</Domain>
                    <Password>
                        <Value>encrypted-password</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <LogonCount>999</LogonCount>
                </AutoLogon>
    Change the value in the LOGONCOUNT tags should tell it how many times to login automatically...

  6. #6

    Join Date
    May 2012
    Posts
    279
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    you mean setting 0 would not allow any autologin? I have no use for any auto login

  7. #7

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    Either that or by removing it completely

    Are you using the WAIK? It's much easier to edit this and see the options available to you...

  8. #8

    Join Date
    May 2012
    Posts
    279
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    im using WIndows System Image Manger in the WAIK tool kit. The original XML didn't have any autologin.

  9. #9

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    It's def in the WAIK (Under x86_Microsoft-Windows-Shell-Setup__neutral_31bf3856ad364e35_nonSxS and applied to the oobeSystem Pass)
    From the help file, LogonCount is required if AutoLogon is specified, so either don't use the whole AutoLogon section or try setting it to 0..)

  10. #10

    Join Date
    May 2012
    Posts
    279
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    you can't set it to 0. I am trying now with 1, and enabled: false.

  11. #11

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    IIRC Windows will autologin if there is only 1 account on the system.. try adding another local account (eg setup) and see if that stops it

SHARE:
+ Post New Thread

Similar Threads

  1. how to stop students pulling out network cables before policy loads
    By ict_support in forum Network and Classroom Management
    Replies: 10
    Last Post: 22nd April 2010, 04:31 PM
  2. How to stop users adding new folders
    By Little-Miss in forum Learning Network Manager
    Replies: 3
    Last Post: 14th September 2009, 03:03 PM
  3. [Joke] HOW TO STOP SOMEONE CHOKING - AUSSIE STYLE
    By mattx in forum Jokes/Interweb Things
    Replies: 3
    Last Post: 11th June 2008, 10:34 AM
  4. GOOGLE EARTH - How to stop it installing
    By Paid_Peanuts in forum Windows
    Replies: 8
    Last Post: 10th September 2007, 11:07 AM
  5. how to stop hotmail...(and google chat)
    By beeswax in forum How do you do....it?
    Replies: 7
    Last Post: 18th September 2006, 09:51 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •