-
Notifications
You must be signed in to change notification settings - Fork 162
Description
I've tried to add a DC to a build. I haven't had any luck. I always hit some form of errors. So I'm trying to start from scratch with a fresh clone of the repository and doing a build just to make sure everything goes well.
- I copied the node Dev\DSCFile01.yml and created Dev\DSCDC01.yml
- I changed Role from FileServer to DomainController
- I updated the IP Address
- I coppied AddsDomain, AddsDomainController from CommonTasks to the DscConfig.Demo DSCResources folder (I had previously made changed to replace DscConfig.demo with common tasks, but this time I want to start simple and change as little as possible till I get the hang of things)
- I updated PSGetModuleInfo.xml in DscConfig.demo to include AddsDomain, AddsDomainController just in case.
When I run the build.ps1 it gets to COMPILEROOTCONFIGURATION and starts preloading available resources
Preloading available resources
---------------------------------------------------------------------------
DSCFile02 : DSCFile02 : MOF__ NA
DSCFile02 : FileServer ::> FileSystemObjects ...................................................OK
DSCFile02 : FileServer ::> RegistryValues ......................................................OK
DSCFile02 : FileServer ::> SecurityBase ........................................................OK
DSCFile02 : FileServer ::> WindowsFeatures .....................................................OK
DSCFile02 : FileServer ::> ComputerSettings ....................................................OK
DSCFile02 : FileServer ::> NetworkIpConfiguration ..............................................OK
DSCFile02 : FileServer ::> WindowsEventLogs ....................................................OK
DSCFile02 : FileServer ::> DscTagging ..........................................................OK
---------------------------------------------------------------------------
DSCDC01 : DSCDC01 : MOF__ NA
DSCDC01 : DomainController ::> FileSystemObjects ...............................................OK
DSCDC01 : DomainController ::> AddsDomain ......................................................OK
cmdlet AddsDomainController at command pipeline position 1
Supply values for the following parameters:
DomainName: LAB
Credential
SafeModeAdministratorPassword
DSCDC01 : DomainController ::> AddsDomainController ............................................OK
DSCDC01 : DomainController ::> SecurityBase ....................................................OK
DSCDC01 : DomainController ::> WindowsFeatures .................................................OK
DSCDC01 : DomainController ::> ComputerSettings ................................................OK
DSCDC01 : DomainController ::> NetworkIpConfiguration ..........................................OK
DSCDC01 : DomainController ::> WindowsEventLogs ................................................OK
DSCDC01 : DomainController ::> DscTagging ......................................................OKWhat I find interesting is it's prompting me for domain information instead of pulling it from datum. The other thing I find interesting it fails and starts erroring out there saying SafeModeAdministratorPassword = $Parameters['SafeModeAdministratorPassword'] ' required by '[WindowsFeature]ADDS::[AddsDomainController]AddsDomainController' does not exist. Please ensure that the required resource exists and the name is properly formed. At C:\windows\system32\windowspowershell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:1049 char:17
Does anyone have a sample build that works with a basic setup of a domain controller ?