Skip to content

Instantly share code, notes, and snippets.

@daxian-dbw
daxian-dbw / AnalyzeSelectObject.ps1
Last active November 11, 2023 19: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)]
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 26, 2024 17:59
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
###
###