Skip to content

Instantly share code, notes, and snippets.

View diogocatossi's full-sized avatar
🎯
Focusing

Diogo Catossi diogocatossi

🎯
Focusing
View GitHub Profile
@SMSAgentSoftware
SMSAgentSoftware / New-ADSiteAndSubnetChangeReport.ps1
Created February 11, 2019 18:36
Sends an email report with any changes made to Active Directory Sites and Subnets. Run regularly with automation.
######################################################################################
## ##
## This script compares the current list of AD sites and subnets with a cached list ##
## If anything has changed, the cached list will be updated and the changes emailed ##
## ##
######################################################################################
################
## PARAMETERS ##
@mklement0
mklement0 / Test-WinCredential.ps1
Last active April 18, 2024 01:33
Test-WinCredential: PowerShell function for validating Windows domain / local user credentials.
<#
Prerequisites: Windows PowerShell 5.1, PowerShell (Core) (v6+) - MAY work in earlier versions
License: MIT
Author: Michael Klement <mklement0@gmail.com>
DOWNLOAD and INSTANT DEFINITION OF THE FUNCTION:
irm https://gist.github.com/mklement0/83e8e6a2b39ecec7b0a14a8e631769ce/raw/Test-WinCredential.ps1 | iex