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.

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)

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

Downloaded 0 times.  (0)

Skype for Business Meeting Policy to allow all users from your organization to be designated as presenters when they join a meeting.

Downloaded 0 times.  (0)

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

Downloaded 573 times.  (2)

Skype for Business Meeting Policy to disable all users from being designated as presenters when they join a meeting.

Downloaded 0 times.  (0)

First you 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)

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

Downloaded 0 times.  (0)

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

Downloaded 511 times.  (0)

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

Downloaded 389 times.  (1)

With most PowerShell commands, by adding on export-csv attribute, you can export the results directly into a .csv file. 

Downloaded 0 times.  (0)

Use the Add-DistributionGroupMember command to add a recipient to a distribution group.

Downloaded 0 times.  (2)

Import a large number of users using a pre-prepared CSV file with the minimum required field information

Downloaded 0 times.  (0)

Skype for Business Meeting Policy to allow all users to be designated as presenters when they join a meeting.

Downloaded 0 times.  (0)

PowerShell help content is updated on a regular basis. To get the latest help content, you can run the Update-Help command.

Downloaded 0 times.  (0)