Category: PowerShell

An Active Directory Change Report from PowerShell
An Active Directory Change Report from PowerShell
Blog Posts

A few days ago I posted some PowerShell code that you could use to be alerted when things changed in Active Directory. The code used PowerShell and CIM events to notify you, for example, when a new user account is created. This can be helpful when you need alerting. But perhaps you only need reporting. What has… READ MORE

PowerShell: Invoke-RestMethod
PowerShell: Invoke-RestMethod
Blog Posts

Scenario I want to write a function that will query an image site and download a picture so I can insert it into a blog post. After watching a local PowerShell User Group presentation on using Invoke-RestMethod, I decided to give it a try. API Parameters Invoke-RestMethod is a PowerShell utility specifically for quering web sites that… READ MORE

Get all Teams a User is Part of Using PowerShell PnP
Get all Teams a User is Part of Using PowerShell PnP
Blog Posts

As you may be aware already (hopefully!), we have Microsoft Teams cmdlets surfacing in the SharePoint PowerShell PnP module since July 2020. Today, we’ll work again with those cmdlets. As a matter of fact, we’ll use 2 modules for this blog post. PowerShell PnP Azure AD So make sure you’ve got both installed to be… READ MORE

Executing CMDKEY via a PowerShell remote session
Executing CMDKEY via a PowerShell remote session
Blog Posts

I faced some troubles in executing cmdkey.exe on a PowerShell remote session, while I was trying to automate the creation of a SQL Failover Cluster Instance on Azure VMs, using Azure Premium File Share (PFS) as shared storage. You need cmdkey.exe since you must persist Azure PFS access credentials on the Credential Manager of both cluster nodes, into the… READ MORE

4 Directions for Power Platform Business Growth
4 Directions for Power Platform Business Growth
Blog Posts

It’s now roughly one year since Microsoft launched the concept of Power Platform. It’s been extremely interesting in the past 12 months to watch how this new platform strategy starts to play out in the world outside Redmond, as the pieces of this grand puzzle begin to become visible here and there. Having worked in… READ MORE

Using the Graph API Powershell SDK
Using the Graph API Powershell SDK
Blog Posts

Introduction For a while, when using Graph API and PowerShell I have been using my own implementations of communicating with Graph API as outlined in the following posts: Getting started with Microsoft Graph and PowerShell Authenticating with Graph API Using a Device Code However, at Ignite 2019, it was announced there is a Graph API… READ MORE