PowerShell

A collection of powershell what I have done

PowerShell: Create random password function V3.

#PowerShell #UsefulFunctions

A while ago I wrote this, which in turn was an improvement on this. This is a slight improvement on the previous version in that it…

Mat Grumpy Tech

PowerShell: Test if running as admin

#PowerShell #UsefulFunctions

If you need to run something as the local admin then you can test for that. See below: function Test-Administrator { $User = [Security.Principal.WindowsIdentity]::GetCurrent(); return…

Mat Grumpy Tech

PowerShell, Intune: How to disable Teams GPU acceleration with Intune/GPO - Updated for new Teams

#PowerShell #Azure

This is an update to this post. Credit for this one goes to the user Dacid Salin. Thanks Dacid. Much appreciated. <#$FilePath = "C:\Users\…

Mat Grumpy Tech

PowerShell, Azure : Access Azure AD via CLI with MFA

#Azure #Office365 #PowerShell

A pretty simple one but something that seems to stump a lot of people. Much of the guidance around connecting to Azure AD suggests you do…

Mat Grumpy Tech