Closed raandree closed 2 years ago
Yeah, by design. Can be suboptimal but not a lot of effort has been put in Get-DatumRsop
.
In short, this function only lookup based on the Configurations
pivot.
For a given node
it resolves the array of configurations
items from the 'configurations' key.
Then for each configuration, does a lookup of that config for that node and merge into the root node
element.
So it builds the rsop by doing a Lookup foreach item in the configurations
key, because that's the only thing we know (the pivot).
If we'd want to add the LCM configs, we ought to do something similar than what you can find in RootMetaMof.ps1
:
Adding here the following...
$RSOPNode.Add('LcmConfig',@{})
'LcmConfig\Settings','LcmConfig\ConfigurationRepositoryShare','LcmConfig\ResourceRepositoryShare','LcmConfig\ConfigurationRepositoryWeb','LcmConfig\ResourceRepositoryWeb','LcmConfig\ReportServerWeb','LcmConfig\PartialConfiguration' | % { $KeyToAddToNode = Resolve-NodeProperty -PropertyPath $_ -DefaultValue $null; $RSOPNode.LcmConfig[$_] = $KeyToAddToNode; }
This is rough and not tested, but illustrates the idea :)
Solved in b7da69decf6255df6b98c8e504ad7c5dda5220f6.
Usually every bit of config data is visible in the RSOP output. But the LCM settings are missing the pull server URI and the RegistrationKey which is in the Meta MOFs (so it does exist) but not in the RSOP.
A repo is here: https://github.com/raandree/DatumTest
The RSOP output for node PreServer1
The meta.mof with the content that is missing in RSOP.
Is this by design or does something go wrong?