DSC xgroup module does not add members to administrators group after joining domain

Prasant Chettri 66 Reputation points
2022-09-16T14:58:28.793+00:00

"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
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,241 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
435 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.