This page has been moved to dedicated page for O365 users. Click here
Category Archives: Power Shell
Add UPN Suffixes to Active Directory users
UPN (User Principal Name) Suffixes: You can use Active Directory Domains and Trusts to add user principal name (UPN) suffixes for the existing user account. The default UPN suffix for a user account is the Domain Name System (DNS) domain name of the domain that contains the user account. You can add alternative UPN suffixes to simplify administration and user logon processes by providing a single UPN suffix for all users. The UPN suffix is used only within the Active Directory forest, and it is not required to be a valid DNS domain name.
To perform this procedure, you must be a member of the Domain Admins group or Enterprise Admins group in Active Directory Domain Services (AD DS), or you must have been delegated the appropriate authority. For using the appropriate accounts and group memberships, Click here.
To add UPN suffixes
- To open Active Directory Domains and Trusts, click Start, click Administrative Tools, and then click Active Directory Domains and Trusts.
- In the console tree, right-click Active Directory Domains and Trusts, and then click Properties.
- On the UPN Suffixes tab, type an alternative UPN suffix for the forest, and then click Add.
The procedure forusing the Active Directory module for Windows PowerShell. To open the Active Directory module, click Start, click Administrative Tools, and then click Active Directory Module for Windows PowerShell.
Sample AD PowerShell command to update UPNs in bulk
Get-ADUser-Filter * -properties homemdb | where {$_.homemdb -ne $null} | ForEach-Object ($_.SamAccountName) {$CompleteUPN = $_.SamAccountName + “@contoso.com”; Set-ADUser -Identity $_.DistinguishedName -UserPrincipalName $CompleteUPN}
The above script:
· Gets all users with something in their homemdb attribute (i.e. mailbox users)
· Creates a temporary variable called $completeUPN which is a combination of every user’s samaccountname plus @contoso.com
· Sets each user to this new upn
Enjoy!!!
Office 365 – Migration approach
This page has been move to a dedicated page..click here.
Office 365 – Cloud configuration – Step by step
In my previous post…ADFS…Active Directory Federation Service i was talking about the ADFS architecture and promise for the deployment or migration to O365 from Microsoft.
Here i’m dedicating a page for Office 365 live migration …Click here to divert to the page
Enjoy..!!!
Power Shell CMD – Exchange server 2010 – Check the status of the exchange server service(s)
Exchange server 2010 SP1 – Step by Step installlation on the production server – Live
Earlier i’ve done the Exchange server migration – 2007 to 2010 – Live cast, Its been 10 months since Exchange team release the SP1 for Microsoft Exchange server 2010….today i’m doing Microsoft Exchange server 2010 SP1 upgradation…Live page is opened.
Click here to view this live page
Enjoy!!!!
Mailbox – email address count – Exchange 2010 Powershell CMD
To get a count of how many email addresses each mailbox is having
Power Shell CMD : get-recipient “username” | select name, @{Name=”Count”;Expression={[array]($_.EmailAddresses).Count}}
for SMTP addresses: get-recipient “username” | select name, @{Name=”Count”;Expression={[array]($_.EmailAddresses | Where {$_ -like “smtp*”}).Count}}
Enjoy!!!

