Get User’s Provisioned Plans with Azure AD PowerShell Module

So… I wanted to check out what o365 licences were assigned to one of my user accounts… and… I wanted to use the Azure AD PowerShell module… I also wanted to use more ‘…’ in a post than usual!   (Get-AzureADUser -SearchString “”).ProvisionedPlans      


Profile Power: Default Parameter for Format-Table and Format-Wide

I’m lazy. When I run Format-Table and Format-Wide, the effort of typing -A and pressing Tab to give me -AutoSize weighs heavy on my fingers! And, so it is that I use the $PSDefaultParameterValues variable, in my PowerShell profile, to automatically add the -AutoSize parameter every time I run Format-Table or Format-Wide.   $PSDefaultParameterValues[‘Format-[wt]*:Autosize’] = $true   And, it’s…


Get Active Directory “Write Members” WriteProperty

A messaging colleague asked how to check which principals have the Write Members permission on distribution lists. I sent him a sample of how to query the WriteProperty for the Member property of a distribution group imaginatively called, er, DistributionGroup…     #Get Member WriteProperty $MemberGuid = “bf9679c0-0de6-11d0-a285-00aa003049e2” (Get-Acl -Path “AD:CN=Distribution Group,OU=Groups”).access | Where-Object {($_.ActiveDirectoryRights -eq…


Profile Power: Tidy Up My Personal Certificate Store

I’ve decided to do a few posts on the contents of my PowerShell profile. A profile is a script that runs when your PowerShell console starts. There is a profile for the ISE and the standard console. You can find the script location by looking at the $profile variable of the current host.   What’s in…


Security Focus: Count Vulnerabilities for Monthly Security Updates

Having a monthly single Security update makes sense. Have a cumulative quality update also makes sense. For example, two weeks ago, a customer was responding to the WannaCrypt outbreak by applying the May 2017 Monthly roll-up. Not only were the clients getting patches reaching back to October 2016, they were also getting improvements and fixes back…