Windows unattended domain join


















All forum topics Previous Topic Next Topic. Solution 1. Accepted Solutions. Community Accepted Solution. Reply 1. Post Reply. Top Contributor.

Dell Support Resources. Latest Solutions. Can't find what you're looking for? Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search.

My company would like to use a Syprep image and an autounattend. We do not want to use SCCM. I will push us to use WDS in the future but we still want to be able to do this through just putting a USB into the machine.

I have been caught at one hurdle for a while now, I cannot get the machine to join the domain automatically after first logon. I am using some powershell scripts to do this. So far I'm simply testing a script to re-name the machine. This works if I run it myself on a VM, but it will not work if I run it from the autounattend. Unattend will run a script on logon as admin which will open a batch file that runs a powershell script as admin and bypasses the script running policy.

That script will then rename the PC. Except, it doesn't. Online I have seen that you cannot do the domain join automatically through WDS anyway since Microsoft has a bug that will not let you join through any pass other than OOBE. Which means either way I have to get this script to work for an automatic domain join. When the new PC boots up for the first time, other scripts I have created will run, while this one never seems to achieve anything. It seems the batch file executes but its whether the script works or not.

I don't see any errors in event log. This script will be placed into the WIM file of the image we will deploy. Once the admin account performs an initial autologon this script will execute. The script uses a domain admins credentials to find the list file it will access.

Once credentials are entered, the script will check for the appropriate PC name. If it is a new build it will simply look at the top PC number in the list and rename itself to that number while adding the next number to the top of the list.

The script will then remove the ' -r', rename the PC and will not add to the list. If there are multiple marked numbers then it will target the lowest number. The script will restart the PC and delete itself after execution. I've updated some more recent logs. These have the domain join errors. I can't make sense of them, but they are there. Office Office Exchange Server. Not an IT pro? Windows Client. Sign in. United States English.

Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Windows 7 Installation, Setup, and Deployment. Sign in to vote.



0コメント

  • 1000 / 1000