I need from your expertise to validate and/or modify the script attached
Basically, I am looking to build a script that will do following:
Given a input CSV file, and based on the value of the column named ADUsername.
1. Export all emails from user's regular mailbox to a PST file[please remember in exchange 2010, each user has 2 mailboxes. The regular mailbox, and the archive mailbox]
2. Export all emails from user's archive mailbox to a PST
3. Disable all Lync attributes for that username
I ran the 3 powershell cmdlet against individual accounts on my lab, and works fine. Now i need to script the process and run the 2 powershell cmdlet against each user that is part of the csv input file and based on ADUsername