Search for: Practical PowerShell

865 Results

Connecting to the Microsoft Graph Using the PowerShell SDK

The Microsoft Graph SDK for PowerShell exists to help developers use Graph API calls from PowerShell. It works, but like anything in life, there's a right way to connect and use the SDK and a wrong way. In this article we explore topics like how to connect to the right tenant, how permissions are managed (or not), and why running Graph SDK cmdlets interactively isn't something you should do in production. Good as the SDK is, Microsoft has some big issues to solve to address some obvious security issues.

Continue Reading Connecting to the Microsoft Graph Using the PowerShell SDK

The Practical 365 Update: S2, Ep 24 – Skype Retires (or does it?), Windows 365 pricing & Teams 2.0 surprises us – plus MVP Ingo Gegenwarth talks managing Exchange Online at scale

In the show this week, Ingo Gegenwarth joins Steve and Paul to talk about how to manage Exchange Online at scale in advance of his TEC talk; and we look at the pricing for Windows 365, test drive Teams 2.0 and check in on Skype in retirement - has it really retired?

Continue Reading The Practical 365 Update: S2, Ep 24 – Skype Retires (or does it?), Windows 365 pricing & Teams 2.0 surprises us – plus MVP Ingo Gegenwarth talks managing Exchange Online at scale

How to Report Teams Channel Storage with Microsoft Graph API and PowerShell

Within large organizations utilizing Teams, generating reports on channel storage and then migrating this data is extremely difficult. To help map out how Teams uses SharePoint, this article introduces a simple Graph API/PowerShell script to report Teams channels and their SharePoint locations and walks you through the steps so you can run the report yourself.

Continue Reading How to Report Teams Channel Storage with Microsoft Graph API and PowerShell

Upgrading PowerShell Scripts with Azure AD Cmdlets to Use Graph API Calls

Microsoft has announced that they won't support the Azure AD Graph after June 30, 2022. This means that the Azure AD PowerShell module won't be supported either. With that in mind, it's probably a good idea to think about how to upgrade scripts to use Graph API calls instead of Azure AD cmdlets. In this article, we take a script created to count members in distribution lists and convert it to use the Graph. As it turns out, the Graph bit is easy. It's all the housekeeping beforehand that takes the time.

Continue Reading Upgrading PowerShell Scripts with Azure AD Cmdlets to Use Graph API Calls

Creating Personal Contacts in User Mailboxes with PowerShell and the Graph

An earlier article explained how to create organizational contacts in user mailboxes with Graph API calls. This article builds on that idea with three improvements. First, we select target mailboxes for update by looking for those added in the last month. Second, we allow any mail-enabled recipient to be added as an organizational contact. Third, we incorporate some code to check if a contact already exists in a mailbox. Like anything with PowerShell, this code can be improved..

Continue Reading Creating Personal Contacts in User Mailboxes with PowerShell and the Graph

Moving on from Send-MailMessage: Sending Email from PowerShell using the Graph API

Many PowerShell scripts use the Send-MailMessage cmdlet to send mail. That's fine, but if you want to remove basic authentication to improve tenant security, you need to stop using Send-MailMessage. One solution is to move to use the Graph API SendMail call. This works fine, but it creates some new security issues that need to be thought through. In this article, we explain how to use the Graph to send email and some of those security considerations to ponder.

Continue Reading Moving on from Send-MailMessage: Sending Email from PowerShell using the Graph API

Getting Exchange Online Distribution List Membership Counts with PowerShell

It's important to know if a tenant has any very large distribution lists as these might be the source of reply-all mail storms. An old article explains how to report the membership counts for distribution lists on an on-premises Exchange server. Life is different in the cloud, and we need to take a different approach. This article explains how to use different calls in a PowerShell script to create a nice report about distribution list memberships.

Continue Reading Getting Exchange Online Distribution List Membership Counts with PowerShell