Skip to content

Instantly share code, notes, and snippets.

@alirobe
alirobe / reclaimWindows10.ps1
Last active March 5, 2025 06:27
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@daxian-dbw
daxian-dbw / AnalyzeSelectObject.ps1
Last active January 25, 2025 15:14
AnalyzeSelectObject.ps1: analyze usage of 'Select-Object' to find cases like 'Select-Object -ExcludeProperty value1 -ExpandProperty value2'. SearchGitHub.psm1: search powershell code in GitHub
using namespace System.Management.Automation.Language
param([string]$Path)
$Path = Resolve-Path $Path | % Path
function AnalyzeSelectObjectUsage
{
param(
[Parameter(ValueFromPipelineByPropertyName)]
@jsecurity101
jsecurity101 / ProtectionChecks.ps1
Last active February 22, 2025 02:34
Powershell script that will pull whether a process or service is running as protected (PPL).
#Author: Jonthan Johnson (@jsecurity101)
if (-not ('ProtectedObjects.ProcessNativeMethods' -as [Type])) {
$TypeDef = @'
using System;
using System.Runtime.InteropServices;
namespace ProtectedObjects {
[Flags]
public enum ProcessAccess {