Skip to content

Instantly share code, notes, and snippets.

clock speed
solar flares
electromagnetic radiation from satellite debris
static from nylon underwear
static from plastic slide rules
global warming
poor power conditioning
static buildup
doppler effect
hardware stress fractures
# ================ Windows Updates ================
# Restrict Windows Update P2P only on the local network
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" -Name "Config" -EA SilentlyContinue
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" -Name "Start" -Type DWord -Value 0 -Force -EA SilentlyContinue
# Do not show me the Windows welcome experience after updates and occasionally
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Type DWord "SubscribedContent-310093Enabled" -Value 0 -Force -EA SilentlyContinue
# Turn off featured SOFTWARE notifications through Windows Update
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Type DWord "EnableFeaturedSoftware" -Value 0 -Force -EA SilentlyContinue
# Delivery Optimization Settings
### Define Title
$host.ui.RawUI.WindowTitle = "Rules of Acquisition"
# Vendor information Template
$VendorLine_1 = "For support with $Vendor1 software, contact:"
$VendorLine_2 = "Vendor 1"
$VendorLine_3 = "vendor1@vendor1support.com"
$VendorLine_4 = "vendor website information"
$VendorLine_5 = "1 (800) 342 0652 "
find_fiLe () {
for i in *;do
if
[[ "$i" == *"${q}"* ]];then
echo "${i}"
fi
done
}
# store within the variable the file that you are attempting to look for
string_replacement () {
for i in *;do
if
[[ "$i" == *"${k}"* ]];then
rename "s/${k}/${l}/g" "$i"
fi
done
}
# replace anything in the k variable with anything in the l variable
@Chromulent
Chromulent / Windows 10 Optimization Script.ps1
Created February 7, 2022 16:26
Windows 10 Optimization Script
##########
# Win10 Optimization Script With Extra GPD Win Tweaks
# Adapted version of https://github.com/Disassembler0/Win10-Initial-Setup-Script by Disassembler <disassembler@dasm.cz>
# Author: BlackDragonBE
# Version: v2.2.1 (2017-12-02)
# Copied from https://www.reddit.com/r/gpdwin/comments/6ipa6c/windows_10_optimization_script_for_gpd_win/
##########
# As a workaround for disabled script execution, run this command (without #) in an elevated PowerShell windows first and choose "all" if you're asked where to apply this:
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
@Chromulent
Chromulent / Windows 10 Optimization Script.ps1
Created February 7, 2022 16:26
Windows 10 Optimization Script
##########
# Win10 Optimization Script With Extra GPD Win Tweaks
# Adapted version of https://github.com/Disassembler0/Win10-Initial-Setup-Script by Disassembler <disassembler@dasm.cz>
# Author: BlackDragonBE
# Version: v2.2.1 (2017-12-02)
# Copied from https://www.reddit.com/r/gpdwin/comments/6ipa6c/windows_10_optimization_script_for_gpd_win/
##########
# As a workaround for disabled script execution, run this command (without #) in an elevated PowerShell windows first and choose "all" if you're asked where to apply this:
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass