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

Fetch user details using Get-ADUser??

$
0
0

hello,

How can I fetch an information that has been populated into the Description filed in user object from a .txt or .csv file?

I have used the below command, but it doesn't work... any help?

Import-CSV C:\Student.csv | ForEach-Object { Get-ADUser -Properties Description -Filter "Description -eq $($_.discription)} | Export-CSV C:\Result.cs


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images