Here’s a new quick tip from Darin on AD exports and imports from within PowerGUI:
As usual, short and to the point.
Using CSV and text files in PowerGUI when managing AD is quite common. For example, I have seen people adding script node like:
Get-Content '\\server\share\users.txt' | Get-QADUser
users.txt has a bunch of usernames (one per line) this outputs actual user accounts to the PowerGUI grid, which you can then manage with all the actions (disable, reset passwords, and so on.)
Alternatively, some customers are just using
in a node and then define some actions to perform various activities based on the fields in the grid.
Also, although Darin did not show that, you can create your own export to CSV and use something like
Select Name, samAccountName | Export-Csv
to pick specific columns to be exported.
And there’s whole update from CSV scenario… Man, I could go on and on with these! 🙂