Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Active Directory Local Stack trace error

$
0
0

 

Hello,

The below issue is not happening all the time. Only on parallel execution of this command as xml from service now orchestrator. Even in parallel execution, only at times the error occurs.

We are facing local stack error when using the below commands. 

$Domains=Get-ADForest| select -ExpandProperty Domains;

 foreach($Domain in $Domains) {                        

              $User1=get-aduser $UserName -Server "$Domain";   

}

How to resolve ?

Error we got as below : 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()

Viewing all articles
Browse latest Browse all 6937

Trending Articles