Auto Provisioning Outlook Live via CSV

Seeing as GALSync \ ILM Server only syncs one way (from AD to Live) I think I may be easier using an automated PowerShell script to create my new users. Seeing as part of the current plan is to export users from our MIS system from SQL to CSV then import into AD using a bulk user creation program this step wouldn’t be too much of a problem.

Most examples only show manual credentials as part of the process but this one seems to be exactly what I’m looking for…

http://liveatedu.spaces.live.com/blog/
Just needs the slight mod to the script as mentioned near the top of the comments for the CTP3 release

# capture the admin LiveID username in a variable
$Username = “admin@yourdomain.edu”
# capture the admin LiveID password in a variable.  Note, that it is stored as a secure string
$Password = ConvertTo-SecureString ‘YourPassword’ -AsPlainText -Force
# populate the $Livecred PowerShell credential with $Username and $Password
$Livecred = New-Object System.Management.Automation.PSCredential $Username, $Password
# call the CSV_Parser.ps1 file in a new shell, feeding in the usual parameters
./CSV_Parser.PS1 –UsersFile “C:\Source\users.csv” -RemoteURL https://ps.exchangelabs.com/powershell -LiveCredential $Livecred -LogDirectory “C:\Logging\” -LogVerbose $true -ValidateAction $true
# Gracefully remove the runspace so as not to leave any orphaned connections
Get-RunSpace | Remove-RunSpace

I am wondering if there’s a way to stop users changing their password in Live, would make life easier until 2 way password sync becomes available…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: