Archive for User Creation

Exchange 2007 Hosted Exchange Project

This script was part of a test project I was involved with back in 2009 setting up a hosted exchange environment.  The project was scrapped by the people paying the bills before it ever went live, partly because 2010 was about to come out, partly because they finally started to believe me about how much it was going to cost to do it right.  Either way these are the hosted client setup scripts that I built for creating new hosting clients as well as creating new users for those clients. Read more

Bulk Import from GMail (or any IMAP server) to Exchange

This command appears to have been removed in 2013, but it’s one that is worth documenting anyway since it may be worth spinning up a 2007-2010 server to use it if you find yourself needing to migrate off that mistake someone previously made by moving everyone to Google apps, and back to Exchange.

CSV Columns:

Read more

Bulk script creation of users with custom passwords

This exchange script will import a CSV file with the following column names and create the user accounts, including a unique password for each user as defined by the CSV file.  Great for new environments where you have a list of users and their existing passwords.

CSV Columns:
uName, FirstName, LastName, UPN, Password

Read more

Bulk Rewrite of Display Name

A customer wanted to identify their employees by department when they were emailing people to ensure that people knew who they were dealing with, ex Sales, Finance, Legal Etc.

This script will import a CSV file with a list of existing usernames and prepend the title “Sales-” to their display name. Read more

List all Disconnected Mailboxes with timestamp

I came across a situation where someone was messing around in AD and had accidentally deleted an account, Realizing their mistake they re-created with the same password it thinking it would just re-connect to the mailbox and the user would be fine.  By the time they called me they had deleted and re-created the account a number of times.  I had to identify the correct mailbox to reconnect to the user account, out of 4-5 versions all with the same exact name.

This command shows all disconnected mailboxes as well as the date the corresponding user account was deleted, and leaving the mailbox disconnected. The timestamp allowed me to connect the correct mailbox to the account without having to guess at anything.

get-mailboxserver | get-mailboxstatistics | where { $_.DisconnectDate } | fl DisplayName, DisconnectDate