I hereby claim:
- I am banterboy on github.
- I am lukeleigh (https://keybase.io/lukeleigh) on keybase.
- I have a public key ASDtkLpfa19ylVA7cUgFDXSqwo7cScFxbEWP786RCZsIvAo
To claim this, I am signing this object:
function Get-PatchTue { | |
<# | |
.SYNOPSIS | |
Get the Patch Tuesday of a month | |
.PARAMETER month | |
The month to check | |
.PARAMETER year | |
The year to check | |
.EXAMPLE | |
Get-PatchTue -month 6 -year 2015 |
I hereby claim:
To claim this, I am signing this object:
$IPs = New-Object System.Collections.ArrayList | |
$IPs.AddRange( | |
( | |
"64.4.250.33", | |
"64.4.250.32", | |
"23.43.65.124", | |
"23.195.132.187", | |
"52.23.120.130", | |
"52.20.68.174", |
Get-ADGroupMember -Identity Administrators -Recursive | | |
ForEach-Object { get-aduser $_} | | |
Select-Object SamAccountName, GivenName, Surname, objectclass, name, enabled | | |
Sort-Object SamAccountName | | |
Format-Table -AutoSize |
$p = @(Get-Process -Name *) | |
$p | Select-Object -Property MainWindowTitle | Where-Object { $_.MainWindowTitle -match "\w+" } |
Clear-Host | |
$DaysPast = Read-Host "Enter Number of Days" | |
$Start = (Get-Date).AddDays(-$DaysPast) | |
$Path = Read-Host "Enter Search Path" | |
$Extenstion = Read-Host "Enter Extenstion" | |
Clear-Host | |
$Stopwatch = [system.diagnostics.stopwatch]::startNew() | |
Get-ChildItem -Path $Path -Include $Extenstion -Recurse | | |
Where-Object { $_.LastWriteTime -ge "$Start" } | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$PwnedSite = "https://haveibeenpwned.com/api/v2/breachedaccount/" | |
$PwnedAddress = Read-Host "Email Address" | |
Invoke-RestMethod -Uri ($PwnedSite + $PwnedAddress) -OutVariable Pwned |