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

Retrieve User Information based on CSV File

$
0
0

I am trying to do the following -

1. Import a CSV file with LastName, FirstName

2. Match the User Account based on LastName

3. Export the same user with Title in AD and also Account Status - Enabled or Disabled or Deleted to a second file

I have the file formatted as CSV but am struggling with the logic of the Powershell commands.

Anyone have ideas or a sample script?

Thanks.


Viewing all articles
Browse latest Browse all 8411