You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
Trying to use new AADAdministrativeUnit module fails when running Test-TargetResource (and possibly others too)
Verbose logs showing the problem
PS C:\Users\user.name\Desktop> Test-DscConfiguration -Path .\ -verbose
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className'
= MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer COMPUTERNAME with user sid
SID.
VERBOSE: [MAFINTDC1]: LCM: [ Start Compare ]
VERBOSE: [MAFINTDC1]: LCM: [ FAILEDCompare ] Completed processing compare operation. The operation returned
False.
At least one key property must be defined in the instance document. Update the instance document and try again.
+ CategoryInfo : InvalidArgument: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 4
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 0.948 seconds
Suggested solution to the issue
Checking under Modules/Microsoft365DSC/DSCResources/MSFT_AADAdministrativeUnit/MSFT_AADAdministrativeUnit.schema.mof, unlike the other modules, there is no 'Key' entry entered.
Should this variable type be set for 'DisplayName'?
NB This error didn't occur on a Windows 11 Enterprise device but does on Windows Server 2012 R2 - but it does seem to be normal for MOF files to have a key.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Details of the scenario you tried and the problem that is occurring
Trying to use new AADAdministrativeUnit module fails when running Test-TargetResource (and possibly others too)
Verbose logs showing the problem
PS C:\Users\user.name\Desktop> Test-DscConfiguration -Path .\ -verbose
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className'
= MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer COMPUTERNAME with user sid
SID.
VERBOSE: [MAFINTDC1]: LCM: [ Start Compare ]
VERBOSE: [MAFINTDC1]: LCM: [ FAILEDCompare ] Completed processing compare operation. The operation returned
False.
At least one key property must be defined in the instance document. Update the instance document and try again.
+ CategoryInfo : InvalidArgument: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 4
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 0.948 seconds
Suggested solution to the issue
Checking under Modules/Microsoft365DSC/DSCResources/MSFT_AADAdministrativeUnit/MSFT_AADAdministrativeUnit.schema.mof, unlike the other modules, there is no 'Key' entry entered.
Should this variable type be set for 'DisplayName'?
NB This error didn't occur on a Windows 11 Enterprise device but does on Windows Server 2012 R2 - but it does seem to be normal for MOF files to have a key.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
OsName : Microsoft Windows Server 2012 R2 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsBuildLabEx : 9600.20666.amd64fre.winblue_ltsb_escrow.221017-1717
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version of the DSC module that was used ('dev' if using current dev branch)
1.22.1214.1
The text was updated successfully, but these errors were encountered: