PREMNAIR'S Blog

"..Unnatural work produces too much stress.."

Windows PowerShell to manage Office 365

This page has been moved to dedicated page for O365 users. Click here

March 19, 2012 Posted by | ADFS, Cloud Computing, DIR Sync, Microsoft, Office 365, Power Shell, Powershell cmdlets, Software | , | 2 Comments

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

  1. To open Active Directory Domains and Trusts, click Start, click Administrative Tools, and then click Active Directory Domains and Trusts.
  2. In the console tree, right-click Active Directory Domains and Trusts, and then click Properties.
  3. 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!!!

March 18, 2012 Posted by | Active Directory, ADFS, Cloud Computing, DIR Sync, Microsoft, Office 365, Power Shell, Software, Windows Server 2008 R2 | , , , , | 1 Comment

Office 365 – Migration approach

This page has been move to a dedicated page..click here.

March 17, 2012 Posted by | ADFS, Cloud Computing, DIR Sync, Exchange server 2010, Forefront Endpoint protection 2010, Licensing cloud services, Microsoft, Office, Office 2010, Office 365, Outlook, Power Shell, Software | | Leave a comment

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..!!!

March 13, 2012 Posted by | ADFS, Cloud Computing, DIR Sync, Exchange Online, Exchange server 2010, FOPE, Internet Information Services (IIS), Licensing cloud services, Lync Online, Microsoft, Office, Office 2010, Office 365, Office Professional Plus, Power Shell, Sharepoint Online, Software | , , , , , , , | Leave a comment

Power Shell CMD – Exchange server 2010 – Check the status of the exchange server service(s)

To check the status of the exchange server service, go to EMS…and type get-service *exchange*

Enjoy!!!

June 24, 2011 Posted by | Exchange Management Shell, Exchange server 2010, Microsoft, Power Shell, Software | , , | Leave a comment

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!!!!

June 24, 2011 Posted by | Active Sync, DAG, ECP, Edge Server, EWS, Exchange Management Console, Exchange Management Shell, Exchange Pre-Deployment Analyzer, Exchange server 2010, Exchange Server Profile Analyzer, Forefront, Forefront Endpoint protection 2010, Hyper-V, IP Block List, Log Parser, Mailbox Server Requirements Calculator, Microsoft, New Service Pack, Office 2010, Office for Mac, Power Shell, Software, Transport architecture, Windows Server 2008 R2 | , , , , , , , , , , , , , , | Leave a comment

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!!!

June 20, 2011 Posted by | Exchange server 2010, Mailbox Server Requirements Calculator, Microsoft, Power Shell, Software | , , | Leave a comment

   

Follow

Get every new post delivered to your Inbox.

Join 420 other followers

%d bloggers like this: