Posts Tagged ‘Office 365’

Script to validate your Office 365 DNS records

April 10th, 2014 No comments


Get-Office365DNSRecords.ps1 is a simple script for Office 365, that makes you quickly validate if your have configured your DNS records for use with Office 365 services.

It creates two report, one listed directly within the PowerShell prompt and a more detailed report which is saved to a file.

Example of the prompted report for e.g.

No autodiscover record found for
MX Records found for
SIP TLS Records found for
SIP Federation TLS Records found for
No SIP record found for
Lyncdiscover Record found for
No MSOID record found for

This script scans a CSV file for a list of domains and then scans each domain for DNS records that may indicate which Office 365 services is setup in DNS. So add your domains to the CSV file and you are ready to validate.

Download my script here:

Get-Office365DNSRecords.ps1 (45.6 KiB, 68 downloads)

Download is available on TechNet Gallery, download link above, will redirect you to TechNet Gallery. Please post comments regarding the script on this page, thx.

How to change the Recipient Type of a Mailbox in Exchange or Office 365

September 25th, 2012 1 comment

If you need to change the purpose of an existing Exchange Mailbox, for instance changing a User Mailbox to a Shared Mailbox or maybe the other way around, changing a Shared Mailbox to a User Mailbox.

Could also be changing to a Room or Equipment.

This an relative easy task to change. Make sure your running the Exchange Management Shell or are connected Office 365 (see previous post).

Change a mailbox to a Shared Mailbox, using the following PowerShell command:

Get-Mailbox -Identity | Set-Mailbox -Type Shared

The different Recipient Types you can set on a Mailbox are:

  • Regular
  • Room
  • Equipment
  • Shared

Show a list of mailbox and their Recipient Type, using the following PowerShell command to validate your configuration settings:

Get-Mailbox | ft Name, RecipientTypeDetails

Output (example):


The above commands works fine on Exchange 2007, Exchange 2010 and with Office 365.


How to configure Send As Permission to a User in Office 365

May 3rd, 2012 7 comments


If you need to give Send As Permissions to a User in Office 365, it can be done using a few simple commands in Exchange Online PowerShell.

Send As permission is used when you need to give a user permission to use another recipient’s email address in the From address.

First connect to your Office 365 tenant, using Windows PowerShell.

To connect to Exchange Online, just start a PowerShell session and type in following commands:

$Cred = Get-Credential

The above command prompts you, for your Office 365 tenant admin credentials, it is important to enter as UPN format, such as e.g.

Next, we will create a new remote PowerShell session using the following cmdlet:

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $cred -Authentication Basic –AllowRedirection

Next we import of the PowerShell session:

Import-PSSession $s

You are now connected to Exchange Online with you Office 365 Tenant admin and can use Exchange Online PowerShell cmdlets available.

Next grant a user permission to access another user’s mailbox, so they have permission to open it:

Add-MailboxPermission <mailbox> -User <user or security group> -AccessRights FullAccess

Then give Send As permission to users, som they can send as the user:

Add-RecipientPermission <identity> -AccessRights SendAs -Trustee <user>



Reference documentation:

Office 365 Jump Start Training videos available

March 16th, 2012 No comments


Last year I did a blog post about the 3 day Office 365 Jump Start Training, that Microsoft held online at the time.

The entire training course “Microsoft Office 365 for IT Professionals Jump Start” has since then, been made available in HD-quality video recordings for free on TechNet Edge and on the Microsoft Virtual Academy (MVA), where there is an assessment after each session.

The 15 sessions (1 hour each) is divided into three five-module sections:

  • Office 365 Platform
  • Exchange Online
  • Lync & SharePoint Online

    How to connect to Office 365 with PowerShell

    March 15th, 2012 No comments


    As an Administrator for Office 365, you can use PowerShell to manage a lot of your administrative tasks such as user management and domain management.

    The following is needed:

    1. MS Online Services Assistant needs to be downloaded and installed
    2. MS Online Module for PowerShell needs to be  downloaded and installed
    3. Connect to Microsoft Online in PowerShell
      Download MS Online Services Assistant

    Download the OS version needed:

        Download Online Module for PowerShell

      Download the OS version needed:

          Connect to MS Online in PowerShell

        Open a PowerShell session and import the MS Online Module using:

        Import-Module MsOnline


        Connect with your Microsoft Online tenant account using:



        Use your tenant account e.g.

          Now you are ready to work with PowerShell against your Office 365 account. If you need a list of the cmdlets available, see the reference documentation link below or run the following PowerShell command:

        Get-Command -Module MsOnline



          Reference documentation:
        Categories: Office 365 Tags: ,

        How to set the postmaster address in Office 365

        March 13th, 2012 No comments


        By default when Exchange Online in Office 365 is setup for your organization, the postmaster address, e.g. is set to

        This means that when someone sends mail to your organization and gets an NDR back, the sender is:

        If you want to change this, you can do so using PowerShell for Exchange Online.

        The procedure for changing this is:

        1. Connect to your Exchange online using PowerShell

        2. Change addres using command:

        Set-TransportConfig –ExternalPostmasterAddress


        This works for All P and E plans – I have not tested it yet for K plan.

        This postmaster address is a tenant/organization level setting which applies to all domains in your tenant. It is not available to set the postmaster address on a domain level.

        TechEd 2011 North America–UC sessions

        June 7th, 2011 No comments


        As usual Microsoft has put all the sessions from this years TechEd online at

        I have compiled a list of interesting UC sessions within:

        • Exchange 2010
        • Lync 2010
        • Office 365
          All session links include a webcast of the session along with the powerpoint.

        Read more…

        Categories: Exchange Tags: , , ,

        Office 365 for IT Professionals – Jump Start Training

        May 23rd, 2011 No comments

        imageMicrosoft is doing a free 3 day webinar on Office 365 for IT professionals.

        The agenda is:

        Day One — “Office 365 Platform” May 24, 2011 | 10am-4pm PDT | Live online training

        • Microsoft Office 365 Overview for IT Pros
        • Deploying Clients for Office 365
        • Administration & Automation using PowerShell
        • Identity and Access Solutions
        • Directory Synchronization

        Day Two — “Exchange Online” May 25, 2011 | 10am-4pm PDT | Live online training

        • Exchange Online Overview for IT Pros
        • Exchange Online Administration
        • Staged Exchange Online Migration
        • Hybrid Options with Exchange Server & Exchange Online
        • Exchange Online Archiving & Compliance

        Day Three — “Lync & SharePoint Online” May 26, 2011 | 10am-4pm PDT | Live online training

        • Lync Online Overview & Configuration for IT Pros
        • SharePoint Online Overview
        • SharePoint Online Administration
        • SharePoint Online Extensibility & Customization
        • Office 365 Deployment Overview

        More details can be found on the event website, along with registion:

        Categories: Office 365 Tags: ,