Taking Ownership and Adding Full Permissions for Paths over 260 Characters

Open Powershell As AdministratorImport-Module NTFSSecurity#Check Existing Accessdir2 “\\?\e:\folde\path\name” -Recurse | Get-NTFSAccess#Take Ownershipdir2 “\\?\e:\folde\path\name” -Recurse | Set-NTFSOwner -Account “Administrators”#Add Permissiosndir2 “\\?\e:\folde\path\name” -Recurse | Add-NTFSAccess -Account Administrators -AccessRights FullControl#recheck […]

Update Teams settings using GPO and desktop-config.json file

You can target the following powershell below to update items in desktop-config.json such as disableGpu\openAtLogin\registerAsIMProvider\runningOnClose(Get-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json).replace(‘”disableGpu”:false’, ‘”disableGpu”:true’) | Set-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json(Get-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json).replace(‘”openAtLogin”:true’, ‘”openAtLogin”:false’) | Set-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json 

How to report on current Azure MFA registrations in your organisation

Login to Azure Active Directory. Locate Usage & insights , under MonitoringSelect “Users registerd for Multi-Factor Authentication”  Can also be done in powershell : https://dirteam.com/sander/2020/05/14/todo-optimize-the-azure-multi-factor-authentication-methods-used-throughout-your-organization/https://www.cyberdrain.com/monitoring-with-powershell-monitoring-the-used-mfa-type-for-o365-azure/

Powershell to Find Snapshot File

[pastacode lang=”markup” path_id=”b8d027b954f570961ff4f92a25f363ce” file=”snapshotfind.ps1″ highlight=”” lines=”” provider=”gist”/]