DSC xgroup module does not add members to administrators group after joining domain
Prasant Chettri
66
Reputation points
"Message": "The PowerShell DSC resource \u0027[Group]Resource0::[GroupSet]TRTCAdministrators\u0027 with SourceInfo \u0027::2::1::Group\u0027 threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.",
"Data": {
},
"InnerException": {
"ErrorRecord": "Exception calling \"Contains\" with \"1\" argument(s): \"The network path was not found.\r\n\"",
"WasThrownFromThrowStatement": false,
"Message": "Exception calling \"Contains\" with \"1\" argument(s): \"The network path was not found.\r\n\"",
"Data": "System.Collections.ListDictionaryInternal",
"InnerException": "System.Runtime.InteropServices.COMException (0x80070035): The network path was not found.\r\n\r\n at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)\r\n at System.DirectoryServices.DirectoryEntry.Bind()\r\n at System.DirectoryServices.DirectoryEntry.get_AdsObject()\r\n at System.DirectoryServices.PropertyValueCollection.PopulateList()\r\n at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)\r\n at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)\r\n at System.DirectoryServices.AccountManagement.SAMStoreCtx.ResolveCrossStoreRefToPrincipal(Object o)\r\n at System.DirectoryServices.AccountManagement.SAMMembersSet.MoveNextForeign()\r\n at System.DirectoryServices.AccountManagement.SAMMembersSet.MoveNext()\r\n at System.DirectoryServices.AccountManagement.PrincipalCollectionEnumerator.MoveNext()\r\n at System.DirectoryServices.AccountManagement.PrincipalCollection.ContainsEnumTest(Principal principal)\r\n at CallSite.Target(Closure , CallSite , Object , Object )",
"TargetSite": "Void CheckActionPreference(System.Management.Automation.Language.FunctionContext, System.Exception)",
"StackTrace": " at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)\r\n at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)",
"HelpLink": null,
"Source": "System.Management.Automation",
"HResult": -2146233087
Sign in to answer