Skip to content

Instantly share code, notes, and snippets.

View alexverboon's full-sized avatar

Alex Verboon alexverboon

View GitHub Profile
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
@alexverboon
alexverboon / Get-LAPSLoggingMode.ps1
Last active January 14, 2019 18:18
Get-LAPSLoggingMode
function Get-LAPSLoggingMode
{
<#
.SYNOPSIS
Get-LAPSLoggingMode
.DESCRIPTION
Get-LAPSLoggingMode retrieves the ExtensionDebugLevel status from the LAPS Client Side Extension.
Possible values are:
@alexverboon
alexverboon / Set-LAPSLoggingMode.ps1
Created January 14, 2019 18:17
Set-LAPSLoggingMode
function Set-LAPSLoggingMode
{
<#
.SYNOPSIS
Set-LAPSLoggingMode
.DESCRIPTION
Set-LAPSLoggingMode sets the ExtensionDebugLevel status for the LAPS Client Side Extension.
Possible values are:
@alexverboon
alexverboon / Get-AzMFAStatus.ps1
Last active November 10, 2020 09:34
Get-AzMFAStatus
function Get-AzMFAStatus
{
<#
.Synopsis
Get-AzMFAStatus
.DESCRIPTION
Get-AzMFAStatus retrieves Multifactor Authentication configuration informationo
from all registered users within an Azure Active Directory tenant.
UserPrincipalName : alex@contoso.com
@alexverboon
alexverboon / Get-DefenderATPStatus.ps1
Created February 22, 2019 20:24
Get-DefenderATPStatus
function Get-DefenderATPStatus
{
<#
.SYNOPSIS
Get-DefenderATPStatus
.DESCRIPTION
Get-DefenderATPStatus retrieves the status of Windows Defender ATP
.PARAMETER Computername
@alexverboon
alexverboon / FlowDefenderATPAlertemail.html
Created March 17, 2019 20:13
Flow - Defender ATP alert email template
<!-- 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;
@alexverboon
alexverboon / Get-WDATPAlerts.ps1
Created March 21, 2019 11:52
Retrieve Windows Defender ATP Alerts using RestAPI and PowerShell
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.
@alexverboon
alexverboon / Validate-DefenderExclusion.ps1
Created March 21, 2019 18:02
Validate-DefenderExclusion
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
function Get-DefenderEGEvents
{
<#
.Synopsis
Get-DefenderEGEvents
.DESCRIPTION
Get-DefenderEGEvents retrieves Windows Defender Exploit Guard related events
.PARAMETER Component
@alexverboon
alexverboon / Verify-MSCoreUTransportWhitelists.ps1
Created July 14, 2019 15:04
Verify-MSCoreUTransportWhitelists
function Verify-MSCoreUTransportWhitelists
{
<#
.Synopsis
Verify-MSCoreUTransportWhitelists
.DESCRIPTION
The Verify-MSCoreUTransportWhitelists cmdlet lists whitelisted domains if present