Skip to content

Instantly share code, notes, and snippets.

AveYo / .. MediaCreationTool.bat
Last active December 2, 2023 03:18
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO
View .. MediaCreationTool.bat
AveYo / . steam_overlay_clear.bat
Last active November 26, 2023 21:32
Steam minimal resource usage after removal of -no-browser & -vgui options. Enter script in powershell then use Steam_min shortcut on Desktop instead
View . steam_overlay_clear.bat
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & timeout /t 7 & exit /b
$found = $false; $utf8 = new-object Text.UTF8Encoding $false
$userdata = join-path (gp HKCU:\SOFTWARE\Valve\Steam SteamPath -ea 0).SteamPath 'userdata'; pushd $userdata;
dir -rec -file localconfig.vdf |% {
$cfg = $_; $data = [io.file]::ReadAllLines($cfg, $utf8); $ok = $true
if (($data |% {$_ -like '*OverlaySavedData*'}) -notcontains $true) { echo "$cfg : no steam overlay saved data"; $ok = $false }
if ($ok) { if (get-process -name Steam -ea 0) { start -wait "$(split-path $userdata)\Steam.exe" -args '-shutdown' } }
AveYo / .FreeStandbyMemory.bat
Last active November 23, 2023 21:16
FreeStandbyMemory.bat - ninja edits at
View .FreeStandbyMemory.bat
/* 2>nul || title FreeStandbyMemory.bat by AveYo v2019.06.01
@echo off|| csc compiling snippet, advanced schedule, builtin add_remove - UPDATE: reliable free memory detection
:: check_admin_rights
reg query "HKEY_USERS\S-1-5-20\Environment" /v TEMP >nul 2>nul || (
color 0e & echo. & echo PERMISSION DENIED! Right-click %~nx0 ^& Run as administrator
AveYo / . Pitch Black Theme.reg
Last active November 18, 2023 06:18
Pitch Black Theme.reg - now for Ctrl+Alt+Del (and logon on 11) as well - revised 2022-06-16
View . Pitch Black Theme.reg
Windows Registry Editor Version 5.00
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11)
; revised 2022-06-16: show active taskbar button in accent color
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10
AveYo / 7-Zip_Windows11.reg
Last active November 11, 2023 16:12
7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
View 7-Zip_Windows11.reg
Windows Registry Editor Version 5.00
; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
; Add to archive.. only single files (multiple would need a single instance redirect tool)
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
AveYo / Take_Ownership_Advanced_Context_Menu.reg
Created August 14, 2018 13:44
View Take_Ownership_Advanced_Context_Menu.reg
Windows Registry Editor Version 5.00
; Take_Ownership_Advanced_Context_Menu.reg by AveYo v2018-07-19
; =================================================================================================================================
; GAIN ACCESS: Inherit from parent: YES, Owner = current user, Owner Rights = Modify
; GAIN EXCLUSIVE ACCESS: Inherit from parent: NO, Owner = current user, Owner Rights = FullControl
; USERS GAIN EXCLUSIVE ACCESS FOR NEW FILES: Inherit from parent: NO, Owner = Authenticated Users, Owner Rights = FullControl
; CLEAR GAINED ACCESS: Inherit from parent: YES, Owner = Inherited or Administrators, Authenticated Users = Inherited or Modify
; =================================================================================================================================
; Single context menu entry added for files, folders (except C:\Windows etc.) and drives (except C:) with the 4 choices above
AveYo / @ batch scripts for power
Last active September 2, 2023 05:59
Windows batch scripts for power users
View @ batch scripts for power

windows_update_toggle.bat v10.1 final
~ one script to rule them all!
~ block build upgrades and/or automatic updates without breawking Store downloads and Defender protection updates
~ there is a lot of focus on Defender updates working independently, unlike any other updates "management" solution
~ ifeo safe blocking with no destructive changes of ownership, deleting files, removing tasks, or over-blocking
~ toggle everything from the Desktop right-click context menu!
but wait, there is more:
~ hide/unhide/install update lists with counter at the Desktop right-click context menu!

Previous update toggle batch suite scripts have been overwritten on pastebin, but will still be available here:

AveYo / multiple_gui_choices.bat
Last active August 22, 2023 22:08
Simple GUI helpers for batch files
View multiple_gui_choices.bat
@echo off &title Multiple GUI choices via powershell snippet by AveYo &rem preview:
:: setup gui dialog choices
set all_choices=Option 1,Option 2,Option 3,Option4,Option5
set def_choices=Option 1,Option 2,Option5
:: Show gui dialog choices 1=title 2=all_choices 3=def_choices 4=output_variable
call :choices "Multiple GUI choices" "%all_choices%" "%def_choices%" CHOICES
:: Quit if no choice selected
if not defined CHOICES color 0c &echo ERROR! No choice selected.. &timeout /t 20 &color 07 &exit/b
:: Print choices
echo Choices: %CHOICES% & echo.
AveYo / Windows 10 PitchBlack mid.xaml
Created July 31, 2023 06:55
Retrobar Windows 10 PitchBlack (wip)
View Windows 10 PitchBlack mid.xaml
<!-- Windows 10 PitchBlack center by AveYo -->
<Style x:Key="TaskListWrapPanel" TargetType="WrapPanel">
AveYo / ..runasTI.bat
Last active July 4, 2023 22:37
Lean and Mean runas TrustedInstaller / System compact snippet to easily integrate in your batch scripts
View ..runasTI.bat
@echo off& title RunAsTI - lean and mean snippet by AveYo, 2018-2022
goto :nfo
- innovative HKCU load, no need for reg load / unload ping-pong; programs get the user profile
- sets ownership privileges, high priority, and explorer support; get System if TI unavailable
- accepts special characters in paths for which default run as administrator fails
- adds Send to - RunAsTI right-click menu entry to launch files and folders as TI via explorer
- First copy-paste RunAsTI snippet after .bat script content
- Then call it anywhere to launch programs with arguments as TI