Skip to content

Instantly share code, notes, and snippets.

@datavudeja
datavudeja / PSInfo.md
Created October 21, 2025 13:20 — forked from Computer-Tsu/PSInfo.md
PowerShell Profiles

Comments

# Comment line

<#
comment block
#>

Function Help Comments

@datavudeja
datavudeja / Windows-Print Screen.md
Created October 21, 2025 13:20 — forked from Computer-Tsu/Windows-Print Screen.md
Windows registry key settings to customize Screen shots

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
DWORD | ScreenshotIndex =

Hot key for Snipping Tool

Windows 11, Settings, Accessibility > Keyboard
Use the Print Screen to open screen capture
On

@datavudeja
datavudeja / Windows System Restore.md
Created October 21, 2025 13:19 — forked from Computer-Tsu/Windows System Restore.md
Script and CLI (command line) for Microsoft Windows System Restore (Protection) Points

Get-ChildItem -Attributes hidden "\System Volume Information"

Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($_.creationtime)}} Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($.creationtime)}} Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, ` @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($.creationtime)}}

Enable-ComputerRestore -Drive "c:"

@datavudeja
datavudeja / Symbols.md
Created October 21, 2025 13:19 — forked from Computer-Tsu/Symbols.md
Using special characters and symbols in documentation

How to write special characters in a variety of documentation forms.
Examples are Arrow keys, copyright, trademark, degrees (temperature or latitude/longitude)

  • MarkDown
  • GitHub
  • Microsoft Word
  • HTML
  • Unicode
  • Fonts
@datavudeja
datavudeja / .UUID-GUID.md
Created October 21, 2025 13:18 — forked from Computer-Tsu/.UUID-GUID.md
Working with UUID, GUID, MAC addresses

UUID and GUID

IT techs that use imaging/deployment and/or DHCP/PXE will often be working with a computer's GUID, UUID, or MAC address. For example, you have received a shipment of new desktops and are preloading your Windows Active Directory with the new computer names in the desired OU. You will then be ready to boot them and have the new computers network PXE and start installing your company base image. The packaging gives you the UUID but you need to provide the GUID to the computer proerties in AD.

Some tools to help convert back and forth between the different formats.

Example:
WFLGNVLAB01
UUID: 457A9480-E7BE-11E2-9C6A-8851FB69DFA3
GUID: 80947A45-BEE7-E211-9C6A-8851FB69DFA3

@datavudeja
datavudeja / Convert Error Code.md
Created October 21, 2025 13:17 — forked from Computer-Tsu/Convert Error Code.md
HowTo Converting Windows application Installer error codes numbers return results
Error Code Dec Error Code Error String Description
0x00000000 -4294967296 Success
0x0000007B -4294967173 Error_Invalid_Name The filename, directory incorrect

calc.exe
Menu, Programmer
[Hex] 0x7B
[Dec] 123

@datavudeja
datavudeja / Batch.bat
Created October 21, 2025 13:16 — forked from Computer-Tsu/Batch.bat
optional first lines for batch scripts
PUSHD %~dp0
SET DateString=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
REISUB - the gentle Linux restart
According to Lifehacker a frozen Linux system that's not responding to the Ctrl-Alt-Delete three-finger-salute can be restarted more safely than by pushing the power button, which is usually the next step.
Holding down Alt and SysRq (which is the Print Screen key) while slowly typing REISUB will get you safely restarted. REISUO will do a shutdown rather than a restart.
Sounds like either an April Fools joke or some very strange magic akin to the old BIOS beeps we used to use to diagnose PC faults so bad that nothing would boot. Wikipedia comes to the rescue with an in-depth listing of all the SysRq keys.
R: Switch the keyboard from raw mode to XLATE mode
E: Send the SIGTERM signal to all processes except init
@datavudeja
datavudeja / 15s_clip.bat
Created October 21, 2025 13:07 — forked from dmertl/15s_clip.bat
Windows FFmpeg Droppable Batch Files
:again
if "%~1" == "" GOTO done
ffmpeg.exe -i "%~1" -t 00:00:15 "%~n1_clip%~x1"
SHIFT
GOTO again
:done
@datavudeja
datavudeja / CompactWSL.bat
Created October 21, 2025 13:07 — forked from Csqhi515/CompactWSL.bat
Script to help compact WSL and vhdx.
@echo off
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
wsl sudo fstrim --all; echo "Exit status: $?";