Skip to content

Instantly share code, notes, and snippets.

View jkavanagh58's full-sized avatar

John J Kavanagh jkavanagh58

View GitHub Profile
"PS Custom Object": {
"prefix": "pscustom",
"body": [
"$$obj = [pscustomobject]@{",
"\tFieldName = FieldValue;",
"}"
],
"description": "Skeleton for adding a PowerShell Custom Object"
},
# Qualified Function for unlocking an AD account
function unlock-anaccount {
<#
.SYNOPSIS
Used to unlock an AD account
.DESCRIPTION
Using the provided logon name this function will attempt to unlock the AD account.
.PARAMETER logonName
This value should match the User Account samAccountName aka User Logon Name from AD Users and Computers.
.EXAMPLE