Skip to content

Instantly share code, notes, and snippets.

View kris6673's full-sized avatar

Kristian Kjærgård kris6673

View GitHub Profile
@kris6673
kris6673 / MC1426371-detector.ps1
Created July 15, 2026 12:07
This script retrieves the MFA state across all tenants and if they are using phone-only methods
#Requires -Modules CIPPAPIModule
$CIPPAPIParams = @{
CIPPClientID = 'client-id-placeholder' # Replace with your actual CIPP Client ID
CIPPClientSecret = 'Placeholder-ReplaceWithYourClientSecret' # Replace with your actual CIPP Client Secret
CIPPAPIUrl = 'https://CIPP-url-here.azurewebsites.net' # e.g. https://yourcipp.azurewebsites.net
TenantID = 'tenant-id-placeholder' # Replace with your actual Tenant ID
}
Set-CIPPAPIDetails @CIPPAPIParams
@kris6673
kris6673 / Enable-DisabledUsers.ps1
Last active February 3, 2026 16:24
Script to reenable the disabled guest users that were disabled
# Enable-DisabledUsers.ps1
[CmdletBinding()]
param()
# Configuration
$CIPPClientID = '' # Your CIPP API Client ID
$CIPPClientSecret = '' # Your CIPP API Client Secret
$CIPPAPIUrl = '' # Your CIPP API URL
$TenantID = '' # Your Tenant ID