Skip to content

Instantly share code, notes, and snippets.

View boydfields's full-sized avatar

Boyd Fields boydfields

View GitHub Profile
@gerhart01
gerhart01 / CIPolicyParser.ps1
Created May 14, 2026 13:52
CIPolicyParser with Windows Server 2025 and Windows 11 support
<#
.SYNOPSIS
Parser for Windows Code Integrity (WDAC) binary policy files.
License: BSD 3-Clause
.DESCRIPTION
CIPolicyParser.ps1 is a library script: it defines the functions used to
@burakc
burakc / disableServices.ps1
Last active June 26, 2026 13:49 — forked from iamjonny/disableServices.ps1
Script to disable unnecesary Windows services and improve the performance.
# Open PowerShell as an Administrator
# Type Set-ExecutionPolicy Unrestricted
# Press Enter
# Type A
# Run the PowerShell script
# Once finished, type Set-ExecutionPolicy Restricted
# Press Enter
# Type Exit
# NOTE: It is extremely important to set the Execution Policy back to Restricted once you are finished running the scripts.
# How to run: ./disableServices.ps1
@SMSAgentSoftware
SMSAgentSoftware / Check-SecureBootCerts.ps1
Last active May 27, 2026 18:55
PowerShell script to check whether the SecureBoot databases contain updated certificates
#Requires -RunAsAdministrator
# Function to read Secure Boot databases (db, KEK, PK, dbx) and parse entries
# Thanks to Chat-GPT 5
function Read-SecureBootDatabase {
[CmdletBinding()]
param(
[ValidateSet('db','KEK','PK','dbx')]
[string]$DatabaseName = 'db',
@WitherOrNot
WitherOrNot / tspkgen.py
Last active August 3, 2026 04:34
Terminal Services License Server ID + License Key Pack generator
from Crypto.Cipher import ARC4
from hashlib import sha1, md5
from random import randint
from ecutils.core import Point, EllipticCurve
from sys import argv
KCHARS = "BCDFGHJKMPQRTVWXY2346789"
SPK_ECKEY = {
"a": 1,
@mariusrueve
mariusrueve / FocusBorder.ahk
Last active January 26, 2026 14:23
AHK Active Window Rounded Border (Win11 24H2)
; ================================
; Active Window Rounded Border Overlay
; For Windows 11 (24H2)
; Runs continuously in the background.
; Adjust the border color, thickness, and corner roundness below.
; ================================
#NoEnv
#SingleInstance, Force
#Persistent
@ThioJoe
ThioJoe / Get_All_Shell_Folder_Shortcuts.ps1
Last active April 12, 2025 09:48
Fetches all shell folders from Windows Registry and creates a shortcut to each, while attempting to determine the proper name and icon. Also outputs CSV file with results.
# NOTE - THIS SCRIPT IS NOW OBSOLETE - SEE MY OTHER REPO FOR A MUCH MORE COMPREHENSIVE TOOL: https://github.com/ThioJoe/Windows-Super-God-Mode
# Get All Shell Folder Shortcuts Script (Updated 8/10/2024)
# Original source: https://gist.github.com/ThioJoe/16eac0ea7d586c4edba41b454b58b225
# This PowerShell script is designed to find and create shortcuts for all special shell folders in Windows.
# These folders can be identified through their unique Class Identifiers (CLSIDs) or by their names.
# The script also generates CSV files listing these folders and associated tasks/links.
# How to Use:
# 1. Open PowerShell and navigate to the path containing this script using the 'cd' command.
@stil
stil / ProxmoxAutoType.js
Last active January 23, 2025 14:42
Auto type in noVNC (Proxmox)
(async () => {
const text = prompt("Enter text to type:");
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const input = document.getElementById("noVNC_keyboardinput");
const keydown = (key) => input.dispatchEvent(new KeyboardEvent("keydown", { key }));
for (let i = 0; i < text.length; i++) { keydown(text[i]); await sleep(50); }
})();

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter:
@dbilanoski
dbilanoski / windows11-ms-settings-uri-commands.csv
Last active August 5, 2026 14:38
Complete List Of Windows 11 MS-Settings URI Commands
Category Settings Page URI Command
Accounts Access work or school ms-settings:workplace
Accounts Email & app accounts ms-settings:emailandaccounts
Accounts Family & other people ms-settings:otherusers
Accounts Set up a kiosk ms-settings:assignedaccess
Accounts Sign-in options ms-settings:signinoptions
Accounts Sync your settings ms-settings:sync
Accounts Windows Hello setup ms-settings:signinoptions-launchfaceenrollment
Accounts Your info ms-settings:yourinfo
Apps Apps & Features ms-settings:appsfeatures
@ThioJoe
ThioJoe / DisableUSBPowerManagement.ps1
Last active June 26, 2026 19:00
PowerShell script to disable Windows power management on all currently connected serial ports, including most (if not all) USB devices and adapters.
# PowerShell script to disable Windows power management on all currently connected serial ports, including USB adapters
# In simpler terms, it prevents Windows from turning off connected serial devices to save power.
# Equivalent to right-clicking on a serial port device in Device Manager > Properties > "Power Management" Tab > Unchecking "Allow the computer to turn off this device to save power."
$hubs = Get-CimInstance -ClassName Win32_SerialPort | Select-Object Name, DeviceID, Description
$powerMgmt = Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi
foreach ($p in $powerMgmt) {
$IN = $p.InstanceName.ToUpper()
foreach ($h in $hubs) {