This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"PS Custom Object": { | |
"prefix": "pscustom", | |
"body": [ | |
"$$obj = [pscustomobject]@{", | |
"\tFieldName = FieldValue;", | |
"}" | |
], | |
"description": "Skeleton for adding a PowerShell Custom Object" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder