locked
Active Directory Stack trace RRS feed

  • General discussion

  • Hello,

    When running a below AD command, getting stack trace at some point.

    Command : Import-Module ActiveDirectory; Get-AdUser $User -Server $Domain;

    Most of the time, it is working as expected. But at times it gives the stack trace error:

    <error>A local error has occurredStack Trace:    at Microsoft.ActiveDirectory.Management.AdwsConnection.ThrowExceptionForErrorCode(String message, String errorCode, String extendedErrorMessage, Exception innerException)at Microsoft.ActiveDirectory.Management.AdwsConnection.ThrowException(CustomActionFault caFault, FaultException faultException)at Microsoft.ActiveDirectory.Management.AdwsConnection.GetADForest(GetADForestRequest request)at Microsoft.ActiveDirectory.Management.ADWebServiceStoreAccess.Microsoft.ActiveDirectory.Management.IADTopologyManagement.GetADForest(ADSessionHandle handle, GetADForestRequest request)at Microsoft.ActiveDirectory.Management.ADTopologyManagement.GetForest()at Microsoft.ActiveDirectory.Management.Commands.ADForestFactory`1.GetExtendedObjectFromIdentity(T identityObj, String identityQueryPath, ICollection`1 propertiesToFetch, Boolean showDeleted)at Microsoft.ActiveDirectory.Management.Commands.ADGetCmdletBase`3.ProcessRecordOverride()at Microsoft.ActiveDirectory.Management.Commands.GetADForest.ProcessRecordOverride()at Microsoft.ActiveDirectory.Management.Commands.ADCmdletBase.ProcessRecord()</error>

    How to resolve this?

    Wednesday, June 10, 2015 9:44 AM