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…
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 = “”
# 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 -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…


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: