MSFN Forum: [W7] Domain join failed - MSFN Forum

Jump to content


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

[W7] Domain join failed

#1 User is offline   Stagiair 

  • Group: Members
  • Posts: 4
  • Joined: 19-September 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 October 2012 - 01:51 AM

Hello,

Hope someone can help me out.
I've been working for weeks on figuring out WDS, Sysprep, answerfile and all other terms.
I succeeded in my testenvironment and now i am deploying images on the companynetwork.
But i get stuck.. at the first computer where i want to install my image with his answerfile (unattend.xml).
Everything is going okay and works but when it finishes with installing and the moment for me is there to log in, it goes wrong.

When i try to log in on the domain it says "The trust relationship between this workstation and the primary domain failed.".
While the domain has been configured on the computer (on the loginscreen you see the domain like: DOMAIN: domain.local).
If i want to log in with the localaccount it says: "Account has been disabled" :S

Did everything as they say here: http://technet.micro...c730845(v=ws.10).aspx at the table under (Secure join) and even tried another computer, but the same problem.

What now?
I have tried everything, serious. The deadline is tomorrow.
Please help!


Unattend: http://pastebin.com/....php?i=xtpCHcXe

This post has been edited by Stagiair: 25 October 2012 - 01:53 AM



#2 User is offline   Stagiair 

  • Group: Members
  • Posts: 4
  • Joined: 19-September 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 October 2012 - 03:56 AM

I could do it with a script, searched an searched but there is not a single script that works to me.

This post has been edited by Stagiair: 25 October 2012 - 07:07 AM


#3 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 25 October 2012 - 09:04 AM

This XML file you posted puts the system into Audit Mode. You should be doing a domain join in OOBE instead.

Also I see you are adding the Administrator account, this account already exists.

#4 User is offline   WinOutreach4 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 22-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 October 2012 - 11:44 AM

The very last line in this TechNet article says that if you use sysprep /audit to boot to audit mode, the computer will be removed from the domain. The Specialize pass runs during first boot (that's where domain join happens), so you are joining the domain, but then leaving it again when audit mode starts. So Tripredacus is correct and you should remove this part from your unattend file.

Hope this helps,

David

Windows Outreach Team - IT Pro

#5 User is offline   Stagiair 

  • Group: Members
  • Posts: 4
  • Joined: 19-September 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 October 2012 - 02:33 AM

Thanks guys, worked out well!
But my logoncommands don't run! :(
These are the commands that should run:
 <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cscript //b c:\\windows\\system32\\slmgr.vbs /ipk serial-x-x-x</CommandLine>
                    <Order>1</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cscript //b c:\\windows\\system32\\slmgr.vbs /ipk serial-x-x-x</CommandLine>
                    <Order>2</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cscript //b c:\\windows\\system32\\slmgr.vbs /ipk serial-x-x-x</CommandLine>
                    <Order>3</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cscript //b c:\\windows\\system32\\slmgr.vbs /ato serial-x-x-x</CommandLine>
                    <Order>4</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cscript //b c:\\windows\\system32\\slmgr.vbs /dlv all</CommandLine>
                    <Order>5</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>

I have autologon enabled, so they should run when the account is logged in though?
Those are commands to activate Windows 7 and Office btw.
Under OobeSystem and under the component: Microsoft Windows Shell.
So it should work?

Thanks!

This post has been edited by Stagiair: 26 October 2012 - 02:36 AM


#6 User is offline   Stagiair 

  • Group: Members
  • Posts: 4
  • Joined: 19-September 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 October 2012 - 07:01 AM

Nevermind.
Everything works now except the computer problem.
You can't prompt for a computername and join the domain unattended.
There is something wrong with the order.

Only do the joindomain part and put the computername tags just this way:
<ComputerName>*<ComputerName>

You will get a random machinename and you can add to your logoncommands a script to rename your pc.
It's a bug we have to deal with!
Searched many days for this but this is the only solution.

#7 User is offline   WinOutreach4 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 22-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 October 2012 - 11:22 AM

Great! Glad to hear that you got it working. As for the computer name while joining the domain, have you looked into Prestaging the computers in Active Directory? WDS will pull the computer name from AD if you have the machine pre-staged.


David

Windows Outreach Team - IT Pro

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