Script Samples

In this section, you will have access to a collection of PowerShell scripts that including ones that help you establish a connection to your Office 365 evnironment, automate repetitive tasks such as adding multiple users and exporting a list of users.


Please note that the sample scripts that you download may require edits such as adding your domain name. In addition, you can easily customize the scripts so that they can better meet your needs.

Getting Connected to Office 365 Cloud services to administer Office 365 Cloud services using PowerShell

Downloaded 2755 times.  (2)

Connect remotely to your Skype for Business Online service.

Downloaded 875 times.  (0)

Connect remotely to your SharePoint Online service.

Downloaded 811 times.  (2)

This script will export the list of distribution groups in your Office 365 organization into a CSV file.

Downloaded 737 times.  (0)

This script will allow you to view a report on licensed users in Office 365.

Downloaded 573 times.  (2)

Connect remotely to your Azure Active Directory and Exchange Online services.

Downloaded 511 times.  (0)

Connect remotely to your Azure Active Directory service.

Downloaded 480 times.  (0)

Connect remotely to your Exchange Online service.

Downloaded 392 times.  (0)

This script will allow you to view Office 365 licensing information for multiple unlicensed users. 

Downloaded 389 times.  (1)

The Get-Help command displays information about Windows PowerShell concepts, including commands, functions, CIM commands, workflows, providers, aliases and scripts.

Downloaded 0 times.  (0)

Import a large number of users using a pre-prepared CSV file with detailed field information

Downloaded 0 times.  (2)

This sample script will enable you to connect to SharePoint Online and delete a SharePoint Site Collection.
The deleted SharePoint Site Collection will be in the SharePoint Site Collection Recycle Bin.

Downloaded 0 times.  (0)

This Skype for Business policy setting will allow attendees to record meetings. To begin, you will first need to load the Skype for Business module then connect to the Skype for Business online service to set this command.

Downloaded 0 times.  (0)

Deny anonymous Skype for Business users entrance to meetings and removes the ‘lobby’ function from meetings.

Downloaded 0 times.  (1)

Use the Remove-DistributionGroupMember command to remove a recipient from a distribution group.

Downloaded 0 times.  (0)