+ Post New Thread
Page 2 of 6 FirstFirst 123456 LastLast
Results 16 to 30 of 81
Windows 7 Thread, Auto join domain using sysprep - Windows 7 in Technical; Fixed for you....
  1. #16
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106
    Fixed for you.

  2. Thanks to ChrisH from:

    JaTayler (28th March 2011)

  3. #17
    JaTayler's Avatar
    Join Date
    Dec 2010
    Location
    UK, London
    Posts
    35
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    8
    Code:
    Brilliant, Thanks :)

  4. #18
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,958
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46
    Thanks for posting that!

    I have a script that pulls the asset tag from the machine which is what we use for PC naming.

    Dumb question : how does that script get deleted after the final boot?

  5. #19

    Join Date
    Apr 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    When the script runs, it does not join the Domain. I entered our information here with what JaTyler said change what was in RED.

  6. #20

    Join Date
    May 2009
    Location
    NJ
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by ronnoco View Post
    Hi all,

    We are quite new to using Windows and Sysprep is a different kettle of fish to the XP version I am use to.

    I have followed Brian Lee Jacksons Sysprep guide and all works well apart from I am not sure how to get a machine to automatically join the domain?

    Is there a setting in the unattend.xml file or do a need an additional xml file or a vbs script?

    We are using FOG to capture and deploy the image.

    Thanks very much in advance for any help/advice.

    Gary
    I don't know what version of FOG your up to but I've been using version 0.29. It has a client you install in the image before your run sysprep. It handles the domain join, computer naming, and a host of other things. I believe all you need to do is put your active directory information into the FOG server (you need to encrypt your AD password first. instructions) and install the agent in the image before you sysprep it (get the agent from <fog_ip/hostname>/fog/client).

    Justin

  7. #21

    Join Date
    Apr 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    join domain failed error code 0

    Can you possibly provide the exact syntax of the entries we need to change? In other words is the user in the domain\user format or just the user name, is the domain the netbios name or domain.local and does the computer account need to be created in AD before this script runs?

  8. #22

    Join Date
    Nov 2009
    Posts
    43
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I've experienced the same occurrence as windstar above, that the rename of the PC is successful, but when it tries to join the domain, it gives you the same join domain failed, error code 0. I also see even following the instructions on placing the files in the c:\windows\setup\scripts folder that they don't automatically run upon completion of the unattended setup. I can run the scripts physically by browsing to them, and it won't join the domain.

  9. #23

    Join Date
    Feb 2007
    Location
    Hereford
    Posts
    213
    Thank Post
    5
    Thanked 3 Times in 3 Posts
    Rep Power
    16
    i used mysysprep version 2

    it pops up asking for computer name and then asks you what domain you want. i have it auto populated with the 1 domain i have , so we just have to click ok.

  10. Thanks to goodhead from:

    dhorowitz (10th May 2011)

  11. #24

    Join Date
    Nov 2009
    Posts
    43
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Alright, we're somewhat there. This particular utility will join the PC automatically to the domain, but I can't get it to prompt us for a computer name. I've left the <ComputerName></ComputerName> blank which is supposed to prompt, also I've deleted the line completely according to another site that should prompt it as well. Any more suggestions?

  12. #25

    Join Date
    Oct 2005
    Location
    Bangkok
    Posts
    235
    Thank Post
    15
    Thanked 32 Times in 23 Posts
    Rep Power
    23
    not sure if its been posted before but this site here enables you to create the xml file that joins a domain without having to jumo through hoops the MS way.


    Windows 7 unattend.xml Generator

  13. #26

    Join Date
    May 2011
    Location
    Eastpointe
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Do You have to change anything in your unattend xml file

  14. #27

    Join Date
    Sep 2009
    Posts
    3
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks to JaTaylor for the vbs script useful addition to the arsenal.

  15. #28

    Join Date
    Nov 2009
    Posts
    43
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I tried to create the XML file using Ben O'Sullivan's XML generator, and that crashed my image with error "Windows could not parse or process unattend answer file c:\windows\panther\unattend.xml for pass specialize. The answer file is invalid. My IT director shot down any thought of using a third party tool such as mysysprep since it is not being authorized by Microsoft. Any suggestions?

  16. #29

    Join Date
    Jun 2010
    Location
    England
    Posts
    735
    Thank Post
    89
    Thanked 52 Times in 46 Posts
    Rep Power
    35
    How can i delete the autojoindomain.vbs after its ran?
    I dont want it left on the computer since it contains password

  17. #30

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Quote Originally Posted by ihaveaproblem View Post
    How can i delete the autojoindomain.vbs after its ran?
    I dont want it left on the computer since it contains password
    You should be able to just add:

    Code:
    Dim objFSO
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.DeleteFile WScript.ScriptFullName
    Set objFSO = Nothing
    at the end. So it'll delete itself, might want to test it, but should work.

    Steve

SHARE:
+ Post New Thread
Page 2 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 17th February 2011, 02:57 PM
  2. Windows 7 PC won't join server 2008 Domain
    By speckytecky in forum Windows 7
    Replies: 1
    Last Post: 30th September 2010, 12:22 PM
  3. XP SP3 Sysprep Domain Join 'weirdness'
    By _techie_ in forum Windows
    Replies: 2
    Last Post: 20th July 2010, 01:02 PM
  4. Script to join new domain
    By THERADIOTUBBY in forum Windows Server 2008 R2
    Replies: 4
    Last Post: 2nd July 2010, 08:32 AM
  5. No Domain Join during Setup
    By Nick_Parker in forum Windows 7
    Replies: 19
    Last Post: 24th August 2009, 01:13 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
  •