Build/Add a Domain Controller using OSD Task Sequence

Hi All,

I'd like to know how to build a domain controller via the OSD Task Sequence.

I've currently got my OSD configured and working great. IP's are assigned correctly to servers via a webservice I've written.

The issue I have is configuring a additional domain controller. I have a script, which runs perfectly in installing the required components. I have a nother script, which executes the domain controller build process, however this script doesn't run. I'm assuming its to do with permissions as it doesn't have the necessary permissions to configure an additional domain controller.

Server and Wokrstation builds are working fine, just having an issue running the script, which configures an additional domain controller. No errors in logs.

Running: SCCM 2012 R2 with CU5

March 22nd, 2015 9:22pm

WHile there are lots of ways to do this, for me my new favorite would be to use DSC/powershell.  While that's certainly not your question ... I think it's worth a look as if you're to the point of trying to automate DC deployment I think you'll find good value in using a DSC pull server and mof files (it will let you generalize your server deployment task sequence and keep better role baselines).

The way your question is phrased I'm guessing there's a permissions error as you need to have domain admin rights to promote a DC to the domain and your NA account won't have that kind of access ... at least I hope not.  So you probably have to set that in your sequence to use "run-as" and give it a proper account with proper access.

If you've tried that ... you're next best bet is to write some logging logic into your "2nd script" so you have a better idea of where it's failing.  Honestly there's nothing special about what a task sequence is doing ... it's just dogmatically running the script in the system context.  It's on you to write said script well enough to give you meaningful feedback.

Free Windows Admin Tool Kit Click here and download it now
March 22nd, 2015 10:33pm

Problem has been fixed. It was related to permissions. My script now has the correct permissions bulit and and domain controllers are now successfully provisioned.
March 23rd, 2015 11:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics