none
Need existing custom script to run with a .csv or .txt file RRS feed

  • Question

  • Hi, Scripting Guys!

    I am a very novice novice when it comes to PowerShell -- I'll state that up front. So apologies if the answer to this is really basic. I am trying to use a script written by someone else, where I can simply paste in the script, identify the user by any one of several attributes, and the magic happens (in this case, all mail attributes in the AD Object are cleared and then the email address is added back in, resetting that object to the point where IDSync can run).  For a single user at a time, it works perfectly.

    .\Reset-MailAccountforIDSync.ps1 -Identity "user@domain.com"

    My problem is that I have a .csv file with 60 users I need to run this script on, and there's a possibility of other large batches in the future.  How can I convert this single user script into one that can work with a .csv or .txt file?


    Thanks, Stormicat/J.L.Newmark

    Friday, August 22, 2014 10:43 PM

Answers