Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Verboon alexverboon

View GitHub Profile
View Get-AzureImageSkuInfo.ps1
function Get-AzureImageSkuInfo
{
<#
.Synopsis
Get-AzureImageSkuInfo retrieves the available Azure Image SKUs
.DESCRIPTION
The Get-AzureImageSkuInfo cmdlet retrieves all image SKUs available
in the offers from all publishers
Use this function to identify the parameter values required for the
View Set-LAPSLoggingMode.ps1
function Set-LAPSLoggingMode
{
<#
.SYNOPSIS
Set-LAPSLoggingMode
.DESCRIPTION
Set-LAPSLoggingMode sets the ExtensionDebugLevel status for the LAPS Client Side Extension.
Possible values are:
View Get-LAPSLoggingMode.ps1
function Get-LAPSLoggingMode
{
<#
.SYNOPSIS
Get-LAPSLoggingMode
.DESCRIPTION
Get-LAPSLoggingMode retrieves the ExtensionDebugLevel status from the LAPS Client Side Extension.
Possible values are:
@alexverboon
alexverboon / Get-WDATPAlerts.ps1
Created Mar 21, 2019
Retrieve Windows Defender ATP Alerts using RestAPI and PowerShell
View Get-WDATPAlerts.ps1
function Get-WDATPAlerts
<#
.Synopsis
Get-WDATPAlerts
.DESCRIPTION
Get-WDATPAlerts retrieves Windows Defender Advanced Threat Protection alerts exposed
through the Windows Defender Advanced Threat Protection Alerts Rest API.
View Validate-DefenderExclusion.ps1
function Validate-DefenderExclusion
<#
.Synopsis
Validate-DefenderExclusion
.DESCRIPTION
Validate-DefenderExclusion checks whether the specified path or file is excluded.
The cmdlet will return the following information
- The path of the specified folder or file
- The result of the check, True, False or PathNotFound
@alexverboon
alexverboon / FlowDefenderATPAlertemail.html
Created Mar 17, 2019
Flow - Defender ATP alert email template
View FlowDefenderATPAlertemail.html
<!-- Windows Defender ATP e-mail alert template -->
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style>
.alertTable {
width:750px;
background-color:white;
border-spacing:5px;
font-size:16px;
View Get-DefenderEGEvents.ps1
function Get-DefenderEGEvents
{
<#
.Synopsis
Get-DefenderEGEvents
.DESCRIPTION
Get-DefenderEGEvents retrieves Windows Defender Exploit Guard related events
.PARAMETER Component
View Verify-MSCoreUTransportWhitelists.ps1
function Verify-MSCoreUTransportWhitelists
{
<#
.Synopsis
Verify-MSCoreUTransportWhitelists
.DESCRIPTION
The Verify-MSCoreUTransportWhitelists cmdlet lists whitelisted domains if present
@alexverboon
alexverboon / connect-exomfa.ps1
Created Jul 15, 2019
Connect to Exchange Online with MFA
View connect-exomfa.ps1
# connect to EXO with MFA
$CreateEXOPSSession = (Get-ChildItem -Path $env:userprofile -Filter CreateExoPSSession.ps1 -Recurse -ErrorAction SilentlyContinue -Force | Select -Last 1).DirectoryName
. "$CreateEXOPSSession\CreateExoPSSession.ps1"
@alexverboon
alexverboon / Verify-MScoreHostedOutboundSpamFilterPolicy.ps1
Created Jul 15, 2019
Verify-MScoreHostedOutboundSpamFilterPolicy
View Verify-MScoreHostedOutboundSpamFilterPolicy.ps1
function Verify-MScoreHostedOutboundSpamFilterPolicy
{
<#
.Synopsis
Verify-MScoreHostedOutboundSpamFilterPolicy
.DESCRIPTION
The Verify-MScoreHostedOutboundSpamFilterPolicy cmdlet verifies the configuation
of the outbound spam policy