Skip to content

Latest commit

Β 

History

History
596 lines (410 loc) Β· 13.6 KB

File metadata and controls

596 lines (410 loc) Β· 13.6 KB
title The IT Admin's Troubleshooting Toolkit
layout default

🧰 The IT Admin's Troubleshooting Toolkit

Practical Fixes, Diagnostics & Recovery for Windows Systems

πŸ—‘οΈ Your Swiss Army Knife of IT Diagnostics & Fixes You’ll Actually Use

A comprehensive reference for system troubleshooting and repair tools, processes, and diagnostics.


πŸ› οΈ Safe Mode & Uninstalling Programs

  • Boot into Safe Mode via msconfig or Shift + Restart.
  • Enable Windows Installer in Safe Mode to uninstall apps:
    REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
    net start msiserver

πŸ”„ Windows Update Troubleshooting & Repair

  • Run built-in and downloadable troubleshooters
  • Reset Windows Update components
  • Use DISM and sfc for image and file repair
  • Cleanup superseded components

πŸš€ Startup Programs & Autoruns

  • View startup programs in Task Manager, shell:startup, registry
  • Use autoruns.exe for deep analysis
  • Can be run via \live.sysinternals.com\tools\autoruns.exe

🌐 Network Diagnostics & Winsock Reset

netsh winsock reset
netsh int ip reset
ipconfig /flushdns

πŸ“Ά Wi-Fi SSID & Password Discovery

netsh wlan show profile name="SSID" key=clear

🌍 External IP Address Discovery

curl ifconfig.me

🏬 Microsoft Store & Winget Repair

wsreset.exe
winget upgrade --all --accept-source-agreements --accept-package-agreements

🧼 Clean Up Superseded Components (WinSxS)

DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase

πŸ› οΈ System File Checker and DISM

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

🧩 Windows Apps, Search, DLLs, In-Place Repair

  • Re-register apps and DLLs
  • Rebuild search index
  • Use Setup.exe for in-place repair

🐧🍎 Linux and macOS Integrity Tools

  • fsck, debsums, diskutil, csrutil status
  • SMART diagnostics with smartctl

πŸ†” UUID, GUID, and MAC Address Retrieval

Get-CimInstance -Class Win32_ComputerSystemProduct | Select UUID
Get-NetAdapter | Select Name, MacAddress
[guid]::NewGuid()

🧰 Sysinternals Tools

  • autoruns, tcpview, procexp, procmon
  • Run from \live.sysinternals.com\tools\<tool>.exe

🧠 Microsoft Troubleshooters & MSDT Tools

  • SaRA: https://aka.ms/SaRA
  • msdt.exe /id <DiagnosticID>
    • Examples:
      • ActivationDiagnostic
      • WindowsUpdateDiagnostic
      • PrinterDiagnostic

πŸ“ Problem Steps Recorder (PSR)

psr.exe /start /output "C:\Temp\steps.zip" /gui no
psr.exe /stop

πŸ•’ System Clock Test & Fix

Symptoms of Incorrect System Time:

  • Can't connect to HTTPS websites
  • Windows Update fails
  • Microsoft 365 apps sign-in errors
  • Email/calendar sync issues

Check time:

w32tm /query /status
w32tm /query /configuration

Force sync with time server:

w32tm /resync

Set time server manually:

w32tm /config /manualpeerlist:"time.windows.com,0x1" /syncfromflags:manual /update
net stop w32time
net start w32time

Use https://time.gov to compare visually.


πŸ“‹ More coming soon...


β™Ώ Accessibility Features Triggered by Keyboard Shortcuts

Sometimes users accidentally enable these features by holding keys too long or pressing repeatedly.

Feature What It Does Shortcut Key
Sticky Keys Press modifier keys (Shift, Ctrl, Alt, Windows) one at a time instead of holding Press Shift 5 times
Filter Keys Ignores brief/repeated keystrokes Hold Right Shift for 8 seconds
Toggle Keys Plays sound when Caps Lock, Num Lock, or Scroll Lock is pressed Hold Num Lock for 5 seconds
High Contrast Switches to high-contrast color scheme Left Alt + Left Shift + Print Screen
Magnifier Opens screen magnifier Windows + Plus (+)
Narrator Starts screen reader Ctrl + Windows + Enter
On-Screen Keyboard Opens virtual keyboard Windows + Ctrl + O
Color Filters Enables color filters Windows + Ctrl + C

You can disable shortcut prompts in Settings β†’ Accessibility β†’ Keyboard.



πŸ–₯️ PowerShell Essentials & Common Fixes

βœ… Running Unsigned Scripts

  • Temporarily allow in session:

    Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
  • Allow for current user:

    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
  • Check current policy:

    Get-ExecutionPolicy -List

βœ… Common Errors & Fixes

  • "Cannot be loaded because running scripts is disabled" β†’ Fix with execution policy above.

  • Module not found:

    Install-Module -Name ModuleName -Scope CurrentUser
    Import-Module ModuleName
  • Untrusted Repository Warning:

    Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

βœ… Other Essential PowerShell Commands

  • List running processes:

    Get-Process
  • Get system info:

    Get-ComputerInfo
  • List services:

    Get-Service | Where-Object { $_.Status -eq 'Running' }
  • Restart a service:

    Restart-Service -Name 'wuauserv'
  • Export command output to file:

    Get-Process | Out-File -FilePath C:\Temp\processlist.txt
  • Test network connectivity:

    Test-NetConnection www.google.com


πŸ–±οΈπŸ–₯️ Using a Computer Without a Mouse or Keyboard

βœ… If the Mouse is Not Working

  • Keyboard Shortcuts to Navigate:

    • Alt + Tab: Switch between open windows
    • Alt + F4: Close current window
    • Windows + X: Open power user menu
    • Ctrl + Esc or Windows key: Open Start Menu
    • Tab and Arrow keys: Navigate within UI
    • Enter: Select an item
    • Shift + F10: Right-click equivalent
  • Enable Mouse Keys (Control Cursor with Numpad):

    1. Press Alt + Left Shift + Num Lock
    2. Confirm prompt to turn on Mouse Keys
    3. Use the numeric keypad to move the pointer
  • On-Screen Keyboard:

    • Launch with Windows + Ctrl + O
    • Navigate using arrow keys and Enter to type

βœ… If the Keyboard is Not Working

  • On-Screen Keyboard (OSK):

    • If a mouse works, navigate to:
      • Start β†’ Settings β†’ Accessibility β†’ Keyboard β†’ Turn on On-Screen Keyboard
    • Or run:
      osk.exe
  • Touchscreen Devices:

    • Use on-screen touch keyboard if available
  • Speech Recognition:

    • Start Speech Recognition:
      control /name Microsoft.SpeechRecognition
    • Or use Windows + H to enable dictation
  • Remote Access Tools:

    • Connect from another device using Remote Desktop, TeamViewer, or similar

βœ… General Tips

  • BIOS/UEFI Settings: Some systems require enabling legacy USB support for keyboards/mice.
  • Try Different USB Ports: Prefer back panel ports for keyboards (direct chipset connection).
  • Test with Bootable USB: Verify hardware works outside of Windows (e.g., Linux live CD).


πŸ”’ SSL/TLS Protocol Mismatches – Testing & Fixing

βœ… Common Symptoms

  • "Cannot establish a secure connection"
  • "ERR_SSL_VERSION_OR_CIPHER_MISMATCH" (in browsers)
  • Remote Desktop, SMTP, or VPN TLS errors
  • Event Viewer logs Schannel errors (Event ID 36887)

βœ… Causes

  • Client/server use incompatible TLS versions
  • Older OS lacks modern protocols (TLS 1.2, TLS 1.3)
  • Disabled protocols via registry or group policy
  • Outdated applications with hardcoded old TLS versions

βœ… Testing TLS Connectivity

  • Use PowerShell:

    Test-NetConnection example.com -Port 443
  • Use OpenSSL (Linux/macOS/Windows with OpenSSL):

    openssl s_client -connect example.com:443 -tls1_2

βœ… Fixes

  • Enable TLS 1.2/1.3 via registry (Windows):

    reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" /v Enabled /t REG_DWORD /d 1 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server" /v Enabled /t REG_DWORD /d 1 /f
  • Check Group Policies:

    • Computer Configuration β†’ Administrative Templates β†’ Network β†’ SSL Configuration Settings
  • Update apps and libraries (e.g., curl, OpenSSL, browsers)



πŸ›‘οΈ Browser & System Certificate Issues

βœ… Common Symptoms

  • Browser shows "Your connection is not private" (NET::ERR_CERT_AUTHORITY_INVALID)
  • Expired certificates cause connection failures
  • Third-party root certificates silently injected (security risk)

βœ… Viewing Certificates

  • Windows:

    • certmgr.msc (Current User Certificates)
    • mmc.exe β†’ Add/Remove Snap-in β†’ Certificates (Local Computer)
  • PowerShell:

    Get-ChildItem -Path Cert:\LocalMachine\Root
  • macOS:

    • Applications β†’ Utilities β†’ Keychain Access
  • Linux:

    • System store: /etc/ssl/certs/
    • CA bundle files: /etc/ca-certificates.conf
    • Commands:
      update-ca-certificates
      openssl x509 -in cert.pem -text -noout

βœ… Detecting Unwanted Certificates

βœ… Fixing & Resetting Trusted Certificates

  • Windows:

    • Use Windows Update to refresh root certificates.
    • Manually delete suspicious certs in certmgr.msc.
    • Re-import from trusted sources if needed.
  • macOS:

    • Delete unwanted certs in Keychain.
    • System updates refresh system CA store.
  • Linux:

    • Update CA certificates:
      sudo update-ca-certificates

βœ… Browser-Specific Certificate Stores

  • Firefox: Uses its own certificate store (independent of OS)
    • Preferences β†’ Privacy & Security β†’ View Certificates
  • Chrome, Edge, Safari: Use OS-level certificate stores


πŸ†• Bringing a Fresh Windows Install Fully Up to Date (Commands & Best Practices)

βœ… Recommended Method: PSWindowsUpdate Module

  1. Install the module:

    Install-Module PSWindowsUpdate -Force -Scope CurrentUser
    Import-Module PSWindowsUpdate
  2. Download and install all critical and security updates:

    Get-WindowsUpdate -Install -AcceptAll -AutoReboot
  • Accepts all applicable updates and reboots if required.

βœ… Alternative: Built-in Windows Update Client (UsoClient)

Run the following commands in sequence:

UsoClient StartScan
UsoClient StartDownload
UsoClient StartInstall
UsoClient RestartDevice

Note: Provides limited feedback but works for simple update triggers.


βœ… For Enterprises (Recommended for IT Admins)

  • Windows Update for Business policies
  • Microsoft Endpoint Configuration Manager (MEMCM/SCCM)
  • Intune Update Rings
  • WSUS (Windows Server Update Services)

βœ… Optional Post-Update Cleanup

After applying all updates, run:

DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
  • Reduces disk space by cleaning up superseded updates.
  • Prevents rolling back removed update versions.

βœ… Windows Update Assistant (GUI)

For feature updates and major cumulative rollups:



⚠️ Deprecated Windows Features & How to Re-enable Them

Sometimes legacy devices or applications require older protocols or features that are disabled by default in modern Windows versions.

βœ… SMBv1 (Server Message Block v1)

Warning: SMBv1 is deprecated and insecure. Only enable if absolutely necessary.

  • Enable via Windows Features (GUI):

    • Control Panel β†’ Programs and Features β†’ Turn Windows features on or off
    • Check "SMB 1.0/CIFS File Sharing Support"
  • Enable via PowerShell:

    Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -NoRestart
  • Disable after migration:

    Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -NoRestart

βœ… Internet Explorer Mode (for Legacy Web Apps)

  • IE is deprecated, but Edge has "IE Mode" for legacy apps.
  • Enable via Group Policy:
    • Computer Configuration β†’ Administrative Templates β†’ Microsoft Edge β†’ Configure Internet Explorer integration β†’ Enable

βœ… Telnet Client

Enable-WindowsOptionalFeature -Online -FeatureName TelnetClient
  • Useful for simple TCP port tests with legacy devices.

βœ… DirectPlay (Old Games Support)

Enable-WindowsOptionalFeature -Online -FeatureName DirectPlay -NoRestart

βœ… SNMP (Simple Network Management Protocol)

Add-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"
  • Required by many legacy network printers and monitoring tools.

βœ… Legacy Windows Photo Viewer

Re-enable registry entries to use classic Windows Photo Viewer in Windows 10/11.

  • Guides available online; involves file association changes.

βœ… Other Deprecated Components

  • XPS Viewer:

    Add-WindowsCapability -Online -Name "XPS.Viewer~~~~0.0.1.0"
  • Windows Media Player (optional in some editions):

    Enable-WindowsOptionalFeature -Online -FeatureName WindowsMediaPlayer

πŸ“ Reminder:

Always disable deprecated features after use, or isolate devices needing them for security.