PowerShell: Create random password function V3.
#PowerShell #UsefulFunctionsA 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…
PowerShell: Test if running as admin
#PowerShell #UsefulFunctionsIf 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…
PowerShell, Intune: How to disable Teams GPU acceleration with Intune/GPO - Updated for new Teams
#PowerShell #AzureThis is an update to this post. Credit for this one goes to the user Dacid Salin. Thanks Dacid. Much appreciated. <#$FilePath = "C:\Users\…
PowerShell, Azure : Access Azure AD via CLI with MFA
#Azure #Office365 #PowerShellA 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…