Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| function Get-KerberosTicketGrantingTicket | |
| { | |
| <# | |
| .SYNOPSIS | |
| Gets the Kerberos Tickets Granting Tickets from all Logon Sessions | |
| .DESCRIPTION | |
| Get-KerberosTicketGrantingTicket uses the Local Security Authority (LSA) functions to enumerate Kerberos logon sessions and return their associate Kerberos Ticket Granting Tickets. |
| function Compare-XmlDocs($actual, $expected) { | |
| if ($actual.Name -ne $expected.Name) { | |
| throw "Actual name not same as expected: actual=" + $actual.Name | |
| } | |
| ##attributes... | |
| if ($actual.Attributes.Count -ne $expected.Attributes.Count) { | |
| throw "attribute mismatch for actual=" + $actual.Name | |
| } | |
| for ($i=0;$i -lt $expected.Attributes.Count; $i =$i+1) { |
| #Make new CSV File | |
| $CSVFileName = "\\networkshare\folder\filename.csv" | |
| "CSV,Header,With,Well,Named,Data,Columns" > $CSVFileName | |
| $Timestamp = get-date -format o | |
| #Log file | |
| $LogFileName = "\\networkshare\folder\logfile_$Timestamp.log" | |
| #Function to do stuff with IP address |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of