Hello all,
I have just started learning more about DSC and started to read Don’s book ‘The DSC book’
early on in the book it says if you want to install AD for example you would use DSC cope like
WindowsFeature AD {
Name = “ADDS”
Ensure = “Present”
}
The thing I do not understand is although names like AD and ADDS are obvious to me (referring to Active Directory), how does the computer know you want to install AD for the following reasons
- why are the handles (names) used to refer to AD different in the above example e.g. AD and ADDS and which of these does Windows use internally to identify the fact you want to install AD, for example would the following work
WindowsFeature ADDS {
Name = “ADDS”
Ensure = “Present”
}
or
WindowsFeature AD {
Name = “AD”
Ensure = “Present”
}
As having two names to refer to the same thing just add unnecessary confusion (e.g. which to use there as above)
Also if you look at Get-WindowsFeature on a DC is lists AD as follows
Display Name Name Install State
Active Directory Domain Services AD-Domain-Services Installed
above the ‘name’ is AD-Domain-Services not AD or ADDS and also the display name is ‘Active Directory Domain Services’ again not AD or ADDS
So this is all a bit confusing, the only place the words ADDS show up on the DC in is the Server Manager GUI under ‘roles and server groups’ but with a space in the name e.g. AD DS
So we have at least 5 different names to refer to the same thing AD, ADDS, AD DS, AD-Domain-Services and Active Directory Domain Services
So how are you supposed to know which name to use in your DDC code ? and can I use the same name in the DSC code as above e.g.
WindowsFeature ADDS {
Name = “ADDS”
Ensure = “Present”
}
I realise AD has several components DS, CS, FD is that why the feature name is AD and the Name is ADDS so if I wanted to install AD CS I would use the following ?
WindowsFeature AD {
Name = “ADCS”
Ensure = “Present”
}
The bottom line for me is how can I (or anyone else) work out the correct text for my DCS code as above when cmdlets like Get-WindowsFearture to not show AD or ADDS
Thanks all
Ed