Microsoft Education in the Cloud

Read all about the wonderful world of the Microsoft cloud stack and how it applies to education. Your feedback and comments are always welcome. Enjoy!

Useful PowerShell Command Builder tool to help you design PowerShell scripts for your Office 365 tenant

Useful PowerShell Command Builder tool to help you design PowerShell scripts for your Office 365 tenant

  • Comments 1
  • Likes

 

If you are new to PowerShell or the Office 365 specific tenant cmdlets in PowerShell, here is a nice tool called the PowerShell Command Builder. It allows you to visually build your Office 365 tenant PowerShell scripts.  It doesn’t have Exchange Online PowerShell but is a great start to learning tenant scripts.

 

Pick “Office 365” from the Products list to show you all the Office 365 tenant “verbs” and “nouns”

image

To build a script, just drag your “Verb” and drag a “Noun” over to the design surface and it will autogenerate a PowerShell script for you which you can quickly copy.

 

image

It even allows you to put in your actual domains to leverage in your script.

 

Visit the PowerShell Command Builder tool here.

To learn more on how to actually use these scripts with Office 365 via remote PowerShell visit my other post here.

Comments
  • Hi Mark,

      Thanks for cool tool and nice information :).

    I have one question, Does Connect-MsolService is work for EDOG Tenant as well? Do i need to install any support exucutables for that? Because same command is working for PROD not EDOG.

    i am geeting below error messgae when i run for EDOG.

    Connect-MsolService : Access Denied. You do not have permissions to call this c

    mdlet.

    At line:1 char:20

    + Connect-MsolService <<<<

       + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], Mic

      rosoftOnlineException

       + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.Acces

      sDeniedException,Microsoft.Online.Administration.Automation.ConnectMsolSer

     vice

    Connect-MsolService : Exception of type 'Microsoft.Online.Administration.Automa

    tion.MicrosoftOnlineException' was thrown.

    At line:1 char:20

    + Connect-MsolService <<<<

       + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], Mic

      rosoftOnlineException

       + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.Micro

      softOnlineException,Microsoft.Online.Administration.Automation.ConnectMsol

     Service

    Can you help me here.

    Thanks.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment