This file contains 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
<# | |
This is comprised of 3 functions: | |
1. Get-Sessions: Get Session information from WMI. | |
Reused some code from https://github.com/tmmtsmith/Powershell/blob/master/Get-LoggedOnUsers.ps1 for the regex matching | |
2. Return-SessionTickets: Retrieves Kerberos Session Tickets. This is a klist wrapper to return PSCustomObjects | |
This code is mostly all from the GetKerbTix.ps1 script in the Technet Script Center | |
https://gallery.technet.microsoft.com/scriptcenter/List-All-Cached-Kerberos-5ba41829 |
This file contains 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
<# | |
.SYNOPSIS | |
Get-ADPasswordExpiration is used to easily retrieve active directory password expiration | |
time using the calculated attribute msDS-UserPasswordExpiryTimeComputed | |
Requires ActiveDirectory PowerShell module | |
.PARAMETER Username | |
Username, Samaccountname or DistinguishedName of the accounts required. | |
This file contains 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
function Get-GroupMembers | |
{ | |
param ( | |
[Parameter( | |
Position = 0, | |
ValueFromPipeline = $true, | |
ValueFromPipelineByPropertyName = $true, | |
ValueFromRemainingArguments = $false | |
)] | |
[ValidateNotNullOrEmpty()] |