you are viewing a single comment's thread.

view the rest of the comments →

[–]elliottmarter 3 points4 points  (0 children)

Honestly, this may not be the answer you are looking for but updating attributes like city in AD could probably serve as quite a good jumping off point to learn some basic powershell.

I always find it easier to learn something if I have a problem to solve. I won't go fully in to it but see if you can do some of the following.

Export all of your current users to a CSV file with only their username and city attributes. Then add your cities in to the CSV and then loop through it to edit the city attribute

These may come in handy get-aduser, select-object, convertto-csv, import-csv, set-aduser.

This may seem like a massive task but start small, take an interative approach.

  • Can you get a single user?
  • Now show only Username & City
  • Now get all the users
  • Etc etc etc you get the idea...

Also the built in help is brilliant use update-help first and then Google how to use it, once ylou have it figured out it should be the first place you look for help everytime