This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $pathExclusions = (New-Object -TypeName System.Collections.ArrayList) | |
| $processExclusions = (New-Object -TypeName System.Collections.ArrayList) | |
| $null = $pathExclusions.Add($env:windir + '\Microsoft.NET') | |
| $null = $pathExclusions.Add($env:windir + '\assembly') | |
| #$null = $pathExclusions.Add($env:USERPROFILE + '\Downloads\HeidiSQL_11.3_64_Portable') | |
| $null = $pathExclusions.Add($env:USERPROFILE + '\.dotnet') | |
| $null = $pathExclusions.Add($env:USERPROFILE + '\.nuget') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 4.0 | |
| <# | |
| .SYNOPSIS | |
| High Performance Powershell Module Installation | |
| .DESCRIPTION | |
| This is a proof of concept for using the Powershell Gallery OData API and HTTPClient to parallel install packages | |
| It is also a demonstration of using async tasks in powershell appropriately. Who says powershell can't be fast? | |
| This drastically reduces the bandwidth/load against Powershell Gallery by only requesting the required data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Scan for CVE-2022-3602 vulnerable versions of OpenSSL | |
| .DESCRIPTION | |
| Scan for CVE-2022-3602 vulnerable versions of OpenSSL | |
| .PARAMETER All | |
| Scan for all versions or just for vulnerable versions of OpenSSL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Set the Default Property Display in PowerShell on Custom Objects | |
| .DESCRIPTION | |
| Set the Default Property Display in PowerShell on Custom Objects | |
| Sample code for a blog post | |
| .EXAMPLE | |
| PS C:\> .\PowerShell_PSTypeNames_and_custom_FormatData.ps1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Mitigate CVE-2021-1675 related issues | |
| .DESCRIPTION | |
| Disable the printer spool on all servers within a Domain. | |
| You need admin permission and PowerShell needs to be configured and | |
| enabled for the user that executes the script. | |
| .EXAMPLE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Configure the logging to find CVE-2021-1675 related incidents | |
| .DESCRIPTION | |
| Configure the logging to find CVE-2021-1675 related incidents | |
| .EXAMPLE | |
| PS C:\> .\Invoke-EnableLoggingToFindPrinterHell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -Version 3.0 -Modules ExchangeOnlineManagement | |
| <# | |
| .SYNOPSIS | |
| Get a basic report of Mobile Devices | |
| .DESCRIPTION | |
| Get a basic report of Mobile Devices connected to the Microsoft 365 Tenant | |
| .EXAMPLE | |
| PS C:\> .\Get-MobileDeviceReporting.ps1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -Version 3.0 -Modules Microsoft.Online.SharePoint.PowerShell | |
| <# | |
| .SYNOPSIS | |
| Generates a basic usage report for OneDrive for Business sites | |
| .DESCRIPTION | |
| Generates a basic usage report for OneDrive for Business sites | |
| The report will contain the following information: | |
| - Owner (UPN) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@odata.type": "#microsoft.graph.windows10CustomConfiguration", | |
| "id": "f2d6ce45-3bc7-4584-b391-120aa53eabea", | |
| "lastModifiedDateTime": "2018-09-09T13:47:31.4040135Z", | |
| "createdDateTime": "2018-07-07T14:21:22.3292533Z", | |
| "description": "", | |
| "displayName": "ADMX - OneDrive - KFM.admx", | |
| "version": 7, | |
| "omaSettings": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -Version 3.0 -Modules ExchangeOnlineManagement, MSOnline | |
| <# | |
| .SYNOPSIS | |
| Deploying Exchange Online security and spoofing warnings rules | |
| .DESCRIPTION | |
| Deploying Exchange Online security and spoofing warnings rules | |
| .EXAMPLE |