ComputerManagementDsc icon indicating copy to clipboard operation
ComputerManagementDsc copied to clipboard

Add option to set description on AD object

Open ksaffarian opened this issue 5 years ago • 3 comments

Hi Is it possible to create a parameter or to re-use "Computer\Description" and replicate it the Computer Object in AD? The current "Description" fields set a local description and in dynamic environment, where you have 100s of random computer names (like AWS / Azure) it would be very beneficial to have a description on joined machines. Please advise of any solution. Regards

ksaffarian avatar Feb 07 '20 00:02 ksaffarian

I do not see this in the scope of the Computer resource. Setting the description in AD is a different task. But one can do this using the ADComputer resource. Is that an option?

raandree avatar Feb 07 '20 13:02 raandree

I very much would like that feature, but it's 1000% out of scope. That ought to be in OS code somewhere, the same way that the computer reports to AD what OS it's running when it joins the domain. I scripted it (bi-directional!) in a logon script in a past life and it ran regularly on 800 workstations. I loved it. But, yeah, not here.

gaelicWizard avatar May 23 '21 01:05 gaelicWizard

I'd agree that we shouldn't increase the scope of this resource beyond the join process itself. Configuring of AD objects should be the responsibility of the ActiveDirectoryDsc resource. We could put an example in here though showing how to do a domain join followed by configuring an computer object?

PlagueHO avatar May 23 '21 01:05 PlagueHO