PowerShell

Latest Articles

Creating Custom B2B Guest User Invitations with Graph API 5 Comments
Azure AD Microsoft Graph API PowerShell

Creating Custom B2B Guest User Invitations with Graph API

Azure AD business-to-business guest user accounts are a terrific way to securely grant access to apps and services for external users and partner organizations. In this article, a script is introduced that can be used to automate the guest user invitation process, integrating it more seamlessly with any custom applications.

June 2, 2021

Move Your Exchange Online Scripts to Use Get-ExoMailbox

Many Exchange Online scripts use the old Get-Mailbox cmdlet to fetch mailbox data. It's time to change these calls out and replace them with Get-ExoMailbox. The new cmdlet is faster than the old and more resilient in its ability to handle server glitches. There's no reason to continue using the old Remote PowerShell cmdlets unless you like slowness and errors.

May 26, 2021
Prepopulating Outlook Contacts with the Graph API 36 Comments
Microsoft Graph

Prepopulating Outlook Contacts with the Graph API

When contacts are added to an organizations Global Address List (GAL), they do not always populate in the users personal device contacts depending on what app, device, etc. is being used. This becomes problematic when users working from outside the office are unable to contact the IT Service Desk, HR, or other internal services. To solve the problem, this article introduces a PowerShell script that will read a set of standard contacts from a CSV file and write them as personal contacts to user mailboxes. Mobile devices can then synchronize these contacts along with others created by the user.

May 20, 2021
How to Use PowerShell to Remove OneDrive Files Found by a Content Search One comment
How to Use PowerShell to Remove OneDrive Files Found by a Content Search

How to Use PowerShell to Remove OneDrive Files Found by a Content Search

Ever wondered how to perform selective deletion of OneDrive documents found in Content Searches? While you can remove email using a content search action, Office 365 doesn’t include a method to cleanup OneDrive documents found by content searches. This article demonstrates how to use PowerShell to view the set of files, and then select files to remove.

May 5, 2021

Switch between Office update channels and enable Teams Preview features

Two recent updates for Microsoft Teams and Office (Microsoft 365 Apps for Enterprise) allow you to self-select whether you want to use Beta (Insider), Current, Monthly and Bi-Annual features within the client, and toggle Teams Preview features. Find out how to switch this on for your copy of Office and Teams, and how as an admin you can enable this for your users.

March 5, 2021