Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

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

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles