Skip to content

Instantly share code, notes, and snippets.

@Computer-Tsu
Computer-Tsu / Cron-MacOS.md
Created January 9, 2025 19:42
Using cron in Mac OS

Apple is disabling cron (crontab) on Mac OS X and later.

@Computer-Tsu
Computer-Tsu / PSInfo.md
Last active October 21, 2025 13:20
PowerShell Profiles

Comments

# Comment line

<#
comment block
#>

Function Help Comments

@Computer-Tsu
Computer-Tsu / Windows-Print Screen.md
Last active October 21, 2025 13:20
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

@Computer-Tsu
Computer-Tsu / Exp-Classic.cmd
Last active September 4, 2024 12:10
Win11 Classic Explorer
REM Requires Windows 11. Launch File Explorer with the Windows 10 style interface.
C:\WINDOWS\explorer.exe /factory.{5BD95610-9434-43C2-886C-57852CC8A120} -Embedding
@Computer-Tsu
Computer-Tsu / Windows System Restore.md
Last active October 21, 2025 13:19
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:"

@Computer-Tsu
Computer-Tsu / Windows Experience Index.md
Last active September 2, 2024 23:22
WEI rates the overall performance of your PC using the WinSPRLevel score. This score is based on the individual ratings of your hardware, including the CPU, memory, graphics card, and primary hard drive.

Get-CimInstance Win32_WinSat

Windows PowerShell, does not need to be Admin


winsat.exe formal

Windows System Assessment Tool

@Computer-Tsu
Computer-Tsu / Symbols.md
Last active October 21, 2025 13:19
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
@Computer-Tsu
Computer-Tsu / .UUID-GUID.md
Last active October 21, 2025 13:18
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

@Computer-Tsu
Computer-Tsu / Sonar-PING.ps1
Created September 2, 2024 18:29
Monitor server or IP with audible bell when offline
$Server = Read-Host "Enter server name to monitor by sonar"
$x = 0
Write-Host "Pinging $Server by sonar . . . "
Write-Host "(Press Ctrl-C to break out of sonar loop.)"
do
{ $x = $x + 1
if (Test-Connection -count 1 -quiet -computer $Server)
{
[console]::beep(500,600)
Start-Sleep -s 2
@Computer-Tsu
Computer-Tsu / RDP Keyboard Shortcuts.md
Created September 2, 2024 17:43
Microsoft Remote Desktop Services shortcut key combinations

Remote Desktop Services Shortcut Keys

The following is a list of the Microsoft Remote Desktop Services shortcut keys.

Shortcut key Description
CTRL+ALT+END Brings up the Windows Security dialog box.
CTRL+ALT+BREAK Switches the client between full-screen mode and window mode.
ALT+HOME Displays the Start menu.
ALT+DELETE Displays the Windows menu.