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
# By adding a credential parameter to my function I broke it and couldn't spot the fault for 10 mintues | |
# Rookie Mistake. Beware poor try/catch use. | |
try { | |
# Grab the events from a remote computer | |
$EventLog = Get-WinEvent -ComputerName $ComputerName -FilterHashtable -Credential:$Credential @{ | |
Logname = 'Security'; | |
Id = 4624; | |
StartTime = $StartDay.toShortDateString(); | |
EndTime = $StopDay.toShortDateString(); | |
} -ErrorAction Stop |
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
#Remove-MailQueueObjects.ps1 | |
Param( | |
$Path = "D:\tst", | |
$pattern = "TextString", | |
$filter = "*.eml" | |
} | |
Get-ChildItem -Recurse -Path $Path -File -Filter $filter | | |
where { | |
get-content $psitem.fullname -ReadCount 0 | |
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
$ get-date -OutVariable sd "6/2/2017 03:58" | |
06 February 2017 03:58:00 | |
$ $sd | gm | |
TypeName: System.DateTime | |
Name MemberType Definition |
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
/** | |
Moves github header to the top right. mouseover to see the search. | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Specify the domain name to be `github.com`. | |
4. Add a title and save. | |
*/ | |
.header[role="banner"] { |
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
jbennett $ $b | |
Username LogonTime ComputerName | |
-------- --------- ------------ | |
usera 17/05/2016 14:16:15 U0xPC17 | |
userb 17/05/2016 10:14:33 U0xPC17 | |
userc 17/05/2016 09:22:08 U0xPC17 | |
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
C:\f\src\music | |
Jack > git filter-branch -f --env-filter ' | |
>> if [ "$GIT_COMMITTER_NAME" = "Jack Bennett" ]; | |
>> then | |
>> GIT_COMMITTER_NAME="JackBennett"; | |
>> GIT_AUTHOR_NAME="JackBennett"; | |
>> fi | |
>> | |
>> if [ "$GIT_AUTHOR_NAME" = "Jack Bennett" ]; | |
>> then |
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
<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><P | |
rovider Name='PowerShell'/><EventID Qualifiers='0'>800</EventID><Level>4</Level | |
><Task>8</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='20 | |
15-09-18T13:37:43.000000000Z'/><EventRecordID>256</EventRecordID><Channel>Windo | |
ws PowerShell</Channel><Computer>U05PC02.BHS.INTERNAL</Computer><Security/></Sy | |
stem><EventData><Data>get-item .\test</Data><Data> DetailSequence=1 | |
DetailTotal=1 | |
SequenceNumber=29 |
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
pick 3189f68 Test relative links to subfolder in README | |
s 946106b Relative links to subfolder project in README | |
# Rebase 43130f3..946106b onto 43130f3 (2 command(s)) | |
# | |
# Commands: | |
# p, pick = use commit | |
# r, reword = use commit, but edit the commit message | |
# e, edit = use commit, but stop for amending | |
# s, squash = use commit, but meld into previous commit |
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
SSC Lootlist | |
x3 Inert Bacteriophage | |
x3 Pattern Conversion Device | |
x1 Virus Programming: Bacteriophage M73 | |
x1 Virus Programming: Bacteriophage Phi X 3957 | |
x1 Virus Programming: Bacteriophage F9 | |
x1 Red Data Crystal |
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
$dir | |
<# | |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
-a--- 4/22/2015 8:41 AM 1067 unameA - Shortcut.lnk | |
-a--- 4/22/2015 8:35 AM 1060 unameB - Shortcut.lnk | |
-a--- 4/22/2015 8:39 AM 1067 unameC - Shortcut.lnk | |
-a--- 4/22/2015 8:40 AM 1060 unameD - Shortcut.lnk | |
#> |