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 / 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-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 / 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
@alexverboon
alexverboon / connect-exomfa.ps1
Created July 15, 2019 10:28
Connect to Exchange Online with MFA
# 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 July 15, 2019 10:33
Verify-MScoreHostedOutboundSpamFilterPolicy
function Verify-MScoreHostedOutboundSpamFilterPolicy
{
<#
.Synopsis
Verify-MScoreHostedOutboundSpamFilterPolicy
.DESCRIPTION
The Verify-MScoreHostedOutboundSpamFilterPolicy cmdlet verifies the configuation
of the outbound spam policy
@alexverboon
alexverboon / Start-OfficeReadinessCollection.ps1
Created August 19, 2019 10:39
Start-OfficeReadinessCollection
function Start-OfficeReadinessCollection
{
<#
.Synopsis
Start-OfficeReadinessCollection
.DESCRIPTION
Start-OfficeReadinessCollection is a wrapper script for the Readiness Toolkit for Office add-ins and VBA
.PARAMETER OutPutPath
Specifies the path where the Office Readiness Assessment results are stored.