Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Getting Error while Exporting Data from AD

$
0
0

I am getting while exporting AD Users or Computers information from AD below is the script and error message. Can anyone help me on this. I have user count near about 15000.

Get-ADUser -Filter * -Properties * | Select-Object -Property Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,whenCreated,Enabled,Company | Sort-Object -Property Name | Export-Csv -path D:\AlluserfromAD30102015.csv

Get-ADUser : The server has returned the following error: invalid enumeration context.
At line:1 char:11
+ Get-ADUser <<<<  -Filter * -Properties * | Select-Object -Property Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,whenCreated,Enabled,Company | S
ort-Object -Property Name | Export-Csv -path D:\AlluserfromAD30102015.csv
    + CategoryInfo          : NotSpecified: (:) [Get-ADUser], ADException
    + FullyQualifiedErrorId : The server has returned the following error: invalid enumeration context.,Microsoft.ActiveDirectory.Management.Commands.GetADUser


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>