+ Post New Thread
Results 1 to 7 of 7
Windows 7 Thread, Nearly sorted out my sysprep but for one thing? Logs on as local user on reboot in Technical; I have been trying to set up my sysprep for quite some time for our windows 7 image. I have ...
  1. #1
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,550
    Thank Post
    518
    Thanked 56 Times in 50 Posts
    Rep Power
    30

    Nearly sorted out my sysprep but for one thing? Logs on as local user on reboot

    I have been trying to set up my sysprep for quite some time for our windows 7 image.
    I have managed to get the unattend.xml file to log on the machine without asking for a name or user.
    I then have fog kick in, rename it and join the domain.

    The problem is that after all this the computer still logs on as the local administrator.

    What am I doing wrong?

  2. #2
    camel's Avatar
    Join Date
    Nov 2009
    Location
    east midlands
    Posts
    110
    Thank Post
    30
    Thanked 38 Times in 19 Posts
    Rep Power
    16
    We had a similar problem for only a few machines on our domain but we deployed using WDS.

    I can't remember exactly the issue, but it had something to do with duplicate IP address. Yep, remember now; we had issues where there were static IPs on devices within the DHCP range but DHCP had no record and dished out the IPs anyway. Some old devices were setup a while back and no record of their IPS were recorded.

    Once the old devices were moved to the IP range outside our DHCP allocated range, the devices imaged fine with the prompt for domain login.

  3. #3

    Join Date
    Mar 2011
    Location
    Bournemouth
    Posts
    280
    Thank Post
    16
    Thanked 74 Times in 64 Posts
    Rep Power
    22
    You don't need sysprep to "log onto the machine" as you put it, it is simply that sysprep requires that you MUST create an admin account during sysprep so if you don't do it in the xml file it asks you manually.

    The correct way to get this working is to have sysprep create a temporary admin account and then delete it afterwards, rather than trying to use the normal admin one or anything.

    To achieve this you require the following as part of your unattended xml file (obviously you will probably already have the section for the Microsoft-Windows-Shell-Setup component in your oobe section so just merge in the UserAccounts part:

    Code:
        <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">
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>temppassword</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <DisplayName>TempAdmin</DisplayName>
                            <Group>Administrators</Group>
                            <Name>TempAdmin</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
            </component>
        </settings>
    Then, in your actual image add a file C:\Windows\Setup\Scripts\SetupComplete.cmd with the following command:

    Code:
    net user TempAdmin /delete
    You wont have any problems if you do this.
    Last edited by ChrisMiles; 1st March 2012 at 01:23 PM.

  4. Thanks to ChrisMiles from:

    reggiep (1st March 2012)

  5. #4
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,550
    Thank Post
    518
    Thanked 56 Times in 50 Posts
    Rep Power
    30
    Quote Originally Posted by ChrisMiles View Post

    Then, in your actual image add a file C:\Windows\Setup\Scripts\SetupComplete.cmd with the following command:

    Code:
    net user TempAdmin /delete
    You wont have any problems if you do this.
    Thaks Chris,
    i already had the local user being created but not deleted afterwards. However the command to delete the user afterwards was new to me.

  6. #5

    Join Date
    Jun 2010
    Location
    England
    Posts
    735
    Thank Post
    89
    Thanked 52 Times in 46 Posts
    Rep Power
    35
    In the sysprep file there is a section where you can list the number of times you want it to auto logon as well. I've forgot what the line is called though...

  7. Thanks to ihaveaproblem from:

    reggiep (2nd March 2012)

  8. #6

    Join Date
    Nov 2011
    Location
    Winchester
    Posts
    22
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    6
    What system are you using to deploy?

  9. #7
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,550
    Thank Post
    518
    Thanked 56 Times in 50 Posts
    Rep Power
    30
    Quote Originally Posted by kv102t View Post
    What system are you using to deploy?
    If you are asking me then FOG.

    Thought about using WDS but we have so many packages installed on our image and FOG has always worked well for us.

SHARE:
+ Post New Thread

Similar Threads

  1. [Video] Ulrika-ka-ka - NSFW for one swear near the end.
    By mattx in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 5th November 2011, 08:15 AM
  2. [Website] My gaming sorted out for the weekend...
    By mattx in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 4th July 2009, 08:10 AM
  3. login for one thing
    By alonebfg in forum Windows
    Replies: 6
    Last Post: 6th December 2006, 01:41 AM
  4. Linux SuperUser command, but for Windows
    By MrLudwig in forum Windows
    Replies: 25
    Last Post: 18th May 2006, 04:16 PM

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
  •