Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
💭
I may be slow to respond.

Shane Hoey shanehoey

💭
I may be slow to respond.
View GitHub Profile
@shanehoey
shanehoey / New-SelfSignedCert.ps1
Last active September 10, 2023 10:17
Self Signed Certificates
View New-SelfSignedCert.ps1
[CmdletBinding()]
param (
[Parameter(mandatory=$true)]
[string]$cn,
[Parameter(mandatory=$false)]
[string]$san,
[Parameter(mandatory=$false)]
[string]$ip,
[Parameter(mandatory=$false)]
[string]$pfx = ".\cert.pfx",
@shanehoey
shanehoey / readme.md
Created January 21, 2023 04:57
Certificates
View readme.md
@shanehoey
shanehoey / new-adforest.md
Last active January 21, 2023 04:56
New AD Forest
View new-adforest.md

New AdForest

$servername =       "dc01"
$domainname =       "example.com"
$netbios    =       "example"
$ipaddress =        "192.168.10.248"
$prefixlenght =     "24"
$defaultgateway =   "192.168.10.254"
@shanehoey
shanehoey / github.http
Last active August 22, 2022 07:25
github api
View github.http
@owner = shanehoey
@repository = shanehoey
@token = {{ $processEnv GITHUBtoken }}
### Check rate limit
get https://api.github.com/rate_limit
Accept: application/vnd.github+json
Authorization: token {{token}}
### get user
@shanehoey
shanehoey / directrouting.ps1
Last active May 23, 2022 10:59
Direct Routing Audit
View directrouting.ps1
# Display
Get-CsOnlinePSTNGateway | Select-Object * | Format-list
Get-CsOnlinePstnUsage | Select-Object * | Format-list
Get-CsOnlineVoiceRoute | Select-Object * | Format-list
Get-CsOnlineVoiceRoutingPolicy| Select-Object * | Format-list
Get-CsVoiceRoutingPolicy | Select-Object * | Format-list
Get-CsTenantDialPlan | Select-Object * | Format-list
@shanehoey
shanehoey / brandX.md
Last active May 14, 2022 03:34
Snooey Theme syntax files
View brandX.md