01 Help Desk & BreakfixFirst-level help desk, triage, escalation, symptom fixes, Windows and Mac repair, Office, printing, and handy tools
Apps / Taskbar / AppX
SafeInventory
Get-AppxPackage Microsoft.Windows.StartMenuExperienceHost Get-AppxProvisionedPackage -Online | select DisplayName,PackageName
AppX/provisioned-package cmdlets diagnose Start menu, taskbar, and built-in-app problems tied to a corrupted or missing package.
Get-AppxPackage — Microsoft Learn ↗ Add-AppxPackage — Microsoft Learn ↗ MSIX/AppX deployment overview — Microsoft Learn ↗ Checked Jul 2026Minor changeRepair / remove
Get-AppxProvisionedPackage -Online | ? DisplayName -like "*AppName*" | Remove-AppxProvisionedPackage -Online
Get-AppxPackage Microsoft.Windows.Photos | % {
Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"
}Removing a provisioned package doesn't remove an existing user install.
Re-registering re-links an installed app's manifest to the current user profile — the standard fix for a broken built-in Windows app.
Add-AppxPackage — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ MSIX/AppX deployment overview — Microsoft Learn ↗ Checked Jul 2026Big changeRe-register all current-user AppX
Get-AppxPackage | % {
Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" -ErrorAction SilentlyContinue
}Can be noisy — not the first choice.
Bulk re-registration touches every AppX package for the current user — noisy and usually not the first thing to try.
Add-AppxPackage — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ MSIX/AppX deployment overview — Microsoft Learn ↗ Checked Jul 2026Start menu or taskbar broken after an update
- Identify the affected package, e.g.
Get-AppxPackage Microsoft.Windows.StartMenuExperienceHost. - Re-register just that package for the current user.
- Restart explorer.exe (or sign out/in) to reload the shell.
- If it persists, re-register all current-user AppX as a last resort.
New profile missing a provisioned app
- Check what's provisioned for new profiles:
Get-AppxProvisionedPackage -Online. - Re-provision the missing package if it was removed.
- Confirm the app appears the next time a new profile is created.
Blue Screen or Random Reboots
ProcessBlue Screen or Random Reboots
- Get the exact stop code from the blue screen if the user caught it, or pull it from the event log afterward.
- Ask about the pattern — under load (gaming, video calls), at random idle times, or right after waking from sleep?
- Check Reliability History and the System event log for BugCheck events around the reported times.
- Rule out a recent driver or Windows update installed right before the symptoms started.
- Run a memory diagnostic if the pattern is random and unexplained — bad RAM is a common silent cause.
Escalate when: the pattern correlates with a specific driver — try updating or rolling that driver back first; if it persists after that, it's a hardware dispatch, not a driver issue.
The exact stop code and the reliability history timeline are what actually narrow this down — guessing before checking those wastes the most time.
Get-WinEvent — Microsoft Learn ↗Stop error troubleshooting — Microsoft Learn ↗ Bug check code reference — Microsoft Learn ↗ Checked Jul 2026Blue screen with a stop code
- Note the stop code and any file name shown.
- Boot normally or into Safe Mode and check Event Viewer and the crash dump.
- Roll back recent drivers or updates.
- Run
sfc /scannowandDISM /Online /Cleanup-Image /RestoreHealth. - Test memory and disk if it keeps happening.
Random reboots with no blue screen
- Check Event Viewer for Kernel-Power 41.
- Check temperatures, power, and dust.
- Disable automatic restart to see the error.
- Update BIOS and drivers.
Can't Print
ProcessCan't Print
- Ask which printer, and whether it worked yesterday — this narrows a new problem from a longstanding one.
- Confirm the printer itself is powered on and shows no error on its own display.
- Ask if it's one user or several people printing to the same device.One user → check their PC's own print queue first.Several users → the problem is more likely the printer or print server, not any one PC.
- Have the user check for a stuck job in their own queue before touching the server.
- If the queue is clear but nothing prints, check network reachability to the printer's IP.
Escalate when: the printer's own display shows a paper jam or error but staff says it's physically clear — that's a sensor fault, treat it as a hardware ticket rather than continuing software troubleshooting.
Single-user vs. multi-user is the fork in the road for whether the PC or the print server is the actual problem.
Print troubleshooting — Microsoft Learn ↗PrintManagement module — Microsoft Learn ↗ Test-NetConnection — Microsoft Learn ↗ Checked Jul 2026One user cannot print
- Confirm the right printer is selected and online.
- Clear the queue and restart the spooler.
- Remove and re-add the printer.
Nobody can print
- Check the print server or printer power and network.
- Restart the spooler on the server.
- Check the driver and recent updates.
CLI Tools
ProcessCLI Tools — Shells
- GNU Bash ↗ — is an sh-compatible shell that incorporates useful features from the Korn shell and C shell
- Zsh ↗ — is a shell designed for interactive use, although it is also a powerful scripting language
- tclsh ↗ — is a very powerful cross-platform shell, suitable for a huge range of uses
- bash-it ↗ — is a framework for using, developing and maintaining shell scripts and custom commands
- Oh My ZSH! ↗ — is the best framework for managing your Zsh configuration
- Oh My Fish ↗ — the Fishshell framework
- Starship ↗ — the cross-shell prompt written in Rust
- powerlevel10k ↗ — is a fast reimplementation of Powerlevel9k ZSH theme
Section "Shells" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ GNU Bash ↗ Checked Jul 2026ProcessCLI Tools — Shell plugins
- z ↗ — tracks the folder you use the most and allow you to jump, without having to type the whole path
- fzf ↗ — is a general-purpose command-line fuzzy finder
- zsh-autosuggestions ↗ — Fish-like autosuggestions for Zsh
- zsh-syntax-highlighting ↗ — Fish shell like syntax highlighting for Zsh
- Awesome ZSH Plugins ↗ — A list of frameworks, plugins, themes and tutorials for ZSH
Section "Shell plugins" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ z ↗ Checked Jul 2026ProcessCLI Tools — Managers
- Midnight Commander ↗ — is a visual file manager, licensed under GNU General Public License
- ranger ↗ — is a VIM-inspired filemanager for the console
- nnn ↗ — is a tiny, lightning fast, feature-packed file manager
- screen ↗ — is a full-screen window manager that multiplexes a physical terminal
- tmux ↗ — is a terminal multiplexer, lets you switch easily between several programs in one terminal
- tmux-cssh ↗ — is a tool to set comfortable and easy to use functionality tmux-sessions
Section "Managers" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ Midnight Commander ↗ Checked Jul 2026ProcessCLI Tools — Text editors
- vi ↗ — is one of the most common text editors on Unix
- vim ↗ — is a highly configurable text editor
- emacs ↗ — is an extensible, customizable, free/libre text editor, and more
- micro ↗ — is a modern and intuitive terminal-based text editor
- neovim ↗ — is a free open source, powerful, extensible and usable code editor
- spacemacs ↗ — a community-driven Emacs distribution
- spacevim ↗ — a community-driven vim distribution
Section "Text editors" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ vi ↗ Checked Jul 2026ProcessCLI Tools — Files and directories
- fd ↗ — is a simple, fast and user-friendly alternative to find
- ncdu ↗ — is an easy to use, fast disk usage analyzer
Section "Files and directories" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ fd ↗ Checked Jul 2026ProcessCLI Tools — Network
- PuTTY ↗ — is an SSH and telnet client, developed originally by Simon Tatham
- Mosh ↗ — is a SSH wrapper designed to keep a SSH session alive over a volatile connection
- Eternal Terminal ↗ — enables mouse-scrolling and tmux commands inside the SSH session
- nmap ↗ — is a free and open source (license) utility for network discovery and security auditing
- zmap ↗ — is a fast single packet network scanner designed for Internet-wide network surveys
- Rust Scan ↗ — to find all open ports faster than Nmap
- masscan ↗ — is the fastest Internet port scanner, spews SYN packets asynchronously
- pbscan ↗ — is a faster and more efficient stateless SYN scanner and banner grabber
- hping ↗ — is a command-line oriented TCP/IP packet assembler/analyzer
- mtr ↗ — is a tool that combines the functionality of the 'traceroute' and 'ping' programs in a single tool
- mylg ↗ — utility which combines the functions of the different network probes in one diagnostic tool
- netcat ↗ — utility which reads and writes data across network connections, using the TCP/IP protocol
- socat ↗ — utility which transfers data between two objects
- tcpdump ↗ — is a powerful command-line packet analyzer
- tshark ↗ — is a tool that allows us to dump and analyze network traffic (wireshark cli)
- Termshark ↗ — is a simple terminal user-interface for tshark
- ngrep ↗ — is like GNU grep applied to the network layer
- netsniff-ng ↗ — is a Swiss army knife for your daily Linux network plumbing if you will
- sockdump ↗ — dump unix domain socket traffic
- stenographer ↗ — is a packet capture solution which aims to quickly spool all packets to disk
- tcpterm ↗ — visualize packets in TUI
- bmon ↗ — is a monitoring and debugging tool to capture networking related statistics and prepare them visually
- iptraf-ng ↗ — is a console-based network monitoring program for Linux that displays information about IP traffic
- vnstat ↗ — is a network traffic monitor for Linux and BSD
- iPerf3 ↗ — is a tool for active measurements of the maximum achievable bandwidth on IP networks
- ethr ↗ — is a Network Performance Measurement Tool for TCP, UDP & HTTP
- Etherate ↗ — is a Linux CLI based Ethernet and MPLS traffic testing tool
- echoip ↗ — is a IP address lookup service
- Nemesis ↗ — packet manipulation CLI tool; craft and inject packets of several protocols
- packetfu ↗ — a mid-level packet manipulation library for Ruby
- Scapy ↗ — packet manipulation library; forge, send, decode, capture packets of a wide number of protocols
- impacket ↗ — is a collection of Python classes for working with network protocols
- ssh-audit ↗ — is a tool for SSH server auditing
- aria2 ↗ — is a lightweight multi-protocol & multi-source command-line download utility
- iptables-tracer ↗ — observe the path of packets through the iptables chains
- inception ↗ — a highly configurable tool to check for whatever you like against any number of hosts
- mRemoteNG ↗ — a fork of mRemote, multi-tabbed PuTTy on steroids!
Section "Network" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ PuTTY ↗ Checked Jul 2026ProcessCLI Tools — Network (DNS)
- dnsdiag ↗ — is a DNS diagnostics and performance measurement tools
- fierce ↗ — is a DNS reconnaissance tool for locating non-contiguous IP space
- subfinder ↗ — is a subdomain discovery tool that discovers valid subdomains for websites
- sublist3r ↗ — is a fast subdomains enumeration tool for penetration testers
- amass ↗ — is tool that obtains subdomain names by scraping data sources, crawling web archives, and more
- namebench ↗ — provides personalized DNS server recommendations based on your browsing history
- massdns ↗ — is a high-performance DNS stub resolver for bulk lookups and reconnaissance
- knock ↗ — is a tool to enumerate subdomains on a target domain through a wordlist
- dnsperf ↗ — DNS performance testing tools
- dnscrypt-proxy 2 ↗ — a flexible DNS proxy, with support for encrypted DNS protocols
- dnsdbq ↗ — API client providing access to passive DNS database systems
- grimd ↗ — fast dns proxy, built to black-hole internet advertisements and malware servers
- dnstwist ↗ — detect typosquatters, phishing attacks, fraud, and brand impersonation
Section "Network (DNS)" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ dnsdiag ↗ Checked Jul 2026ProcessCLI Tools — Network (HTTP)
- curl ↗ — is a command line tool and library for transferring data with URLs
- kurly ↗ — is an alternative to the widely popular curl program, written in Golang
- HTTPie ↗ — is an user-friendly HTTP client
- wuzz ↗ — is an interactive cli tool for HTTP inspection
- h2spec ↗ — is a conformance testing tool for HTTP/2 implementation
- h2t ↗ — is a simple tool to help sysadmins to hardening their websites
- htrace.sh ↗ — is a simple Swiss Army knife for http/https troubleshooting and profiling
- httpstat ↗ — is a tool that visualizes curl statistics in a way of beauty and clarity
- httplab ↗ — is an interactive web server
- Lynx ↗ — is a text browser for the World Wide Web
- Browsh ↗ — is a fully interactive, real-time, and modern text-based browser
- HeadlessBrowsers ↗ — a list of (almost) all headless web browsers in existence
- ab ↗ — is a single-threaded command line tool for measuring the performance of HTTP web servers
- siege ↗ — is an http load testing and benchmarking utility
- wrk ↗ — is a modern HTTP benchmarking tool capable of generating significant load
- wrk2 ↗ — is a constant throughput, correct latency recording variant of wrk
- vegeta ↗ — is a constant throughput, correct latency recording variant of wrk
- bombardier ↗ — is a fast cross-platform HTTP benchmarking tool written in Go
- gobench ↗ — http/https load testing and benchmarking tool
- hey ↗ — HTTP load generator, ApacheBench (ab) replacement, formerly known as rakyll/boom
- boom ↗ — is a script you can use to quickly smoke-test your web app deployment
- SlowHTTPTest ↗ — is a tool that simulates some Application Layer Denial of Service attacks by prolonging HTTP
- gobuster ↗ — is a free and open source directory/file & DNS busting tool written in Go
- ssllabs-scan ↗ — command-line reference-implementation client for SSL Labs APIs
- http-observatory ↗ — Mozilla HTTP Observatory cli version
- Hurl ↗ — is a command line tool to run and test HTTP requests with plain text
Section "Network (HTTP)" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ curl ↗ Checked Jul 2026ProcessCLI Tools — SSL
- openssl ↗ — is a robust, commercial-grade, and full-featured toolkit for the TLS and SSL protocols
- gnutls-cli ↗ — client program to set up a TLS connection to some other computer
- sslscan ↗ — tests SSL/TLS enabled services to discover supported cipher suites
- testssl.sh ↗ — testing TLS/SSL encryption anywhere on any port
- cipherscan ↗ — a very simple way to find out which SSL ciphersuites are supported by a target
- spiped ↗ — is a utility for creating symmetrically encrypted and authenticated pipes between socket addresses
- Certbot ↗ — is EFF's tool to obtain certs from Let's Encrypt and (optionally) auto-enable HTTPS on your server
- mkcert ↗ — simple zero-config tool to make locally trusted development certificates with any names you'd like
- certstrap ↗ — tools to bootstrap CAs, certificate requests, and signed certificates
- Sublert ↗ — is a security and reconnaissance tool to automatically monitor new subdomains
- mkchain ↗ — open source tool to help you build a valid SSL certificate chain
- ssl-cert-check ↗ — SSL Certification Expiration Checker
Section "SSL" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ openssl ↗ Checked Jul 2026ProcessCLI Tools — Security
- SELinux ↗ — provides a flexible Mandatory Access Control (MAC) system built into the Linux kernel
- AppArmor ↗ — proactively protects the operating system and applications from external or internal threats
- grapheneX ↗ — Automated System Hardening Framework
- DevSec Hardening Framework ↗ — Security + DevOps: Automatic Server Hardening
Section "Security" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ SELinux ↗ Checked Jul 2026ProcessCLI Tools — Auditing Tools
- ossec ↗ — actively monitoring all aspects of system activity with file integrity monitoring
- auditd ↗ — provides a way to track security-relevant information on your system
- Tiger ↗ — is a security tool that can be use both as a security audit and intrusion detection system
- Lynis ↗ — battle-tested security tool for systems running Linux, macOS, or Unix-based operating system
- LinEnum ↗ — scripted Local Linux Enumeration & Privilege Escalation Checks
- Rkhunter ↗ — scanner tool for Linux systems that scans backdoors, rootkits and local exploits on your systems
- PE-sieve ↗ — is a light-weight tool that helps to detect malware running on the system
- PEASS ↗ — privilege escalation tools for Windows and Linux/Unix and MacOS
Section "Auditing Tools" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ ossec ↗ Checked Jul 2026ProcessCLI Tools — System Diagnostics/Debuggers
- strace ↗ — diagnostic, debugging and instructional userspace utility for Linux
- DTrace ↗ — is a performance analysis and troubleshooting tool
- ltrace ↗ — is a library call tracer, used to trace calls made by programs to library functions
- ptrace-burrito ↗ — is a friendly wrapper around ptrace
- perf-tools ↗ — performance analysis tools based on Linux perf_events (aka perf) and ftrace
- bpftrace ↗ — high-level tracing language for Linux eBPF
- sysdig ↗ — system exploration and troubleshooting tool with first class support for containers
- Valgrind ↗ — is an instrumentation framework for building dynamic analysis tools
- gperftools ↗ — high-performance multi-threaded malloc() implementation, plus some performance analysis tools
- glances ↗ — cross-platform system monitoring tool written in Python
- htop ↗ — interactive text-mode process viewer for Unix systems. It aims to be a better 'top'
- bashtop ↗ — Linux resource monitor written in pure Bash
- nmon ↗ — a single executable for performance monitoring and data analysis
- atop ↗ — ASCII performance monitor. Includes statistics for CPU, memory, disk, swap, network, and processes
- lsof ↗ — displays in its output information about files that are opened by processes
- FlameGraph ↗ — stack trace visualizer
- lsofgraph ↗ — convert Unix lsof output to a graph showing FIFO and UNIX interprocess communication
- rr ↗ — is a lightweight tool for recording, replaying and debugging execution of applications
- Performance Co-Pilot ↗ — a system performance analysis toolkit
- hexyl ↗ — a command-line hex viewer
- Austin ↗ — Python frame stack sampler for CPython
Section "System Diagnostics/Debuggers" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ strace ↗ Checked Jul 2026ProcessCLI Tools — Log Analyzers
- angle-grinder ↗ — slice and dice log files on the command line
- lnav ↗ — log file navigator with search and automatic refresh
- GoAccess ↗ — real-time web log analyzer and interactive viewer that runs in a terminal
- ngxtop ↗ — real-time metrics for nginx server
Section "Log Analyzers" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ angle-grinder ↗ Checked Jul 2026ProcessCLI Tools — Databases
- usql ↗ — universal command-line interface for SQL databases
- pgcli ↗ — postgres CLI with autocompletion and syntax highlighting
- mycli ↗ — terminal client for MySQL with autocompletion and syntax highlighting
- litecli ↗ — SQLite CLI with autocompletion and syntax highlighting
- mssql-cli ↗ — SQL Server CLI with autocompletion and syntax highlighting
- OSQuery ↗ — is a SQL powered operating system instrumentation, monitoring, and analytics framework
- pgsync ↗ — sync data from one Postgres database to another
- iredis ↗ — a terminal client for redis with autocompletion and syntax highlighting
- SchemaCrawler ↗ — generates an E-R diagram of your database
Section "Databases" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ usql ↗ Checked Jul 2026ProcessCLI Tools — TOR
- Nipe ↗ — script to make Tor Network your default gateway
- multitor ↗ — a tool that lets you create multiple TOR instances with a load-balancing
Section "TOR" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ Nipe ↗ Checked Jul 2026ProcessCLI Tools — Messengers/IRC Clients
- Irssi ↗ — is a free open source terminal based IRC client
- WeeChat ↗ — is an extremely extensible and lightweight IRC client
Section "Messengers/IRC Clients" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ Irssi ↗ Checked Jul 2026ProcessCLI Tools — Productivity
- taskwarrior ↗ — task management system, todo list
Section "Productivity" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ taskwarrior ↗ Checked Jul 2026ProcessCLI Tools — Other
- sysadmin-util ↗ — tools for Linux/Unix sysadmins
- incron ↗ — is an inode-based filesystem notification technology
- lsyncd ↗ — synchronizes local directories with remote targets (Live Syncing Daemon)
- GRV ↗ — is a terminal based interface for viewing Git repositories
- Tig ↗ — text-mode interface for Git
- tldr ↗ — simplified and community-driven man pages
- archiver ↗ — easily create and extract .zip, .tar, .tar.gz, .tar.bz2, .tar.xz, .tar.lz4, .tar.sz, and .rar
- commander.js ↗ — minimal CLI creator in JavaScript
- gron ↗ — make JSON greppable!
- bed ↗ — binary editor written in Go
Section "Other" of the "CLI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
CLI Tools chapter ↗ Source list — GitHub ↗ sysadmin-util ↗ Checked Jul 2026Find a tool in the "CLI Tools" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Common Symptom → Fix Path
ProcessComputer won't boot / stuck at logo
- Note exactly where it stalls (logo, spinning dots, blue screen, black screen) and any error code.
- Try a hard power cycle: hold power 10s, then restart.
- Boot into WinRE / Safe Mode if it won't reach the desktop.
- From WinRE: DISM /RestoreHealth, then sfc /scannow (see Windows Repair / Updates).
- After recovery, check Reliability/System events for the root cause (see Event Logs / Crash Investigation).
- Escalate to hardware diagnostics (RAM/disk test) if repair doesn't resolve it.
This is the standard order of operations for a boot failure — cheapest, least destructive steps first, hardware diagnostics last.
Windows Recovery Environment — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026ProcessNo internet access
- Confirm the adapter has a valid IP (see Networking / DNS / VPN / Wireless).
- Test a specific known-good destination on the actual port needed.
- Check DNS resolution separately from raw connectivity.
- If Wi-Fi, check signal/auth state: netsh wlan show interfaces.
- If it's site-wide, check the firewall/Meraki uplink before assuming it's one device (see Firewalls, Cisco Meraki).
This is the fast single-device pass — if it doesn't resolve it, or you're dealing with multiple devices, escalate to "Networking issue" (Escalation Decision Trees) for DHCP/APIPA and tracert-based diagnosis.
Splitting "can I reach anything" from "does DNS work" from "is Wi-Fi authenticated" narrows a vague complaint to one specific layer fast.
Test-NetConnection — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026ProcessApp won't open or keeps crashing
- Confirm no hung process from a prior session is blocking a new launch.
- Check the Application event log for the exact crash ID and faulting module (see Event Logs / Crash Investigation).
- For Office apps, try Quick Repair then Online Repair (see Office / Outlook).
- Check for a pending update or driver conflict introduced around the same time.
- Recreate the user profile only as a last resort if it's isolated to one profile.
The faulting-module name from the crash event is usually the single fastest way to tell a corrupt install apart from a driver conflict.
Get-WinEvent — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Microsoft Support ↗ Checked Jul 2026ProcessPrinter not printing
- Check for stuck jobs and clear them (see Printers / Spooler).
- Restart the print spooler service.
- Confirm the printer/driver is actually registered and reachable on the network.
- Reinstall the printer with the correct driver if the queue keeps corrupting.
This is the fast single-printer pass — for multiple users affected or a shared print server, escalate to "Printer & print server issue" (Escalation Decision Trees).
A corrupt driver causing repeat queue jams is the single most common root cause behind "printing worked yesterday" tickets.
Print troubleshooting — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026ProcessSystem running slow
- Check CPU/RAM baseline (see Devices / Drivers / Hardware).
- Check free disk space — a nearly-full system drive is a very common slowdown cause (see VM & Storage Health).
- Check for a runaway process by CPU/working set.
- Confirm Windows Update isn't mid-install in the background.
- Check startup app load in Task Manager's Startup tab.
Disk space and startup bloat resolve more "slow computer" tickets than anything hardware-related — check those two before assuming it needs a rebuild.
Get-Process — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026ProcessCan't log in / forgot password
- Confirm lockout vs. genuinely wrong password (see Active Directory / Domain / Login).
- For AD accounts, unlock if locked out: Unlock-ADAccount.
- For a forgotten password, reset and force a change at next sign-in.
- For Entra/M365 accounts, confirm Conditional Access isn't blocking the sign-in location or device.
Lockout and "wrong password" look identical to the user but need different fixes — always confirm which one you're dealing with first.
Unlock-ADAccount — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026Ticket doesn't clearly match one of these symptoms
- Read the exact wording the user used — it often hints at which symptom category actually fits.
- Check whether more than one symptom is happening together (e.g. slow system + can't log in) — that combination can point to a shared root cause like a failing disk.
- Fall back to First-Response Triage if nothing here fits cleanly.
- If it turns out to be hardware- or vendor-specific, hand off to Escalation Decision Trees instead of continuing to guess.
Communication Systems
ProcessCall quality problems (choppy, echo, dropped calls)
- Ask: one user or many, wired or Wi-Fi, VPN or not, and what time.
- Check the headset or phone and test with another one.
- Move to wired Ethernet and close bandwidth-heavy apps.
- Check latency, jitter, and packet loss with
ping -tandpathping. - In Teams check Call Quality Dashboard / Call Analytics for that call.
- Check QoS and that required ports and endpoints are allowed through the firewall.
- If many users are affected, check the internet circuit and the voice/Teams service health.
Voice needs low latency (under ~150 ms), jitter (under ~30 ms), and packet loss (under ~1%). Most problems are Wi-Fi, VPN, or bandwidth.
Teams call quality — Microsoft Learn ↗ Prepare your network for Teams — Microsoft Learn ↗ Test-NetConnection — Microsoft Learn ↗ Checked Jul 2026SafeBasic network quality checks
ping -t gateway-or-server pathping -n server Test-NetConnection server -Port 443 nslookup server ipconfig /all
pathping shows where loss or delay starts along the path.
ProcessSet up a user for email, phone, and chat
- Create the account and mailbox, and add to the correct groups and distribution lists.
- Assign the licenses (email, Teams, phone if used).
- Assign the phone number or desk phone and test inbound and outbound calls.
- Set voicemail, greeting, and forwarding.
- Sign in on the user's PC and phone and test Teams, Outlook, and calendar.
- Document the numbers, devices, and groups in the ticket.
A standard checklist for onboarding communications.
Teams Phone — Microsoft Learn ↗ Manage Microsoft 365 users — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessEmail not flowing — quick triage
- Check Microsoft 365 / Exchange service health.
- Send a test message internally and externally.
- Run a message trace to see where it stopped.
- Check the connector, SPF/DKIM/DMARC, and any email security gateway quarantine.
- Check mailbox size and rules for the user.
- Escalate with the trace ID and time.
Finds the hop where mail stops.
Message trace — Microsoft Learn ↗ Mail flow — Microsoft Learn ↗ Test SMTP with Telnet — Microsoft Learn ↗ Checked Jul 2026ProcessConference room or headset device checks
- Confirm power and network (link light, IP address).
- Check it is signed in and updated.
- Test audio in and out and the camera.
- Check the room account and calendar.
- Reboot the device; reset only with approval.
- Record the model, serial, and location.
Fast checks for meeting room devices.
Teams Rooms — Microsoft Learn ↗ Teams devices — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026Calls are choppy
- Test with another headset and wired network.
- Run
pathpingto the service. - Check Call Quality Dashboard.
- Escalate with the data.
Computer Won't Boot
ProcessComputer Won't Boot
- Ask the caller exactly what they see — a manufacturer logo that hangs, a black screen, a blue screen, or repeated restarts.Blue screen with a stop code → get the exact code before doing anything else. It points to the specific driver or hardware subsystem at fault.
- Confirm nothing changed recently — a Windows update, a new peripheral, or a recent power outage.
- Have them try a hard power cycle: hold the power button 10 seconds, unplug (and remove a removable battery) for 30 seconds, then power on.
- If it reaches Windows Recovery Environment automatically after repeated failures, walk them through Startup Repair.
- If you have remote or physical access, run the standard repair order:
DISM /RestoreHealththensfc /scannow. - Reboot and confirm stability. Check Reliability History for repeat errors before closing the ticket.
Escalate when: it still won't boot after repair — this becomes a hardware/onsite dispatch case. Hand off to Escalation Decision Trees for the warranty-based routing.
Cheapest, least-destructive steps first — hardware diagnostics last. This mirrors the repair order used elsewhere in Windows Repair / Updates.
Windows Recovery Environment technical reference — Microsoft Learn ↗BCDEdit options — Microsoft Learn ↗ Troubleshoot startup — Microsoft Support ↗ Checked Jul 2026Stuck at logo or boot loop
- Hard power off and on; unplug peripherals.
- Boot to Windows Recovery and run Startup Repair.
- Try Safe Mode and System Restore.
- Rebuild BCD if needed.
No power or no display
- Check power cable, outlet, and battery.
- Reseat memory and cables if safe.
- Test with another monitor or cable.
- Escalate for hardware repair.
Devices / Drivers / Hardware
SafeProblem devices & drivers
Get-PnpDevice | ? Status -ne "OK" | ft FriendlyName,Class,Status,Problem -Auto pnputil /enum-devices /connected Get-CimInstance Win32_PnPSignedDriver | ? DeviceName -like "*camera*" | select DeviceName,DriverVersion,DriverProviderName,InfName Get-WinEvent -LogName Microsoft-Windows-UserPnp/DeviceInstall -MaxEvents 50 | select TimeCreated,Id,ProviderName,Message
Get-PnpDevice and pnputil are the fastest way to spot a device sitting in an error state (Problem code) before chasing driver logs.
Get-PnpDevice — Microsoft Learn ↗ powercfg command-line options — Microsoft Learn ↗ Device Manager error codes — Microsoft Learn ↗ Checked Jul 2026SafeHardware baseline
Get-CimInstance Win32_Processor | select Name,NumberOfCores,NumberOfLogicalProcessors Get-CimInstance Win32_PhysicalMemory | select Capacity,Speed,Manufacturer,PartNumber powercfg /batteryreport /output "$env:USERPROFILE\Desktop\battery-report.html" powercfg /sleepstudy /output "$env:USERPROFILE\Desktop\sleepstudy.html"
CPU/RAM inventory plus battery and modern-standby reports form the standard hardware-evidence bundle for upgrade or power complaints.
powercfg command-line options — Microsoft Learn ↗ Get-PnpDevice — Microsoft Learn ↗ Device Manager error codes — Microsoft Learn ↗ Checked Jul 2026Device shows an error (camera, dock, etc.)
- Find the problem device and error code:
Get-PnpDevice | ? Status -ne "OK". - Check the current driver version:
Get-CimInstance Win32_PnPSignedDriver. - Update or roll back the driver via Device Manager or pnputil.
- Recheck
Get-PnpDevicestatus after the driver change.
Laptop battery draining fast or not charging
- Generate a battery report:
powercfg /batteryreport. - Check design capacity vs. full-charge capacity in the report.
- If drain happens during sleep, generate a sleep study:
powercfg /sleepstudy. - Escalate to hardware replacement if battery health is significantly degraded.
Documentation (IT Glue)
ProcessFind client documentation before starting a change
- Search your documentation platform for the client's network diagram, credentials (via the secure vault), and prior related tickets.
- Confirm the documentation matches what you actually find on the system.
- Flag or update the documentation immediately if it's stale — don't leave it for later.
Stale documentation is worse than no documentation — it actively misleads the next person who trusts it.
Checking documentation first prevents a change based on an outdated network diagram or an already-rotated credential.
IT Glue API reference ↗ IT Glue help center ↗ Documentation best practices — Atlassian ↗ Checked Jul 2026ProcessKeep documentation in sync after a fix
- Update your documentation platform with any configuration changes made.
- Attach or reference the PSA ticket number for traceability.
- Note any new access or credentials created during the fix.
This is the same habit as the ticket note template above — the goal is that the next person (including future you) doesn't have to rediscover what changed.
Closing the loop between your ticketing system and your documentation platform is what keeps it trustworthy for the next incident.
IT Glue API reference ↗ IT Glue help center ↗ Documentation best practices — Atlassian ↗ Checked Jul 2026Before a change
- Find the client's existing documentation.
- Note current configuration and passwords location.
- Take a snapshot or backup if relevant.
After a change
- Update the documentation with what changed and why.
- Attach screenshots or output.
- Link the ticket.
Escalation & Documentation
ProcessWhat to capture before escalating
- Exact error text/code (screenshot, not paraphrased)
- Timestamp of first occurrence
- Steps to reproduce, if reproducible
- What's already been tried, and the result of each
- Scope: one user / one site / org-wide
- Session transcript if you ran commands: Start-Transcript
Handing this off complete the first time avoids the back-and-forth that stalls escalated tickets the most.
Escalation tickets that arrive with this checklist already filled in get resolved measurably faster than ones that require follow-up questions.
Start-Transcript — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Documentation best practices — Atlassian ↗ Checked Jul 2026ProcessWhen to escalate
- Risk of data loss if you proceed further
- Confirmed or suspected security incident (see Security Incident Response)
- Outage affecting multiple users or an entire site
- Requires vendor engagement (hardware warranty, licensed support)
- Exceeds your current access or change-authorization level
When in doubt on a security-flavored issue, escalate early — the cost of a false alarm is much lower than a missed compromise.
Clear escalation criteria reduce both under-escalation (sitting on a real incident too long) and over-escalation (routine tickets clogging a specialist queue).
Incident response overview — Microsoft Learn ↗ Start-Transcript — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessTicket note template
Symptom: <what the user reported, in their words> Scope: <one user / one site / org-wide> Steps taken: <commands run and what each showed> Result: <resolved / workaround applied / escalated> Next action: <what still needs to happen, and by whom>
A consistent structure makes tickets scannable for the next person who picks it up — including future you.
This mirrors the structure most ITSM tools (ServiceNow, Freshservice, etc.) expect for a clean resolution note.
Export-Csv — Microsoft Learn ↗ Start-Transcript — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessBillable onsite escalation (approval needed)
- Confirm the issue cannot be resolved remotely.
- Add an internal note to the ticket: billing approval needed, approver name, and the physical address.
- Assign the ticket to the supervisor and ping them in chat.
- Supervisor adds their approval note and reassigns the ticket.
- Dispatch only after the approval note is on the ticket.
- For closed projects or work orders, route to the warranty/rework path instead of opening a new billable ticket.
Generic version of an approval-gated field-service escalation. Adjust names and queues to your own PSA.
ITIL incident management — Atlassian ↗ Start-Transcript — Microsoft Learn ↗ Documentation best practices — Atlassian ↗ Checked Jul 2026Closing out a ticket that needed escalation
- Confirm you've captured everything on the "what to capture" checklist before handing off.
- Fill out the ticket note template rather than a one-line summary.
- Confirm the receiving team or vendor actually has what they need — don't just forward and disappear.
- Follow up once it's resolved to confirm the fix actually stuck.
Escalation Decision Trees
ProcessSoftware issue — supported vs. unsupported
- Check ticket history first — has this been worked before, and has a vendor already engaged?
- If it's software you support: try the least invasive fix first (clear cache, update OS/drivers).
- Check the vendor's own update/diagnostic tool before deeper troubleshooting (e.g. HP Image Assistant, Dell SupportAssist).
- Still unresolved? Open a ticket directly with Microsoft or the manufacturer.
- If it's software you don't support: contact the vendor directly rather than troubleshooting it yourself — coordinate admin access if they need it, and confirm resolution with the client before closing.
Knowing what you do and don't support up front saves time that would otherwise go into troubleshooting something outside your scope.
A clear supported/unsupported line prevents both under-delivering (giving up too early on something you should fix) and scope creep (spending hours on third-party software that isn't covered).
Microsoft 365 support resources — Microsoft Learn ↗ Print troubleshooting — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessHardware & peripheral issue
- Check for a firmware/driver update from the manufacturer first.
- Get the exact error code before assuming a diagnosis.
- For peripherals: reseat cables, check for physical damage, and swap in a known-good unit to isolate the fault.
- Power-cycle (or a full power drain) before dispatching anyone onsite.
- Escalate onsite repair/replacement based on warranty status — in-warranty goes to the manufacturer or field service, out-of-warranty needs approval first.
Isolating whether it's the device, the cable, or the port (by swapping a known-good component) is usually faster than researching the exact error code first.
Warranty status determines the entire escalation path, so confirm it early — it changes whether you're routing to the manufacturer for free or needing billing approval first.
HP Image Assistant ↗ Print troubleshooting — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessPrinter & print server issue
- Single user: ping the printer's IP, update drivers, restart the PC, and confirm the user's print codes/authorization on the device itself.
- Multiple users on one printer: reboot the printer and check its embedded web admin console for job/error logs before touching the print server.
- If it's the print server itself, restart it only with approval — it affects everyone printing through it.
- Rule out the underlying network before assuming it's the printer.
Single-user vs. multi-user is the fork in the road — it tells you whether to work the PC or the print server first. For a single user with no server involved, "Printer not printing" (Common Symptom → Fix Path) is the faster first pass.
Checking the printer's own embedded web admin console for job/error logs is often faster than guessing from symptoms alone, and works even when the print server is unreachable.
Print troubleshooting — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026ProcessNetworking issue
- Single device: ping it, check DHCP, and run a tracert to see where the path breaks.
- Rule out DNS specifically: ipconfig /flushdns, and if you run a DNS security service (e.g. Cisco Umbrella), test with it temporarily disabled to isolate the cause.
- Multiple devices: an APIPA address (169.x.x.x) points straight to a DHCP problem — check the DHCP server/scope first.
- Tracert from the DC to a known-good external IP (e.g. 8.8.8.8) — the first hop is normally the internal gateway; the second or third is typically the first external hop.
- Confirm subnet/gateway settings on the DC, and check for a firewall IP that differs from the gateway.
- ISP issue: restart the modem/firewall before opening a ticket with the carrier.
An APIPA address on multiple devices at once is one of the most reliable single signals that DHCP — not the individual devices — is the actual problem. For a quicker first pass on a single device, start with "No internet access" (Common Symptom → Fix Path) instead.
Reading tracert hop-by-hop (internal gateway, then first external hop) pinpoints whether a break is inside your network or upstream at the ISP.
tracert — Microsoft Learn ↗ Print troubleshooting — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessVM / RDP issue
- VM, single user: reboot the VM, then check for OS/VM version updates and update the user's network drivers.
- VM, multiple users: reboot the VM, check for OS/VM updates, and check host resource allocation/availability before assuming a software fault.
- RDP: verify the target address replies (ping/tracert), confirm the client is on the company network or VPN, and confirm Remote Desktop is actually enabled on the target device.
A VM problem affecting multiple users points toward the host (resources, updates) rather than any one guest OS — check host-level health before troubleshooting inside the VM.
Separating single-user from multi-user VM symptoms is the fastest way to tell a guest-OS problem apart from a host-level resource or update issue.
Restart-VM — Microsoft Learn ↗ Print troubleshooting — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026Picking the right decision tree for an ambiguous ticket
- Identify the category first — software, hardware, printer, network, or VM/RDP.
- If it spans more than one (e.g. "can't print over VPN"), work the networking tree first, since connectivity issues cascade into everything else.
- Follow the matching tree step by step rather than jumping straight to the escalation step.
- Note which path you followed in the ticket — it saves the next person from re-diagnosing from scratch.
Event Logs / Crash Investigation
SafeApp crashes & unexpected shutdowns
Get-WinEvent -FilterHashtable @{LogName="Application"; StartTime=(Get-Date).AddDays(-30)} |
? {$_.Id -in 1000,1001} | select TimeCreated,Id,ProviderName,Message
Get-WinEvent -FilterHashtable @{LogName="System"; Id=41,1074,6008; StartTime=(Get-Date).AddDays(-30)} |
select TimeCreated,Id,ProviderName,MessageEvent IDs 1000/1001 (Application) flag app crashes; System IDs 41/1074/6008 flag unexpected shutdowns and reboots.
Get-WinEvent — Microsoft Learn ↗ Export-Csv — Microsoft Learn ↗ Checked Jul 2026SafeExport evidence bundle
$ev = Get-WinEvent -FilterHashtable @{LogName="Application"; StartTime=(Get-Date).AddDays(-14)}
$ev | Export-Csv "$env:USERPROFILE\Desktop\ApplicationEvents.csv" -NoTypeInformation
Get-ScheduledTask | ? TaskName -match "backup|sync|update" | select TaskName,TaskPath,StateExporting filtered events to CSV is the standard way to attach crash/reboot evidence to a ticket.
Export-Csv — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Checked Jul 2026App keeps crashing — need root cause
- Pull crash events (IDs 1000/1001) from the Application log for the relevant window.
- Cross-reference with any Windows Update or driver install around the same time.
- Export and attach findings to the ticket.
- Escalate to the vendor with the exact faulting module from the event detail.
Machine keeps rebooting unexpectedly
- Pull System log events for IDs 41/1074/6008.
- Look for a pattern — time of day, or correlation with scheduled tasks.
- Rule out a pending update or driver crash as the trigger.
Excel & Visio Tips
ProcessExcel lookups and cleanup for support data
- Look up values:
=XLOOKUP(A2, Sheet2!A:A, Sheet2!B:B, "not found"). - Find duplicates: Conditional Formatting > Highlight Cells > Duplicate Values, or
=COUNTIF(A:A,A2)>1. - Remove spaces and hidden characters:
=TRIM(CLEAN(A2)). - Split a column: Data > Text to Columns.
- Combine/clean large exports: Data > Get Data (Power Query).
- Summarize: Insert > PivotTable.
The Excel features used most to compare exports, find duplicates, and summarize job or ticket data.
XLOOKUP — Microsoft Support ↗ Excel help — Microsoft Support ↗ Power Query — Microsoft Support ↗ Checked Jul 2026ProcessDraw a quick network or process diagram in Visio
- Open Visio and pick a Basic Network Diagram or Basic Flowchart template.
- Drag shapes onto the page and connect them with connectors.
- Label devices with name and IP, or steps with short text.
- Group by site or layer; save and export as PDF or PNG for the ticket or documentation.
Simple diagrams make handoffs and documentation clearer.
Visio support — Microsoft ↗ Excel help — Microsoft Support ↗ Power Query — Microsoft Support ↗ Checked Jul 2026SafeExcel formulas used most often
=XLOOKUP(A2,Sheet2!A:A,Sheet2!B:B,"not found")
=VLOOKUP(A2,Sheet2!A:B,2,FALSE)
=COUNTIF(A:A,A2)
=SUMIFS(C:C,A:A,"Open",B:B,">="&DATE(2026,11,1))
=TRIM(CLEAN(A2))
=TEXT(A2,"yyyy-mm-dd")
=IFERROR(B2/C2,0)
=LEN(A2)
=TEXTJOIN(",",TRUE,A2:A20)Lookup, count, sum-by-condition, and clean-up formulas for reconciling exports and building reports.
XLOOKUP — Microsoft Support ↗ Excel functions by category — Microsoft Support ↗ Excel help — Microsoft Support ↗ Checked Jul 2026ProcessWord: build a clean runbook or procedure
- Use built-in Heading styles for every section so the navigation pane and table of contents work.
- Insert a table of contents (References > Table of Contents).
- Number steps with a list style, not typed numbers.
- Use Track Changes (Review) when others will edit; accept or reject before final.
- Add screenshots with captions and keep them small; hide anything with PHI or passwords.
- Save as PDF for read-only distribution and keep the .docx as the source.
Consistent structure makes procedures easy to find, update, and review.
Word help — Microsoft Support ↗ Track changes — Microsoft Support ↗ Excel help — Microsoft Support ↗ Checked Jul 2026Compare two exports
- Clean both with TRIM/CLEAN.
- Use XLOOKUP to match on the key.
- Filter for not found.
- Review the differences.
First-Level Help Desk
ProcessTicket intake and priority
- Record who, what, when, how many affected, and the exact error.
- Set priority: P1 outage or data/security risk; P2 major function impaired; P3 single user or workaround exists; P4 request or question.
- Tell the user what to expect and when.
- Work in order of priority, then age.
- Update the ticket at each change and before you hand it off.
- Close with cause, fix, and how to prevent it.
A simple priority scheme and ticket routine.
ITIL incident management — Atlassian ↗ HDI — help desk institute ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ Checked Jul 2026ProcessVerify identity before resetting a password
- Use the approved method: call back to a number on file, manager approval, or the self-service portal.
- Never reset based only on an email or a chat message.
- Use a temporary password and force a change at next sign-in.
- Do not read passwords aloud or put them in the ticket.
- Record who was verified and how.
Password resets are a common social-engineering target, especially where PHI is stored.
HIPAA Security Rule — HHS ↗ Password guidance — NIST ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessRemote support session routine
- Get the user's permission and explain what you will do.
- Connect using the approved remote tool.
- Close or hide windows with PHI you do not need.
- Fix the problem, then confirm with the user that it works.
- Log what you changed and disconnect.
- Do not leave any remote tools or files behind.
A routine that keeps remote sessions safe and well documented.
ITIL incident management — Atlassian ↗ HIPAA Security Rule — HHS ↗ Windows remote assistance — Microsoft Support ↗ Checked Jul 2026ProcessCommon first-level checks
- Restart the app, then the computer, if they have not already.
- Check network (wired/Wi-Fi), VPN, and whether others are affected.
- Check account status (locked, expired, disabled) and password.
- Check disk space, updates, and printer/queue basics.
- Try another browser or profile for web problems.
- Search the knowledge base and past tickets.
- Escalate with notes if not solved in the time target.
Most tickets are solved by this short list.
Windows troubleshooting — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ Checked Jul 2026User cannot sign in
- Check account status (locked, expired, disabled).
- Verify identity, then reset.
- Test the sign-in with the user.
- Note the cause in the ticket.
First-Response Triage
SafeCapture a system baseline
Get-ComputerInfo | select CsName,OsName,OsVersion,WindowsProductName Get-Date
Do this before changing anything — it's the reference point for everything that follows.
A fast snapshot of what machine, OS build, and time you're dealing with, before any troubleshooting steps could change the picture.
Get-ComputerInfo — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ M365 Service Health — Microsoft Learn ↗ Checked Jul 2026SafeCapture recent errors around the report time
Get-WinEvent -FilterHashtable @{LogName="Application","System"; StartTime=(Get-Date).AddHours(-4)} |
select TimeCreated,Id,ProviderName,Message -First 50Narrow the window to just before/after the user noticed the problem — pulling the full log is noisy.
Correlating the exact error timestamp with what the user reports is often faster than reproducing the issue yourself.
Get-WinEvent — Microsoft Learn ↗ Get-ComputerInfo — Microsoft Learn ↗ M365 Service Health — Microsoft Learn ↗ Checked Jul 2026SafeCheck for recent changes
Get-HotFix | sort InstalledOn -Descending | select -First 10 gpresult /r
A recent patch, policy push, or config change is the root cause far more often than random hardware failure.
Most "it just started happening" tickets trace back to something that changed in the last 24–72 hours — check this early, not last.
gpresult — Microsoft Learn ↗ Get-ComputerInfo — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Checked Jul 2026ProcessConfirm scope — one user, one site, or org-wide
- One user -> check their account/device specifically
- One site -> check that site's firewall / Meraki uplink / ISP
- Org-wide -> check shared infrastructure: DCs, M365 service health, DNS
Scope changes the whole approach — don't dig into one laptop's config if it turns out to be a site-wide outage.
Establishing blast radius in the first two minutes prevents wasted time diagnosing a symptom instead of the actual cause.
Microsoft 365 Service Health — Microsoft Learn ↗ Get-ComputerInfo — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ Checked Jul 2026New, unfamiliar issue reported — full end-to-end triage
- Capture the baseline and exact error text before touching anything.
- Pull recent events around the reported time window.
- Check for recent patches, policy pushes, or config changes.
- Establish scope — one user, one site, or org-wide — since that determines which section of this guide to open next.
- Work the matching Common Symptom → Fix Path entry, or jump straight to the relevant platform section if the cause is already obvious.
- If unresolved after the quick-fix tier, move to Escalation & Documentation and capture evidence before handing off.
GUI Tools
ProcessGUI Tools — Terminal emulators
- Guake ↗ — is a dropdown terminal made for the GNOME desktop environment
- Terminator ↗ — is based on GNOME Terminal, useful features for sysadmins and other users
- Kitty ↗ — is a GPU based terminal emulator that supports smooth scrolling and images
- Alacritty ↗ — is a fast, cross-platform, OpenGL terminal emulator
Section "Terminal emulators" of the "GUI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
GUI Tools chapter ↗ Source list — GitHub ↗ Guake ↗ Checked Jul 2026ProcessGUI Tools — Network
- Wireshark ↗ — is the world’s foremost and widely-used network protocol analyzer
- Ettercap ↗ — is a comprehensive network monitor tool
- EtherApe ↗ — is a graphical network monitoring solution
- Packet Sender ↗ — is a networking utility for packet generation and built-in UDP/TCP/SSL client and servers
- Ostinato ↗ — is a packet crafter and traffic generator
- JMeter™ ↗ — open source software to load test functional behavior and measure performance
- locust ↗ — scalable user load testing tool written in Python
Section "Network" of the "GUI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
GUI Tools chapter ↗ Source list — GitHub ↗ Wireshark ↗ Checked Jul 2026ProcessGUI Tools — Browsers
- TOR Browser ↗ — protect your privacy and defend yourself against network surveillance and traffic analysis
Section "Browsers" of the "GUI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
GUI Tools chapter ↗ Source list — GitHub ↗ TOR Browser ↗ Checked Jul 2026ProcessGUI Tools — Password Managers
- KeePassXC ↗ — store your passwords safely and auto-type them into your everyday websites and apps
- Bitwarden ↗ — open source password manager with built-in sync
- Vaultwarden ↗ — unofficial Bitwarden compatible server written in Rust
Section "Password Managers" of the "GUI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
GUI Tools chapter ↗ Source list — GitHub ↗ KeePassXC ↗ Checked Jul 2026ProcessGUI Tools — Messengers/IRC Clients
- HexChat ↗ — is an IRC client based on XChat
- Pidgin ↗ — is an easy to use and free chat client used by millions
Section "Messengers/IRC Clients" of the "GUI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
GUI Tools chapter ↗ Source list — GitHub ↗ HexChat ↗ Checked Jul 2026ProcessGUI Tools — Messengers (end-to-end encryption)
- Signal ↗ — is an encrypted communications app
- Wire ↗ — secure messaging, file sharing, voice calls and video conferences
- TorChat ↗ — decentralized anonymous instant messenger on top of Tor Hidden Services
- Matrix ↗ — an open network for secure, decentralized, real-time communication
Section "Messengers (end-to-end encryption)" of the "GUI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
GUI Tools chapter ↗ Source list — GitHub ↗ Signal ↗ Checked Jul 2026ProcessGUI Tools — Text editors
- Sublime Text ↗ — is a lightweight, cross-platform code editor known for its speed, ease of use
- Visual Studio Code ↗ — an open-source and free source code editor developed by Microsoft
- Atom ↗ — a hackable text editor for the 21st Century
Section "Text editors" of the "GUI Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
GUI Tools chapter ↗ Source list — GitHub ↗ Sublime Text ↗ Checked Jul 2026Find a tool in the "GUI Tools" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Mac Support
ProcessmacOSOpen Terminal on a Mac
- Open Launchpad and search Terminal, or go to /Applications/Utilities/Terminal.
- Type a command (for example
ping example.com) and press Return. - Press Ctrl+C to stop a running command.
- Quit with Cmd+Q or by typing
exit.
Terminal is the built-in shell for running diagnostics on macOS.
Terminal User Guide — Apple ↗ Apple Support ↗ Apple IT training ↗ Checked Jul 2026ProcessmacOSCheck whether a Mac is MDM-managed
- Open System Settings > General > Device Management (or VPN & Device Management).
- If an MDM profile is listed, the Mac is managed.
- Open the profile to see the payloads (restrictions, Wi-Fi, certificates, etc.).
- Remove or change settings from the MDM console, not locally.
Managed Macs get their configuration pushed as payloads in a management profile.
Apple Platform Deployment ↗ Apple Support ↗ Apple IT training ↗ Checked Jul 2026ProcessmacOSFix certificate errors with Citrix on a Mac
- Download the needed root/intermediate certificates from https://certs.godaddy.com/repository.
- Install them into Keychain Access (System keychain) and trust them.
- Reinstall Citrix Workspace/Receiver from https://www.citrix.com/go/receiver.html.
- Quit Safari completely, reopen, and retry.
Missing intermediate certificates make Citrix sessions fail validation on macOS.
GoDaddy certificate repository ↗ Apple Support ↗ Apple IT training ↗ Checked Jul 2026ProcessmacOSApple support training & official resources
- Self-paced support training: https://it-training.apple.com/tutorials/support/sup001 (continue to sup510).
- Use Apple Support guides for Mac, Console, iCloud, and Setup Assistant management.
- For the Apple Device Support exam: register through the Apple certification portal, then schedule via Pearson VUE.
Reference list of official Apple learning and support material.
Apple IT training ↗ Apple Support ↗ Apple IT training ↗ Checked Jul 2026Mac has a certificate or enrollment problem
- Check Device Management for the MDM profile.
- Confirm certificates in Keychain Access.
- Reinstall the affected client app and retry.
No Internet / Can't Connect
ProcessNo Internet / Can't Connect
- Ask: is it one device, or is everyone in the office affected? This single question determines the entire rest of the call.One device → check adapter status and IP with the user directly.Everyone → check firewall/router status lights and the WAN uplink before touching any individual PC.
- Rule out DNS specifically by asking the user to try a raw IP address or a different site — if that works, it's DNS, not connectivity.
- If it's Wi-Fi, confirm they're actually on the corporate SSID and not a guest or neighboring network.
- Check whether a DNS security service (e.g. Cisco Umbrella) could be the block — test with it temporarily disabled if you can.
- For a site-wide outage, check the firewall/Meraki uplink status before opening a ticket with the carrier.
Escalate when: the outage is confirmed on the ISP side — stop troubleshooting internally, open a carrier ticket, and log the outage window for the client.
The single-vs-everyone question at the top of the call determines the entire rest of the diagnostic path.
Test-NetConnection — Microsoft Learn ↗Troubleshoot networking — Microsoft Learn ↗ ipconfig — Microsoft Learn ↗ Checked Jul 2026One device has no internet
- Check cable or Wi-Fi and the IP with
ipconfig /all. - Ping the gateway, then 8.8.8.8, then a name.
- Flush DNS and renew the IP.
- Reset the adapter or network stack if needed.
Everyone is offline
- Check the modem/firewall and ISP status.
- Check DHCP and DNS servers.
- Escalate to the ISP with the outage details.
Outlook / Email Problems
ProcessOutlook / Email Problems
- Ask exactly what's happening — not receiving mail, not sending, or a specific error message. Get the exact wording of any error.
- Confirm whether it's happening in Outlook only, or also on the web (outlook.office.com) — this tells you if it's a client problem or an account/service problem.Web works, desktop doesn't → client-side Outlook problem. Check for a hung process, then try a Quick Repair.Both broken → check Microsoft 365 Service Health first — this could be an outage, not a local fault.
- If mail isn't arriving from a specific sender, check the user's inbox rules and the tenant's spam/quarantine logs before assuming it's "just not arriving."
- Confirm resolution by having the user send and receive a real test message before closing the ticket.
Escalate when: inbox rules show signs of tampering (auto-forward/auto-delete the user didn't set up) — treat as a possible account compromise and move to Security Incident Response immediately.
Checking outlook.office.com separately from the desktop client is the fastest way to tell a client-side problem apart from a service-wide outage.
Microsoft 365 Service Health — Microsoft Learn ↗Outlook troubleshooting — Microsoft Learn ↗ Microsoft 365 troubleshooting — Microsoft Learn ↗ Checked Jul 2026Outlook will not open or is stuck
- Start Outlook in Safe Mode (
outlook.exe /safe). - Disable add-ins and check for updates.
- Create a new Outlook profile.
- Repair Office.
Cannot send or receive
- Check connection status and the account sign-in.
- Test in Outlook on the web to rule out the mailbox.
- Check mailbox size and rules.
Printers / Spooler
SafeInventory & stuck jobs
Get-Printer | ft Name,DriverName,PortName,Shared -Auto
Get-Printer | % { Get-PrintJob -PrinterName $_.Name -ErrorAction SilentlyContinue }
Get-PrinterDriver | ft Name,Manufacturer,DriverVersion -AutoThe PrintManagement module cmdlets list printers, drivers, and enumerate stuck jobs across every configured queue.
Get-Printer — Microsoft Learn ↗ Print spooler troubleshooting — Microsoft Learn ↗ Remove-PrintJob — Microsoft Learn ↗ Checked Jul 2026Minor changeClear queue / restart spooler
Get-PrintJob -PrinterName "Printer Name" | Remove-PrintJob Restart-Service Spooler -Force
Both are user-impacting — interrupts active printing.
Clearing a queue or restarting the spooler interrupts any print job in progress for that printer.
Remove-PrintJob — Microsoft Learn ↗ Print spooler troubleshooting — Microsoft Learn ↗ Get-Printer — Microsoft Learn ↗ Checked Jul 2026Minor changeClear stuck jobs by deleting spool files
Stop-Service -Name Spooler -Force Remove-Item "C:\Windows\System32\spool\PRINTERS\*" -Force Start-Service -Name Spooler
Interrupts printing for everyone using this machine or print server.
Deleting the files in the spool folder clears jobs that will not cancel from the queue. The spooler must be stopped first so the files are not locked.
Print spooler troubleshooting — Microsoft Learn ↗ Get-Printer — Microsoft Learn ↗ Remove-PrintJob — Microsoft Learn ↗ Checked Jul 2026Print jobs stuck in queue
- List stuck jobs per printer:
Get-PrintJob. - Clear the stuck job(s):
Remove-PrintJob. - If that doesn't help, restart the spooler service.
- If it recurs, check the driver — corrupt drivers are a common repeat cause.
Printer missing or can't be added
- Confirm the printer and driver are actually registered.
- Check network reachability to the print server or device IP.
- Re-add the printer, installing the matching driver if missing.
Quick Fixes Before Escalating
Minor changeRestart the affected component
Restart-Service <ServiceName> -Force
# or, for the whole machine, once other options are exhausted
Restart-ComputerRestart the smallest thing that could fix it first — a service restart before a full reboot, a reboot before a reimage.
The classic first-pass fix — genuinely resolves a large share of transient issues and costs almost nothing to try.
Restart-Service — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Microsoft Support ↗ Checked Jul 2026Minor changeClear temp files & browser cache
Remove-Item "$env:TEMP\*" -Recurse -Force -ErrorAction SilentlyContinue
Also worth doing when disk space is unexpectedly low, not just for app weirdness.
Stale temp/cache data causes a surprising share of "app is acting weird" and "site won't load right" tickets.
Remove-Item — Microsoft Learn ↗ Restart-Service — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026Minor changeFlush DNS & renew IP
ipconfig /flushdns ipconfig /release ipconfig /renew
The standard three-step reset for "sometimes it connects, sometimes it doesn't" networking complaints.
Clears a stale DNS cache and forces a fresh DHCP lease — resolves a large share of intermittent connectivity complaints.
ipconfig — Microsoft Learn ↗ Restart-Service — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026SafeRun the built-in Windows troubleshooter
Start-Process msdt.exe -ArgumentList "/id NetworkDiagnosticsNetworkAdapter"
Swap the /id for the matching pack (printer, audio, Bluetooth, etc.) — worth a shot before deeper manual diagnosis.
Windows' built-in diagnostic packs catch a meaningful share of common config-level problems automatically.
Windows troubleshooting packs — Microsoft Learn ↗ Restart-Service — Microsoft Learn ↗ Troubleshoot Windows — Microsoft Learn ↗ Checked Jul 2026Working through the quick-fix tier in order
- Try the least invasive fix first — a restart — before anything else.
- Move to cache/DNS resets if a restart doesn't clear it.
- Run the matching built-in troubleshooter if the cause is still unclear.
- If none of these clear it within a few minutes, stop guessing and escalate.
Remote Sessions / Support Evidence
SafeWho's logged in / RDP sessions
quser qwinsta Test-WSMan computername
quser/qwinsta list active sessions on a machine — check before forcing a reboot or logoff so you don't cut off someone's active work.
quser — Microsoft Learn ↗ Test-WSMan — Microsoft Learn ↗ Invoke-Command — Microsoft Learn ↗ Checked Jul 2026SafeRun a read-only remote command
Invoke-Command -ComputerName PC01 -ScriptBlock { hostname; Get-Service Spooler }Requires remoting rights (WinRM enabled on target).
Invoke-Command requires WinRM/PSRemoting enabled on the target and appropriate rights for the account running it.
Invoke-Command — Microsoft Learn ↗ Test-WSMan — Microsoft Learn ↗ quser — Microsoft Learn ↗ Checked Jul 2026Minor changeLog off a session
logoff <sessionID>
Confirm with the user first.
Forcibly logs off a session — always confirm with the user first since unsaved work will be lost.
logoff — Microsoft Learn ↗ Test-WSMan — Microsoft Learn ↗ Invoke-Command — Microsoft Learn ↗ Checked Jul 2026ProcessAdd or remove Remote Desktop users
- On the target PC, open System Properties > Remote (or Settings > System > Remote Desktop).
- Select Select users that can remotely access this PC.
- Add or Remove the user, then OK.
- Test from another machine with
mstsc.exeor the Remote Desktop app.
Only members of the Remote Desktop Users group (and administrators) can connect over RDP.
Allow access to your PC — Microsoft Learn ↗ Test-WSMan — Microsoft Learn ↗ Invoke-Command — Microsoft Learn ↗ Checked Jul 2026Can't remote into a machine
- Confirm WinRM is listening:
Test-WSMan. - Check the Remote Desktop firewall rule and service state if using RDP.
- Confirm the account has remoting rights on the target.
- Try a read-only
Invoke-Commandfirst to confirm connectivity before attempting fixes.
Need to safely end an idle/hung session
- List active sessions:
quser. - Confirm which session is actually hung versus just idle.
- Notify the user if possible, then log off:
logoff <sessionID>.
Role Overview & Daily Workflow
ProcessResponsibilities and where to find them in this guide
- First-level help desk and user issues: Breakfix and the First-Level Help Desk section.
- Organizing and safeguarding data: Compliance — HIPAA and ISO, Data safeguards, Backups.
- Install, configure, and maintain infrastructure: AIX Server Administration, Db2, Windows and network sections.
- Communication systems: Communication Systems and Exchange/Teams sections.
- Security protocols and basic security tasks: Security category.
- Scheduling and managing production jobs: ROC Maestro and Batch Jobs & Scheduling.
- Basic automation scripts: Automation Scripts and Shell Scripting.
- Monitoring production batch jobs and reporting issues: Batch Jobs & Scheduling and ROC Maestro.
- Technical queries from health plan customers: HEALTHsuite and Health Plan Basics.
A quick map from the job responsibilities to the sections of this guide.
ITIL incident management — Atlassian ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ HIPAA Security Rule — HHS ↗ Checked Jul 2026ProcessStart-of-shift checklist
- Read the handoff notes and open tickets.
- Check the Maestro board for failed, late, or held jobs.
- Check GoAnywhere for failed or missing file transfers.
- Check disk space and the error log on key AIX servers.
- Check database health: backups, tablespaces, blocking.
- Check HEALTHsuite is reachable and a test login works.
- Review security and alert emails.
- Triage the ticket queue by priority.
- Post a short status note: all clear or what needs attention.
A routine that finds problems before the business does.
conman commands — HCL Workload Automation ↗ GoAnywhere resources — Fortra ↗ IBM AIX documentation ↗ Checked Jul 2026ProcessEnd-of-shift handoff note
- What is broken or at risk, with ticket numbers.
- Jobs rerun or changed, and why.
- Anything waiting on a customer, vendor, or approval.
- Planned changes or maintenance coming up.
- Where logs and evidence are.
- Who to call and when.
A clear handoff prevents lost context between shifts.
ITIL incident management — Atlassian ↗ Incident handoffs — Atlassian ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ Checked Jul 2026ProcessFirst 90 days learning plan
- Days 1-30: learn the systems (HEALTHsuite, AIX, Db2, Maestro, GoAnywhere), the ticket process, and security rules. Shadow and take notes.
- Days 31-60: handle tickets and monitoring on your own with review; learn the runbooks and common failures.
- Days 61-90: take on small automation, recurring reports, and documentation fixes; own a process end to end.
- Keep a personal log of commands, errors, and fixes you see more than once.
A realistic way to ramp up in a systems engineering role.
ITIL incident management — Atlassian ↗ IBM AIX documentation ↗ Db2 documentation — IBM ↗ Checked Jul 2026ProcessHealth plan and IT glossary
- PHI: protected health information. TPA: third-party administrator. BPaaS: business process as a service.
- MA / MAPD: Medicare Advantage (with Part D drugs). SNP: Special Needs Plan. Medicaid managed care: state-sponsored plan run by a health plan.
- CMS: Centers for Medicare & Medicaid Services. HHS: Dept. of Health and Human Services.
- Adjudication: deciding how a claim is paid or denied. Remittance: payment explanation (835). EOB: Explanation of Benefits.
- Enrollment / eligibility: who is covered and when (834, 270/271).
- Encounter data: service records plans send to CMS or the state.
- NPI: National Provider Identifier. ICD-10 / CPT: diagnosis and procedure code sets.
- MFT: managed file transfer. SFTP: secure file transfer over SSH. PGP: file encryption.
- SPOF: single point of failure. RTO/RPO: how long to recover / how much data loss is acceptable.
Terms that come up daily when supporting health plan systems.
CMS.gov ↗ HIPAA Security Rule — HHS ↗ X12 EDI standards ↗ Checked Jul 2026First week
- Get logins and read the security rules.
- Shadow someone through the morning checklist.
- Learn the ticket tool and priorities.
- Write down every new term.
When a job is late
- Check Maestro.
- Check the file in GoAnywhere.
- Check the database load.
- Report with times.
Services / Processes / Software Removal
SafeState check
Get-Service | ? Status -eq Running | sort Name Get-Process OneDrive,Outlook -ErrorAction SilentlyContinue
Get-Service and Get-Process give the running-state baseline before restarting or killing anything.
Get-Service — Microsoft Learn ↗ winget uninstall — Microsoft Learn ↗ Service status transitions — Microsoft Learn ↗ Checked Jul 2026Minor changeRestart / stop
Restart-Service Spooler -Force Stop-Process -Name OneDrive -Force
Stop-Process risks data loss in unsaved apps.
Restart-Service is generally safe; Stop-Process -Force can lose unsaved work in the target application.
Stop-Process — Microsoft Learn ↗ Get-Service — Microsoft Learn ↗ winget uninstall — Microsoft Learn ↗ Checked Jul 2026SafeFind uninstall strings
$paths="HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*","HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" Get-ItemProperty $paths | ? DisplayName -like "*AppName*" | select DisplayName,DisplayVersion,UninstallString,QuietUninstallString winget list --name "AppName"
The Uninstall registry keys hold the exact uninstall string vendors register — winget list is a faster alternative where winget is present.
winget list — Microsoft Learn ↗ Get-Service — Microsoft Learn ↗ winget uninstall — Microsoft Learn ↗ Checked Jul 2026Big changeSilent uninstall
Start-Process "C:\Program Files\App\uninstall.exe" -ArgumentList "/S" -Wait winget uninstall --name "App Name"
Confirm the vendor's silent switch first.
Running a vendor's own silent-uninstall switch is safer than deleting files by hand — confirm the exact switch in vendor docs first.
winget uninstall — Microsoft Learn ↗ Get-Service — Microsoft Learn ↗ Service status transitions — Microsoft Learn ↗ Checked Jul 2026App won't uninstall cleanly
- Find its exact uninstall string in the registry Uninstall key.
- Try the vendor's silent switch first.
- If that fails, try
winget uninstall. - As a last resort, manually clean leftover registry/folder remnants and document what was removed.
Service won't start or crashes repeatedly
- Check current status and last error via Get-Service and the Service Control Manager event log.
- Try a manual restart:
Restart-Service -Force. - If it won't start, check the account it runs as and the permissions it needs.
- Confirm dependent services aren't also down.
Toolbox — Handy Utilities
Minor changeSystem diagnostics & monitoring
# CPU-Z — CPU/motherboard/RAM specs winget install CPUID.CPU-Z # HWMonitor — live temps, voltages, fan speeds winget install CPUID.HWMonitor # Sysinternals Suite — Process Explorer, Autoruns, and more winget install Microsoft.Sysinternals.Suite # Memtest86+ — bootable RAM stress test for BSOD/corruption issues
Memtest86+ boots from USB/CD outside the OS, so grab it from the official site rather than winget — it needs to run before Windows loads.
Process Explorer (in Sysinternals) is the single most useful upgrade over Task Manager for figuring out what a hung or resource-hogging process is actually doing.
Sysinternals Suite — Microsoft Learn ↗ Rufus official site ↗ Malwarebytes official site ↗ Checked Jul 2026Minor changeCleanup & maintenance
# CCleaner — temp file / registry cleanup winget install Piriform.CCleaner # 7-Zip — archive utility, unzips nearly everything winget install 7zip.7zip
Skip HiJackThis and Secunia PSI from older toolkits — HiJackThis is largely unmaintained now (Autoruns from Sysinternals covers the same ground better), and Secunia PSI was discontinued after Flexera's acquisition.
7-Zip's format support is broad enough that it's worth having installed by default rather than reaching for it only when a .rar or .7z file shows up.
7-Zip official site ↗ Rufus official site ↗ Malwarebytes official site ↗ Checked Jul 2026Minor changeSecurity & malware
# Malwarebytes — on-demand malware scan/removal winget install Malwarebytes.Malwarebytes # VeraCrypt — full-disk/container encryption when BitLocker isn't available winget install IDRIX.VeraCrypt # HashTab — adds file-hash checksums to the right-click Properties tab
VeraCrypt is the standard fallback when a machine lacks a TPM or the Windows edition needed for BitLocker.
HashTab is a quick way to verify a downloaded ISO or driver package hasn't been corrupted or tampered with, without needing a separate command-line tool.
Malwarebytes official site ↗ Rufus official site ↗ Sysinternals — Microsoft Learn ↗ Checked Jul 2026Minor changeDisk, imaging & virtualization
# GParted — resize/repartition drives from a live boot environment # ImgBurn — burn ISO images to disc # Rufus — make a bootable USB from an ISO winget install Rufus.Rufus # VirtualBox — free desktop virtualization winget install Oracle.VirtualBox
Always back up before repartitioning with GParted or any partitioning tool on a system you care about — it's destructive if interrupted or misconfigured.
Rufus is the fastest path from "here's an ISO" to a bootable recovery/install USB, and handles both legacy BIOS and UEFI targets.
Rufus official site ↗ Malwarebytes official site ↗ Sysinternals — Microsoft Learn ↗ Checked Jul 2026Minor changeNetwork & security testing
# Wireshark — packet capture and protocol analysis winget install WiresharkFoundation.Wireshark # Nmap — network/port scanner winget install Insecure.Nmap # Metasploit & Kali Linux — penetration-testing framework and distro
Only run Nmap/Metasploit against networks and systems you're authorized to test — unauthorized scanning can violate policy or law even with good intentions.
Wireshark is the standard tool for confirming what's actually on the wire when a networking issue can't be explained by config alone.
Wireshark official site ↗ Rufus official site ↗ Malwarebytes official site ↗ Checked Jul 2026SafeRun-box shortcuts
lusrmgr.msc # Local Users and Groups mmc # blank console to add snap-ins services.msc # Services compmgmt.msc # Computer Management (open files, shares)
Press Win+R and type any of these to open the matching admin console quickly.
Windows commands — Microsoft Learn ↗ Rufus official site ↗ Malwarebytes official site ↗ Checked Jul 2026ProcessScan with Microsoft Safety Scanner
- Download the Safety Scanner from the Microsoft page (64-bit or 32-bit to match the PC).
- Run the downloaded file and accept the license.
- Choose Full scan and let it finish.
- Review the results and remove anything found.
- Delete the tool afterwards — it expires after 10 days and should be re-downloaded fresh each time.
Safety Scanner is a free, standalone on-demand scanner for finding and removing malware. It does not replace real-time protection.
Microsoft Safety Scanner — Microsoft Learn ↗ Rufus official site ↗ Malwarebytes official site ↗ Checked Jul 2026Building a go-bag of tools before an onsite visit
- Grab a bootable USB (Rufus) with your OS install/recovery image ready to go.
- Bring diagnostic tools (CPU-Z, HWMonitor, Memtest86+) for anything hardware-suspect.
- Bring cleanup/security tools (Malwarebytes, CCleaner) for a compromised or bloated machine.
- Check that install sources are current before you leave — a stale malware definition set is nearly useless.
Windows Repair / Updates
SafeDiagnose corruption / reboot state
DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" -ErrorAction SilentlyContinue Get-CimInstance Win32_OperatingSystem | select LastBootUpTime
DISM CheckHealth is a fast flag check; RebootPending and LastBootUpTime rule out a pending update or stability issue before deeper repair.
DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ sfc — Microsoft Learn ↗ Checked Jul 2026Minor changeRepair order
DISM /Online /Cleanup-Image /RestoreHealth sfc /scannow
Run DISM RestoreHealth before SFC.
Standard Windows corruption-repair order: DISM RestoreHealth rebuilds the component store, then SFC repairs protected system files from it.
sfc — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026SafeUpdate log & reliability history
Get-WindowsUpdateLog Get-CimInstance Win32_ReliabilityRecords | sort TimeGenerated -Desc | select -First 30 TimeGenerated,SourceName,Message
Get-WindowsUpdateLog assembles the encrypted ETW update trace into a readable log on the desktop.
Windows Update log files — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026Minor changeRepair from an offline OS install image
DISM /Online /Cleanup-Image /AnalyzeComponentStore DISM /Online /Cleanup-Image /StartComponentCleanup # check what's actually in the WIM first DISM /Get-WimInfo /WimFile:D:\sources\install.wim # repair using a local ISO/USB instead of Windows Update DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:INDEX /LimitAccess
Use this when RestoreHealth fails because the machine can't reach Windows Update — point it at a matching-build install.wim from an ISO or USB instead. Match the index number to the edition via Get-WimInfo first.
AnalyzeComponentStore reports whether the component store is actually bloated before you run a cleanup; sourcing RestoreHealth from a local WIM is the standard workaround on air-gapped or update-blocked machines.
DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ sfc — Microsoft Learn ↗ Checked Jul 2026Big changeMove or rebuild the EFI system partition
diskpart
list disk
select disk X
list partition
# need 500MB-1GB unallocated space at the end of the disk first
create partition efi size=500
format quick fs=fat32 label="System"
assign letter=Z
exit
bcdboot C:\Windows /s Z: /f UEFI
bcdedit /set {bootmgr} device partition=Z:
bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
bcdeditDisable BitLocker before starting. Reboot and confirm the system boots normally before cleaning up the old EFI partition.
Rebuilds the EFI boot partition on a UEFI system — needed when the original ESP is missing, corrupted, or needs to move to make room for a repartition.
bcdboot — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026Big changeRecreate the recovery partition (WinRE)
reagentc /info # if a recovery partition already exists but is unregistered, point WinRE at it: reagentc /setreimage /path R:\Recovery\WindowsRE reagentc /enable # if the partition itself needs to be (re)created — GPT disks: diskpart select disk X select partition Y # the new/target recovery partition set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac gpt attributes=0x8000000000000001 exit
Leave at least 1GB free at the end of the disk before creating the partition. If WinRE.wim is still present under C:\Windows\System32\Recovery, you don't need to source it from install media.
reagentc /info tells you immediately whether WinRE is enabled and where it's pointed — always check this first before assuming the partition itself is the problem.
Windows Recovery Environment technical reference — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026Minor changeWindows Update button is greyed out
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate"
# set SetDisableUXWUAccess from 1 to 0, then restart the Update service or reboot
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v SetDisableUXWUAccess /t REG_DWORD /d 0 /fThis policy value is what greys out the "Check for updates" button in Settings — usually left over from a GPO that no longer applies, or a manual restriction someone forgot to remove.
A single registry value under the WindowsUpdate policy key controls whether the update UI is interactive — flipping it back to 0 restores the button without touching any other update settings.
Windows Update policy settings — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026SafeCheck or clean up the component store (WinSxS)
dism.exe /Online /Cleanup-Image /AnalyzeComponentStore dism.exe /Online /Cleanup-Image /StartComponentCleanup
Analyze first to see whether cleanup is recommended. StartComponentCleanup removes superseded update components and frees space.
Clean up the WinSxS folder — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026Minor changeRun Windows Updates from PowerShell
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted Install-Module PSWindowsUpdate Get-WindowsUpdate Install-WindowsUpdate -AcceptAll
May reboot or leave the machine pending a restart — warn the user first.
PSWindowsUpdate lists and installs updates from the shell. Using the Process scope for the execution policy avoids having to set it back afterwards.
PSWindowsUpdate — PowerShell Gallery ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026Minor changeUpdate installed apps with winget
winget upgrade winget upgrade --all
winget upgrade lists apps with newer versions; --all updates everything it can.
Minor changeRe-register the Microsoft Store
Get-AppxPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}Re-registers the Store package for all users when the Store is missing or will not open.
Add-AppxPackage — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026SafeCheck installed .NET versions
dotnet --list-sdks dotnet --list-runtimes
Lists installed .NET SDKs and runtimes so you can confirm which version an app needs.
Detect installed .NET versions — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026SafeSee what is keeping a PC awake
powercfg /requests
Shows apps and drivers currently blocking sleep or display-off.
Powercfg command-line options — Microsoft Learn ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026Big changeCrowdStrike BSOD recovery (C-00000291*.sys)
# From WinRE: Troubleshoot > Advanced options > Startup Settings > Restart # Press 6 (Safe Mode with Command Prompt) or 5 (Safe Mode with Networking) cd c:\Windows\System32\drivers\CrowdStrike del C-00000291*.sys shutdown -r -f -t 3
Have the BitLocker recovery key ready before starting.
Removes the faulty channel file that crashed Windows hosts in July 2024. A BitLocker recovery key may be requested to get into recovery.
CrowdStrike remediation hub ↗ DISM /RestoreHealth — Microsoft Learn ↗ Windows Update troubleshooting — Microsoft Learn ↗ Checked Jul 2026System unstable or corrupted after an update
- Run
DISM /CheckHealththen/ScanHealthto assess corruption. - Run
DISM /RestoreHealthto repair the component store. - Run
sfc /scannowto repair protected files from the restored store. - Reboot and check reliability history for repeat errors.
Updates stuck or failing to install
- Generate the update log:
Get-WindowsUpdateLog. - Check for a pending reboot blocking new installs.
- If updates are stuck, stop wuauserv, rename the SoftwareDistribution folder, and restart the service.
- Retry Windows Update and monitor the new log.
02 NetworkingMeraki, switching and VLANs, VPN, DNS, wireless, firewalls, Auvik topology mapping, and network data flows
Auvik & Network Topology Management
ProcessHow Auvik works (data flow)
- A lightweight collector (Windows service, OVA, Docker, or bash install) runs on the customer network.
- It discovers devices with SNMP, WMI, and ICMP, and maps connections with LLDP, CDP, and forwarding tables.
- Data goes securely to the Auvik cloud, which builds interactive maps and inventory.
- Alerts for new devices and critical changes can create tickets in your PSA.
- Device configs are backed up when added or changed, with version history and compare.
The pieces of Auvik and how data moves. Auvik is a network monitoring and topology tool commonly used by MSPs.
Auvik network discovery ↗ Auvik network mapping ↗ Auvik automated documentation ↗ Checked Jul 2026ProcessData flow — what a clean small-business topology map should show
- Every device should appear once and connect to the device above it; unexpected links can mean a loop or a rogue switch.
- Check that uplinks match the design (speed, trunk, redundancy).
- Look for unknown devices and unmanaged switches; add or remove them from the map as appropriate.
- Compare the live map to the documented diagram after every change.
- Save the diagram as evidence for audits and onboarding.
Reading a map: what normal looks like and what to question.
Network topology — Wikipedia ↗ Auvik network mapping ↗ Network design basics — Cisco ↗ Checked Jul 2026ProcessSet up Auvik for a new site
- Create the site in Auvik and download the collector for your platform.
- Install the collector on a server or VM at the site (or import the OVA).
- Enter discovery credentials: SNMP (v2c or v3), WMI/domain account, and device SSH or CLI logins where needed.
- Confirm the collector shows online and devices begin to appear in the map.
- Name and tag devices, set the device roles, and confirm each important switch and firewall is monitored (not just discovered).
- Turn on config backup and set alert recipients and PSA integration.
Use read-only SNMP credentials wherever possible and store credentials in your password manager.
A repeatable site onboarding checklist for Auvik.
Auvik support center ↗ Auvik network discovery ↗ SNMP — Wikipedia ↗ Checked Jul 2026ProcessAuvik device not showing or shown as unmanaged
- Confirm the collector is online and has network access to the device's VLAN.
- Check SNMP is enabled on the device, the community or v3 user matches, and the collector's IP is allowed.
- For Windows servers, confirm the WMI account and firewall rules.
- Check the credentials are assigned to the right site and device.
- Review the device's discovery status and errors in Auvik.
- Rerun discovery or rescan after fixing and confirm the status changes to monitored.
The usual reasons a device is discovered but not fully managed.
Auvik support center ↗ SNMP — Wikipedia ↗ Troubleshoot SNMP — Microsoft Learn ↗ Checked Jul 2026ProcessAuvik map shows wrong or missing links
- Check that LLDP or CDP is enabled on both ends of the link.
- Confirm both devices are managed and have valid credentials.
- Check for unmanaged switches in the path, which hide connections.
- Wait for a full discovery cycle after a change, then refresh the map.
- Compare to the switch's own neighbor table (
show lldp neighborsorshow cdp neighbors). - Fix the device config, not the map, when they disagree.
Maps are built from what devices report, so wrong maps usually mean device-side settings.
Auvik network mapping ↗ LLDP — Wikipedia ↗ LLDP and CDP — Cisco ↗ Checked Jul 2026SafeCheck LLDP / CDP neighbors on a switch
show lldp neighbors show lldp neighbors detail show cdp neighbors show cdp neighbors detail show interfaces status show mac address-table
Read-only show commands. Syntax varies slightly by vendor and model.
Shows what each port is connected to, which is the same data topology tools use.
LLDP — Wikipedia ↗ Auvik network mapping ↗ Cisco IOS command reference ↗ Checked Jul 2026ProcessUse Auvik for change and incident work
- Before a change: save the current map and config as the baseline.
- During: watch the map and alerts for the affected devices.
- After: compare the new config to the previous version and check the map matches the plan.
- For an outage: find the offline device on the map, check upstream devices first, then the link between them.
- Add the result and screenshots to the ticket and update the client documentation.
Turns the topology map into a troubleshooting and change-control tool.
Auvik network discovery ↗ Change management — Atlassian ↗ Auvik support center ↗ Checked Jul 2026ProcessTopology management tools and alternatives
- Auvik: cloud network discovery, maps, monitoring, and config backup for MSPs.
- Meraki Dashboard: built-in topology for Meraki-only networks.
- PRTG, SolarWinds, LogicMonitor, Zabbix: monitoring with network maps.
- NetBox: source-of-truth inventory and IP management (documentation, not discovery).
- Draw.io, Lucidchart, Visio: hand-drawn diagrams for design and documentation.
- Rule: use discovery for what exists now and diagrams for what you intended.
Choose by need: discovery and monitoring, inventory, or design drawings.
PRTG network mapping ↗ NetBox ↗ draw.io ↗ Checked Jul 2026Onboard a new network in Auvik
- Create the site and install the collector.
- Add SNMP, WMI, and device credentials.
- Confirm devices appear and are monitored.
- Turn on config backup and alerts.
A device is missing from the map
- Check the collector is online.
- Check SNMP credentials and allowed IPs.
- Check LLDP/CDP on both ends.
- Rescan and verify.
Cisco Meraki
SafeDevice status via Dashboard API
Invoke-RestMethod -Uri "https://api.meraki.com/api/v1/devices/<serial>" `
-Headers @{"X-Cisco-Meraki-API-Key"=$merakiKey}Meraki gear is managed almost entirely through the cloud dashboard/API rather than local CLI — generate the API key under your org's dashboard profile.
Returns firmware, network, and status details for a single access point, switch, or MX appliance by serial number.
Meraki Dashboard API — Cisco DevNet ↗ Get uplink statuses — Cisco DevNet ↗ Get network clients — Cisco DevNet ↗ Checked Jul 2026SafeWAN uplink status (MX)
Invoke-RestMethod -Uri "https://api.meraki.com/api/v1/organizations/<orgId>/appliance/uplink/statuses" `
-Headers @{"X-Cisco-Meraki-API-Key"=$merakiKey}Shows per-WAN-link status (WAN1/WAN2), IP, and whether it's active or failed over — the first check for a site-down ticket.
Confirms whether an MX security appliance's internet uplinks are up before assuming the problem is downstream.
Get uplink statuses — Cisco DevNet ↗ Meraki Dashboard API — Cisco DevNet ↗ Get network clients — Cisco DevNet ↗ Checked Jul 2026SafeClient connectivity list
Invoke-RestMethod -Uri "https://api.meraki.com/api/v1/networks/<networkId>/clients" `
-Headers @{"X-Cisco-Meraki-API-Key"=$merakiKey}Lists every client seen on a network with signal, usage, and last-seen data — useful for confirming a device actually associated to Wi-Fi.
Good starting point for "is this device even reaching our network" before digging into firewall or DHCP issues.
Get network clients — Cisco DevNet ↗ Meraki Dashboard API — Cisco DevNet ↗ Get uplink statuses — Cisco DevNet ↗ Checked Jul 2026Minor changeRemote reboot a device
Invoke-RestMethod -Method Post -Uri "https://api.meraki.com/api/v1/devices/<serial>/reboot" `
-Headers @{"X-Cisco-Meraki-API-Key"=$merakiKey}Drops connectivity for anything behind that device for the duration of the reboot — confirm impact before running during business hours.
Reboots an AP, switch, or MX remotely through the API — the cloud equivalent of pulling power on the device.
Reboot device — Cisco DevNet ↗ Meraki Dashboard API — Cisco DevNet ↗ Get uplink statuses — Cisco DevNet ↗ Checked Jul 2026ProcessData flow — Meraki cloud management vs local data path
- Devices connect out to the Meraki cloud over HTTPS to download configuration and report status.
- User traffic does not go through the cloud; it moves across the local switches, access points, and MX.
- If the internet is down, the network keeps working locally but you cannot change settings from the dashboard.
- A device showing offline in the dashboard usually has lost its uplink, DNS, or access to the Meraki cloud.
- Check the device's local status page (when reachable) and the dashboard event log.
Why Meraki sites keep running during a dashboard outage, and what "offline" means.
Meraki cloud architecture whitepaper ↗ Meraki documentation ↗ Firewall rules for Meraki cloud — Meraki ↗ Checked Jul 2026Site down — need root cause fast
- Check WAN uplink status first.
- Check device status for the specific MX/switch/AP.
- Check the client connectivity list to see if devices are even associating.
- Reboot the device only if status confirms it's hung, not just an uplink/ISP issue.
New AP not appearing or clients can't connect
- Confirm the device was claimed into the right network in the dashboard.
- Check device status via the API for adoption/online state.
- Check the client list to confirm at least some devices are associating.
Cisco Switching (VLANs)
SafeCisco IOS/IOS-XECheck VLAN & port status
show vlan show interface status
show vlan lists every VLAN and which ports are assigned to it; show interface status gives a one-line-per-port summary (connected/notconnect, speed/duplex, assigned VLAN) — usually the faster of the two for a "why can't this port reach the network" call.
The standard first check before touching any switch config — confirms both what VLANs exist and which physical ports are actually up and assigned where you expect.
Cisco Catalyst 9300 command references ↗ Cisco support ↗ Cisco Learning Network ↗ Checked Jul 2026Minor changeCisco IOS/IOS-XEConfigure a switch port's VLAN
configure terminal interface range gi1/0/24 switchport access vlan <vlan-ID> switchport mode access auto qos trust exit
interface range lets you apply the same config to multiple ports at once (e.g. interface range gi1/0/1-24). auto qos trust is optional — only relevant if you're trusting QoS markings from the connected device (like a VoIP phone).
The standard sequence for moving a port onto a specific VLAN — confirm the VLAN already exists (show vlan) before assigning a port to it, since assigning to a nonexistent VLAN silently creates it.
Cisco IOS interface commands reference ↗ Cisco Catalyst 9300 command reference ↗ Cisco support ↗ Checked Jul 2026ProcessData flow — VLANs, trunks, and inter-VLAN routing
- Each VLAN is a separate broadcast domain; access ports carry one VLAN untagged.
- The trunk between switches carries many VLANs tagged with 802.1Q; both ends must allow the same VLANs and native VLAN.
- A device in one VLAN reaches another VLAN only through a router or L3 switch (the VLAN's gateway address).
- Check with
show vlan brief,show interfaces trunk, andshow ip interface brief. - Wrong VLAN on a port or a missing VLAN on a trunk is the most common cause of one-device-cannot-connect.
How VLANs, trunks, and the L3 gateway fit together.
VLAN basics — Cisco ↗ IEEE 802.1Q overview — Wikipedia ↗ Cisco IOS command reference ↗ Checked Jul 2026Device on the wrong VLAN
- Check port status and VLAN with
show vlan briefandshow interfaces status. - Confirm the port mode (access or trunk).
- Set the correct access VLAN and save the config.
Trunk or VLAN not passing traffic
- Check
show interfaces trunkfor allowed VLANs. - Confirm the VLAN exists on both switches.
- Check native VLAN matches on both ends.
Firewalls
SafePalo Alto — session & policy check
show session all filter source <ip> destination <ip> show rule-hit-count vsys vsys1 rule-base security rules all
Session filter confirms whether traffic is actually reaching the firewall; rule-hit-count shows whether a security rule is matching at all.
The standard PAN-OS pair for "is this traffic being blocked, and by which rule" troubleshooting.
PAN-OS CLI cheat sheet ↗ FortiOS CLI reference ↗ Fortinet Docs ↗ Checked Jul 2026SafeFortinet — session & policy check
diagnose sys session filter dst <ip> diagnose sys session list get firewall policy <id>
Set the filter before listing sessions — diagnose sys session list without a filter dumps every session on the box.
FortiOS's session-inspection commands, used the same way as Palo Alto's — filter first, then list matching sessions.
FortiOS CLI reference ↗ PAN-OS CLI cheat sheet ↗ Fortinet Docs ↗ Checked Jul 2026SafePFSense — filter state & logs
pfctl -s state | grep <ip> clog /var/log/filter.log | tail -n 50
pfctl shows the live state table (what's actually passing/blocked right now); clog reads the rotated filter log for history.
pfSense is built on FreeBSD's pf firewall — these are the underlying OS-level commands behind what the web GUI's Diagnostics pages show.
pfSense monitoring & diagnostics — Netgate Docs ↗ PAN-OS CLI cheat sheet ↗ FortiOS CLI reference ↗ Checked Jul 2026SafeSonicWall — VPN & session status
show vpn ipsec-sa show current-users
Exact CLI syntax varies by SonicOS version — confirm against the version-specific CLI reference before relying on it for a scripted check.
SonicWall is primarily managed through its web UI; the SonicOS CLI covers the same VPN and session data for quick checks over SSH/console.
SonicWall technical documentation ↗ PAN-OS CLI cheat sheet ↗ FortiOS CLI reference ↗ Checked Jul 2026Minor changeClear a stuck session
# Fortinet diagnose sys session clear # Palo Alto clear session id <sessionid>
Clearing all sessions on Fortinet drops every active connection through the box — filter to a specific session where possible.
Forces a hung or stale session table entry to close, often needed after a policy change doesn't take effect for existing connections.
FortiOS CLI reference ↗ PAN-OS CLI cheat sheet ↗ Fortinet Docs ↗ Checked Jul 2026ProcessFortinetFortiCloud portal & firmware downloads
- Sign in to the FortiCloud asset dashboard: https://support.fortinet.com/asset/#/dashboard
- To find firmware: https://support.fortinet.com/Download/FirmwareImages.aspx
- Select the product, then the release and the exact image for the model.
- Check the release notes for the upgrade path before applying.
Fortinet hosts registered-asset info and firmware images on the support portal; a support account tied to the device is required.
Fortinet Support portal ↗ PAN-OS CLI cheat sheet ↗ FortiOS CLI reference ↗ Checked Jul 2026ProcessData flow — firewall packet path
- The packet enters a zone or interface and is matched against rules top to bottom; the first match wins.
- If allowed, security profiles (IPS, antivirus, URL filtering) may inspect it.
- NAT and routing decide where it goes next.
- Anything with no matching allow rule is dropped and should be logged.
- To troubleshoot, find the log entry for the source, destination, and port and read which rule matched.
The order a firewall evaluates traffic. Knowing it tells you where to look in the logs.
NIST SP 800-41 firewall guidelines ↗ Firewall logs best practices — NIST SP 800-92 ↗ Network security groups — Microsoft Learn ↗ Checked Jul 2026Site can't reach an external service
- Check session state at the firewall (PAN:
show session all filter/ Forti:diagnose sys session filter). - Confirm the relevant policy is actually matching.
- Clear a stuck session if the policy looks correct but traffic still fails.
- Rule out DNS resolution as the actual root cause before assuming it's the firewall.
VPN or NAT rule stopped working after a change
- Compare current config against last known-good, if you have config versioning.
- Check policy order — a broader rule above the intended one can shadow it.
- Test with a scoped rule change before rolling out broadly.
Networking / DNS / VPN / Wireless
SafeAdapter & connectivity baseline
ipconfig /all Get-NetIPConfiguration | ft InterfaceAlias,IPv4Address,IPv4DefaultGateway,DNSServer -Auto Test-NetConnection smtp.office365.com -Port 25 Test-NetConnection server.domain.local -Port 443 Get-NetAdapter | ft Name,Status,LinkSpeed,MacAddress -Auto
Get-NetIPConfiguration gives a cleaner, scriptable version of the same info as ipconfig /all for reports.
Get-NetIPConfiguration — Microsoft Learn ↗ Get-NetAdapter — Microsoft Learn ↗ Resolve-DnsName — Microsoft Learn ↗ Checked Jul 2026SafeDNS & Wi-Fi/cellular diagnostics
Resolve-DnsName domain.com -Type MX Resolve-DnsName domain.com -Type TXT nslookup myip.opendns.com resolver1.opendns.com Get-DnsClientServerAddress -AddressFamily IPv4 netsh wlan show interfaces netsh mbn show interfaces
Resolve-DnsName is PowerShell-native nslookup — MX/TXT lookups are the standard first check for mail-routing and SPF issues.
Resolve-DnsName — Microsoft Learn ↗ Get-NetAdapter — Microsoft Learn ↗ Test-NetConnection — Microsoft Learn ↗ Checked Jul 2026Minor changeReset DNS cache / adapter power settings
Clear-DnsClientCache Get-NetAdapterPowerManagement -Name "Wi-Fi"
Clear-DnsClientCache is a safe, low-risk first step for stale-DNS symptoms; adapter power settings affect Wi-Fi drop/sleep behavior.
Clear-DnsClientCache — Microsoft Learn ↗ Get-NetAdapter — Microsoft Learn ↗ Resolve-DnsName — Microsoft Learn ↗ Checked Jul 2026Safenslookup record types
nslookup -type=ns domain.com nslookup -type=mx domain.com nslookup -type=any domain.com
Queries name server, mail exchanger, or all available records for a domain. Some servers refuse any queries.
ProcessReset network settings (Windows 11)
- Open Settings > Network & Internet > Advanced network settings.
- Select Network reset, then Reset now.
- Confirm. The PC restarts and network adapters are reinstalled.
- Reconnect to Wi-Fi and re-add any VPN profiles.
- Confirm the adapter is set to obtain an IP automatically (DHCP) under the Ethernet or Wi-Fi properties.
Last resort for connectivity problems — it wipes saved network configuration.
Network reset removes and reinstalls adapters and returns networking components to defaults. Saved Wi-Fi and VPN profiles are lost.
Troubleshoot networking — Microsoft Learn ↗ Get-NetAdapter — Microsoft Learn ↗ Resolve-DnsName — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — hybrid DNS (on-prem and Azure)
- On-prem clients ask the on-prem DNS server.
- For Azure private names, a conditional forwarder sends the query to the Private Resolver inbound endpoint.
- The resolver answers from the linked Private DNS zone.
- Azure VMs use the outbound endpoint with forwarding rules to resolve on-prem names.
- Test both directions with
nslookup name server-ipfrom each side.
Two-way name resolution between a local network and Azure.
Azure DNS Private Resolver — Microsoft Learn ↗ Azure Private DNS — Microsoft Learn ↗ DNS overview — Microsoft Learn ↗ Checked Jul 2026Intermittent connectivity or can't reach a server
- Confirm the adapter is up with a valid IP:
Get-NetAdapter,Get-NetIPConfiguration. - Test the specific port:
Test-NetConnection -Port. - Check DNS is resolving correctly:
Resolve-DnsName. - Clear the DNS cache and retest:
Clear-DnsClientCache.
Wi-Fi drops repeatedly
- Check current signal/state:
netsh wlan show interfaces. - Check adapter power-saving settings — "allow the computer to turn off this device" is a common culprit.
- Update or roll back the Wi-Fi driver if the pattern correlates with a recent update.
Networks
ProcessNetworks — Tools
- CapAnalysis ↗ — web visual tool to analyze large amounts of captured network traffic (PCAP analyzer)
- netbox ↗ — IP address management (IPAM) and data center infrastructure management (DCIM) tool
Section "Tools" of the "Networks" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Networks chapter ↗ Source list — GitHub ↗ CapAnalysis ↗ Checked Jul 2026ProcessNetworks — Labs
- NRE Labs ↗ — learn automation by doing it. Right now, right here, in your browser
Section "Labs" of the "Networks" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Networks chapter ↗ Source list — GitHub ↗ NRE Labs ↗ Checked Jul 2026ProcessNetworks — Other
- LBNL's Network Research Group ↗ — home page of the Network Research Group (NRG)
Section "Other" of the "Networks" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Networks chapter ↗ Source list — GitHub ↗ LBNL's Network Research Group ↗ Checked Jul 2026Find a tool in the "Networks" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Out-of-band & cloud console access
SafeServer BMC / iDRAC / iLO
ipmitool -I lanplus -H <bmc-ip> -U admin -P <pw> power status racadm getsel ilorest get Power. --select ComputerSystem.
BMC/iDRAC/iLO expose out-of-band management independent of the host OS — useful when the server itself is unresponsive.
IPMI/BMC background — Microsoft Learn ↗ az serial-console — Microsoft Learn ↗ az vm run-command — Microsoft Learn ↗ Checked Jul 2026Minor changeRemote power cycle
ipmitool -I lanplus -H <bmc-ip> -U admin -P <pw> power cycle racadm serveraction powercycle
A remote power cycle over the BMC works even if the OS has hung, since it doesn't depend on the host being responsive.
RACADM command details — Dell Support ↗ az serial-console — Microsoft Learn ↗ az vm run-command — Microsoft Learn ↗ Checked Jul 2026SafeAzure VM — serial console & run-command
az serial-console connect -g <rg> -n <vm> az vm boot-diagnostics get-boot-log -g <rg> -n <vm> az vm run-command invoke -g <rg> -n <vm> --command-id RunPowerShellScript --scripts "Get-Service | where Status -eq 'Stopped'"
Serial console and run-command let you inspect or act on an Azure VM even when RDP/SSH is unreachable, without needing a public IP.
az vm run-command — Microsoft Learn ↗ az serial-console — Microsoft Learn ↗ RACADM command details — Dell Support ↗ Checked Jul 2026SafeAzure Bastion (no public IP needed)
az network bastion rdp --name <bastion> -g <rg> --target-resource-id <vm-id> az network bastion ssh --name <bastion> -g <rg> --target-resource-id <vm-id>
Azure Bastion provides browser-based RDP/SSH to a VM without exposing a public IP or opening inbound ports.
az network bastion — Microsoft Learn ↗ az serial-console — Microsoft Learn ↗ az vm run-command — Microsoft Learn ↗ Checked Jul 2026SafeNetwork device — unreachable device
ping <ip> -t tracert <ip> show ip interface brief
Basic Layer-3 reachability check for network gear — pair with show ip interface brief to see which interface is actually down.
Ping and traceroute — Cisco ↗ az serial-console — Microsoft Learn ↗ az vm run-command — Microsoft Learn ↗ Checked Jul 2026Server unresponsive — OS not reachable
- Connect via BMC/iDRAC/iLO to check power/health status.
- Attempt a graceful action first if the OS shows any life via virtual console.
- If fully hung, power cycle via the BMC.
- Review the SEL/event log after recovery to find the root cause.
Azure VM unreachable via RDP/SSH
- Check boot diagnostics:
az vm boot-diagnostics get-boot-log. - Connect via serial console for a raw view:
az serial-console connect. - Run a diagnostic command without a full login:
az vm run-command invoke. - Use Bastion for a full interactive session once basic connectivity is confirmed.
SMTP Test (Telnet)
ProcessTest SMTP manually with Telnet
- Enable the Telnet Client Windows feature if needed.
- Run
telnet <servername> 25. - Type
EHLO test.com— expect 250. - Type
MAIL FROM:admin@test.com— expect 250. - Type
RCPT TO:user@domain.com— expect 250. - Type
DATA— expect 354. - Type a subject and message, press Enter twice, then
.on its own line — expect 250. - Type
QUIT— expect 221. - Confirm the recipient received it; on errors check the server event/transport logs.
Walks through an SMTP conversation by hand to prove a server accepts and relays mail on the chosen port.
Test SMTP with Telnet — Microsoft Learn ↗ Mail flow troubleshooting — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026Mail is not delivered
- Run the Telnet test against the sending server.
- If RCPT TO fails, check relay/accepted domains and connectors.
- If it works, run a message trace to see where it stops.
VPN
SafeWindows client VPN status
Get-VpnConnection | select Name,ConnectionStatus,ServerAddress,TunnelType
Confirms whether the profile exists and its last known connection state before troubleshooting the tunnel itself.
Lists configured VPN profiles on the local machine along with their current connection status.
Get-VpnConnection — Microsoft Learn ↗ ASA command reference — Cisco ↗ Get VPN statuses — Cisco DevNet ↗ Checked Jul 2026Minor changeReconnect or re-create a VPN profile
rasdial "Corp VPN" username password
# or recreate the profile entirely
Add-VpnConnection -Name "Corp VPN" -ServerAddress vpn.domain.com -TunnelType Ikev2 -AuthenticationMethod EapRe-creating the profile is often faster than debugging a corrupted one — export settings first if the existing profile has custom split-tunnel rules.
rasdial connects using an existing profile; Add-VpnConnection builds a fresh profile from scratch when the old one won't connect.
rasdial — Microsoft Learn ↗ Get-VpnConnection — Microsoft Learn ↗ ASA command reference — Cisco ↗ Checked Jul 2026SafeSite-to-site tunnel status (Cisco ASA)
show vpn-sessiondb detail anyconnect show crypto isakmp sa
vpn-sessiondb shows client (AnyConnect) sessions; crypto isakmp sa shows the IKE phase-1 state for site-to-site tunnels.
The standard pair for confirming whether a VPN tunnel is actually up at the ASA, versus a problem on the client end.
ASA command reference — Cisco ↗ Get-VpnConnection — Microsoft Learn ↗ Get VPN statuses — Cisco DevNet ↗ Checked Jul 2026SafeMeraki site-to-site VPN status
Invoke-RestMethod -Uri "https://api.meraki.com/api/v1/organizations/<orgId>/appliance/vpn/statuses" `
-Headers @{"X-Cisco-Meraki-API-Key"=$merakiKey}Shows every site-to-site VPN peer's connectivity state across the org in one call — faster than checking each MX individually.
Confirms which Auto VPN or third-party peers are currently reachable from each Meraki MX in the organization.
Get VPN statuses — Cisco DevNet ↗ Get-VpnConnection — Microsoft Learn ↗ ASA command reference — Cisco ↗ Checked Jul 2026ProcessData flow — remote access VPN
- The client builds an encrypted tunnel to the gateway.
- The gateway checks credentials with RADIUS, Entra ID, or AD (and MFA if required).
- Allowed routes decide what the user can reach: split tunnel (only company ranges) or full tunnel (everything).
- If connected but nothing works, check DNS settings, routes, and firewall rules for the VPN pool.
- If it will not connect, check credentials, MFA, certificate, and whether UDP 500/4500 or the SSL port is blocked.
What happens during a VPN connection and the usual failure points at each stage.
VPN troubleshooting — Microsoft Learn ↗ VPN Gateway — Microsoft Learn ↗ NIST SP 800-41 firewall guidelines ↗ Checked Jul 2026User can't connect to VPN
- Check the client-side profile status:
Get-VpnConnection. - Try reconnecting:
rasdial. - If the profile looks broken, recreate it:
Add-VpnConnection. - Check the concentrator side for a matching session attempt — if it's not arriving, the issue is upstream.
Site-to-site tunnel down
- Check phase-1 status (ASA:
show crypto isakmp sa, or the Meraki VPN status endpoint). - Confirm the peer's public IP hasn't changed.
- Check the pre-shared key or certificate hasn't expired.
- Re-initiate the tunnel and monitor for phase-1/phase-2 establishment.
03 On-Prem EnvironmentsActive Directory and Group Policy, file servers, VMs and storage, AIX, batch scheduling, GoAnywhere, and HEALTHsuite
Active Directory / Domain / Login
SafeUser & group lookups
Get-ADUser jsmith -Properties mail,enabled,lastLogonDate,memberOf | fl Name,Enabled,mail,lastLogonDate Get-ADGroupMember "Group Name" | select Name,SamAccountName,ObjectClass Get-ADPrincipalGroupMembership jsmith | select Name | sort Name net user jsmith /domain
Get-ADUser and related cmdlets require the RSAT Active Directory module and query on-prem AD directly.
Get-ADUser — Microsoft Learn ↗ Troubleshoot account lockout — Microsoft Learn ↗ Troubleshoot AD replication — Microsoft Learn ↗ Checked Jul 2026Minor changeGroup membership changes (AD)
Add-ADGroupMember "Group Name" -Members jsmith Remove-ADGroupMember "Group Name" -Members jsmith -Confirm:$false
Changes may sync to Entra/downstream apps.
Group membership changes to AD-synced groups can propagate to Entra ID and downstream apps on the next sync cycle.
Add-ADGroupMember — Microsoft Learn ↗ Troubleshoot account lockout — Microsoft Learn ↗ Troubleshoot AD replication — Microsoft Learn ↗ Checked Jul 2026SafeDomain health & discovery
Get-ADDomainController -Filter * | ft HostName,Site,IPv4Address,OperationMasterRoles -Auto Get-ADDomain | fl PDCEmulator,DomainMode,MaxPasswordAge,MinPasswordLength,LockoutDuration whoami /all nltest /dsgetdc:domain.local nltest /sc_verify:domain.local
nltest checks domain-controller discovery and secure-channel trust — useful when a machine can't reach any DC.
nltest — Microsoft Learn ↗ Troubleshoot account lockout — Microsoft Learn ↗ Troubleshoot AD replication — Microsoft Learn ↗ Checked Jul 2026SafeCheck when an AD account was created
Get-ADUser <UserName> -Properties whenCreated | Format-List Name,whenCreated
whenCreated is a standard AD attribute stamped when the object is made.
Get-ADUser — Microsoft Learn ↗ Troubleshoot account lockout — Microsoft Learn ↗ Troubleshoot AD replication — Microsoft Learn ↗ Checked Jul 2026Minor changeForce an AD Connect delta sync
# On the Azure AD Connect server
Import-Module ADSync
Start-ADSyncSyncCycle -PolicyType DeltaStarts an immediate delta cycle so on-prem changes reach Entra ID without waiting for the 30-minute schedule.
AD Connect sync scheduler — Microsoft Learn ↗ Troubleshoot account lockout — Microsoft Learn ↗ Troubleshoot AD replication — Microsoft Learn ↗ Checked Jul 2026SafeFind which domain a workstation is on
systeminfo | findstr /B /C:"Domain"
Reads the Domain line from systeminfo. Shows WORKGROUP for non-domain machines.
systeminfo — Microsoft Learn ↗ Troubleshoot account lockout — Microsoft Learn ↗ Troubleshoot AD replication — Microsoft Learn ↗ Checked Jul 2026User can't log in / account locked
- Confirm lockout state:
Get-ADUser -Properties LockedOut,BadLogonCount. - Find the source of bad attempts — event ID 4625 on the DCs, or an old cached credential/mapped drive/mobile device.
- Unlock the account:
Unlock-ADAccount. - Fix the bad-credential source before it re-locks the account.
Group membership isn't granting expected access
- Confirm actual membership:
Get-ADPrincipalGroupMembership. - Compare against a working user's group list with
Compare-Object. - Add the missing membership:
Add-ADGroupMember. - Allow time for AD replication / Entra sync before retesting.
AIX Server Administration
SafeAIXServer health snapshot
uname -a oslevel -s uptime df -g lsvg lsvg -p rootvg vmstat 2 5 iostat 2 3 svmon -G topas
OS level, uptime, filesystem space, volume groups, and CPU/memory/disk activity in one pass. nmon is a richer alternative.
SafeAIXRead the AIX error log
errpt | more errpt -a | more errpt -s 1119000026 # since MMDDhhmmYY errpt -d H # hardware errors only
errpt shows hardware, software, and OS errors recorded by AIX. Check it first after crashes or disk problems.
Performance and tools — IBM AIX ↗ IBM AIX documentation ↗ nmon — IBM AIX ↗ Checked Jul 2026Minor changeAIXCheck and control services (SRC)
lssrc -a # all subsystems lssrc -s sshd # one subsystem stopsrc -s sshd startsrc -s sshd refresh -s inetd
Stopping sshd can lock you out of a remote session.
AIX uses the System Resource Controller for services instead of systemctl.
topas — IBM AIX ↗ IBM AIX documentation ↗ nmon — IBM AIX ↗ Checked Jul 2026SafeAIXFind what is filling a filesystem
df -g du -sg /var/* | sort -rn | head find /var -xdev -size +500M -ls fuser -cu /var # who is using the filesystem
Locates large directories and files, and the processes holding them open.
Performance reporting commands — IBM AIX ↗ IBM AIX documentation ↗ nmon — IBM AIX ↗ Checked Jul 2026SafeAIXCron and scheduled jobs on AIX/Unix
crontab -l crontab -l <user> # as root tail -50 /var/adm/cron/log at -l
Lists scheduled jobs and the cron log, useful when a scheduled script did not run.
crontab(5) — man7 ↗ IBM AIX documentation ↗ nmon — IBM AIX ↗ Checked Jul 2026Minor changeAIXUnlock an account and reset failed logins (AIX)
lsuser -a account_locked unsuccessful_login_count <user> chuser account_locked=false <user> chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s <user> passwd <user> # set a new password (user is forced to change at next login) pwdadm -c <user> # clear the forced-change flag if needed
Verify the user's identity before resetting any account.
AIX keeps lock state and failed-login counts separately, so both must be cleared for a locked user to log in again.
chuser — IBM AIX ↗ lsuser — IBM AIX ↗ IBM AIX documentation ↗ Checked Jul 2026SafeAIXList users, groups, and who is logged in
lsuser -f ALL | more # all attributes for all users lsuser -a id home shell ALL lsgroup ALL id <user> who last | head -20 w
Shows account settings, group membership, current sessions, and recent logins.
lsuser — IBM AIX ↗ lsgroup — IBM AIX ↗ IBM AIX documentation ↗ Checked Jul 2026SafeAIXOS level, patches, and installed software
oslevel -s # full service pack level instfix -i | grep ML # maintenance levels installed lslpp -L all | more # all installed filesets lslpp -l <fileset> lsattr -El sys0 -a modelname
Confirms the exact AIX level before applying a fix or raising a vendor case.
oslevel — IBM AIX ↗ lslpp — IBM AIX ↗ IBM AIX documentation ↗ Checked Jul 2026SafeAIXDisks, volume groups, and logical volumes
lspv # physical volumes lsvg # volume groups lsvg -l rootvg # logical volumes in a VG lslv <lvname> df -g
Maps disks to volume groups and filesystems. Start here when a filesystem fills up or a disk is reported failed.
lsvg — IBM AIX ↗ lspv — IBM AIX ↗ IBM AIX documentation ↗ Checked Jul 2026Minor changeAIXGrow a filesystem
df -g /data chfs -a size=+1G /data # add 1 GB to /data (needs free space in the VG) df -g /data
Confirm approval and free space first. Shrinking is riskier than growing.
chfs grows a JFS2 filesystem online if the volume group has free partitions. Check lsvg <vg> for FREE PPs first.
SafeAIXPaging space and memory
lsps -a # paging space use svmon -G # global memory vmstat -s | head -20 topas
High paging space use or constant paging points to a memory shortage or a runaway process.
lsps — IBM AIX ↗ svmon — IBM AIX ↗ topas — IBM AIX ↗ Checked Jul 2026SafeAIXNetwork checks on AIX
ifconfig -a netstat -in # interfaces and errors netstat -rn # routing table netstat -an | grep LISTEN entstat -d en0 | more # adapter statistics and errors lsattr -El en0 ping <host> host <name>
Interface errors, routes, and listening ports in one pass.
netstat — IBM AIX ↗ entstat — IBM AIX ↗ IBM AIX documentation ↗ Checked Jul 2026SafeAIXFind and manage processes
ps -ef | grep -i <name> ps aux | sort -rn -k 3 | head # top CPU fuser -u /path/to/file kill <pid> # polite stop (SIGTERM) kill -9 <pid> # last resort
Killing a database or batch process can corrupt a run — check what it is first.
Always try plain kill first so the process can clean up; use -9 only when it will not stop.
SafeAIXFile permissions and ownership
ls -l /path ls -ltr /path | tail # newest files last chmod 640 file chown user:group file umask
Permission denied on a script, log, or transfer folder is a frequent cause of failed jobs.
chmod — IBM AIX ↗ chown — IBM AIX ↗ IBM AIX documentation ↗ Checked Jul 2026Minor changeAIXSystem backup (mksysb) and verify
mksysb -i /backup/$(hostname).mksysb lsmksysb -l /backup/$(hostname).mksysb | head
Creates a bootable image of rootvg. It uses disk space and I/O, so run it in the approved window.
mksysb — IBM AIX ↗ lsmksysb — IBM AIX ↗ IBM AIX documentation ↗ Checked Jul 2026ProcessAIXUsing smitty
- Type
smittyfor the menu, or jump directly (for examplesmitty userorsmitty lvm). - Use arrow keys to move, Enter to select, and F4 for a list of valid values.
- Press F6 on a result screen to see the exact command smitty ran — use it to learn the command line.
- F3 goes back, F10 exits.
- Check
~/smit.logand~/smit.scriptfor history.
smitty is the AIX menu front end for system administration. It shows the real command (F6), which is a good way to learn them.
IBM AIX documentation ↗ smit — IBM AIX ↗ topas — IBM AIX ↗ Checked Jul 2026Server is slow or a filesystem is full
- Run
df -gandvmstat 2 5. - Check
errptfor disk or memory errors. - Find large files with
duandfind. - Escalate with the output attached.
Application Infrastructure & Tracing
ProcessTrace a failing application end to end
- Write the chain: user > network/VPN > DNS > web tier > application tier > database > file/batch feeds.
- Test DNS:
nslookup server. - Test the port:
Test-NetConnection server -Port 443(Windows) ornc -zv server 443(Unix). - Test the service:
curl -vk https://server/or open it in the browser and check the status code. - Check the service and its logs on the server.
- Test the database from the app server.
- Check disk, CPU, and memory.
- Check what changed recently: patch, deployment, certificate, password, schedule.
Application infrastructure problems are solved by checking one link at a time.
Test-NetConnection — Microsoft Learn ↗ curl documentation ↗ HTTP status codes — MDN ↗ Checked Jul 2026SafeConnectivity and port checks (Windows and Unix)
# Windows nslookup server Test-NetConnection server -Port 443 netstat -ano | findstr LISTEN Get-Service | Where-Object Status -eq 'Stopped' # Unix / AIX host server nc -zv server 443 netstat -an | grep LISTEN curl -vk https://server/ -o /dev/null
Basic reachability and listening-port checks on either platform.
Test-NetConnection — Microsoft Learn ↗ curl documentation ↗ netstat — Microsoft Learn ↗ Checked Jul 2026ProcessCommon application tiers and ports
- Web: 80 (HTTP), 443 (HTTPS), 8080/8443 (alternate).
- SFTP/SSH: 22. FTP: 21. FTPS: 21 or 990.
- SQL Server: 1433. Db2: 50000 (common default). Oracle: 1521. MySQL: 3306. PostgreSQL: 5432.
- DNS: 53. LDAP: 389. LDAPS: 636. Kerberos: 88. SMB: 445. RDP: 3389.
- SMTP: 25, 587 (submission), 465 (SMTPS). Confirm real ports in the environment documentation.
Quick reference for firewall and connectivity troubleshooting.
Service names and port numbers — IANA ↗ Test-NetConnection — Microsoft Learn ↗ HTTP status codes — MDN ↗ Checked Jul 2026ProcessRecent-change checklist
- Patches or OS changes.
- Application or database deployments.
- Certificate or password expiry/rotation.
- Firewall, DNS, or network changes.
- Job schedule changes.
- Disk, backup, or storage changes.
- Ask: when did it last work, and what changed after that?
Most outages follow a change. Finding it early shortens the outage.
ITIL incident management — Atlassian ↗ Change enablement — Atlassian ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ Checked Jul 2026ProcessData flow — hybrid three-tier app (Azure front end, on-prem database)
- Users reach the public front door (gateway and web firewall), which sends traffic to the web and app tier.
- The app tier talks to the on-prem database over the private VPN or ExpressRoute link; the database is never exposed to the internet.
- Latency across the link affects every query, so keep chatty calls and large result sets in mind.
- To trace a slow request, time each hop: browser, gateway, app, link, database.
- Use correlation IDs in logs so one request can be followed through every tier.
A common hybrid layout and the hops to measure when tracing a slow or failing request.
Hybrid network reference architectures — Microsoft Learn ↗ OpenTelemetry documentation ↗ Cloud deployment patterns — Microsoft Learn ↗ Checked Jul 2026An application is slow or down
- Write the chain of components.
- Test each link in order.
- Check recent changes.
- Escalate with test results.
Batch Jobs & Scheduling
ProcessMonitor production batch jobs
- Open the scheduler console (for example ROC Maestro, cron, or Task Scheduler) at the start of your shift.
- Check each job stream: finished, running late, failed, or waiting on a dependency.
- For anything failed or late, open the job log and note the error and time.
- Check disk space and the database/server the job depends on.
- Report failures to the owner with the job name, time, and error text.
- Log the result in the ticket or shift notes.
A simple checklist for daily monitoring; names differ by scheduler but the steps are the same.
ROC Software ↗ Task Scheduler — Microsoft Learn ↗ crontab(5) — man7 ↗ Checked Jul 2026ProcessA batch job failed — triage order
- Capture the job name, run time, and exit code.
- Read the end of the job log first, then work backward to the first error.
- Check usual causes: input file missing/late, disk full, locked table, expired password, network or server down, dependency job failed.
- If the fix is safe and documented, correct it and rerun (or release) the job.
- If not, hold dependent jobs and escalate.
- Document the cause and the fix.
Most batch failures are caused by missing inputs, space, locks, or credentials.
Task Scheduler — Microsoft Learn ↗ ROC Software ↗ crontab(5) — man7 ↗ Checked Jul 2026SafeWindows Task Scheduler from PowerShell
Get-ScheduledTask | Get-ScheduledTaskInfo | Select TaskName,LastRunTime,LastTaskResult,NextRunTime schtasks /query /fo LIST /v
LastTaskResult of 0 means success; other values are error codes. Useful for checking scheduled automation scripts.
Get-ScheduledTaskInfo — Microsoft Learn ↗ ROC Software ↗ Task Scheduler — Microsoft Learn ↗ Checked Jul 2026ProcessJob failure report template
- Job/stream name and environment.
- Scheduled time, start time, and failure time.
- Error message and exit code.
- Impact: downstream jobs or customers affected.
- What was checked and what was done.
- Current status and next step or owner.
Short, consistent reports help the next person act without asking for details.
ITIL incident management — Atlassian ↗ ROC Software ↗ Task Scheduler — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — scheduled batch job stream
- The scheduler starts a job stream at its run time once its dependencies are met (files present, previous streams done).
- Jobs run in order; each starts only when the one before it succeeds.
- A failure stops the chain and alerts the operator.
- On failure: read the job output, fix the cause, then rerun from the failed job rather than the whole stream, if your procedure allows.
- Record the cause and the rerun in the ticket.
How a scheduled chain of jobs behaves, and how to respond when one fails.
HCL Workload Automation docs ↗ cron — Wikipedia ↗ Job scheduler — Wikipedia ↗ Checked Jul 2026A nightly job did not finish
- Open the scheduler and find the job state.
- Read the log for the first error.
- Check space, locks, and inputs.
- Rerun if safe; otherwise escalate with the report.
Domain Controllers & Group Policy
SafeDC health & replication
dcdiag /v repadmin /replsummary repadmin /showrepl
Run dcdiag first for a broad pass/fail summary, then repadmin to dig into replication specifically.
The standard two-command combo for "is this domain controller healthy" — covers services, connectivity, and AD replication in one pass.
dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Get-GPInheritance — Microsoft Learn ↗ Checked Jul 2026SafeSYSVOL replication & FSMO roles
dfsrdiag replicationstate netdom query fsmo
SYSVOL replication lag explains GPOs that apply inconsistently across sites; FSMO shows which DC owns each special role.
netdom query fsmo is the fastest way to confirm which domain controller currently holds each of the five FSMO roles.
netdom query — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026SafeGPO inventory & effective policy
Get-GPO -All | select DisplayName,GpoStatus,ModificationTime Get-GPInheritance -Target "OU=Sales,DC=domain,DC=local"
Get-GPInheritance shows the effective, blocked, and enforced link order for a specific OU — the fastest way to explain "why didn't this GPO apply."
Lists every GPO and shows exactly what's linked, blocked, or enforced at a given OU.
Get-GPInheritance — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026Minor changeForce remote GPO refresh
Invoke-GPUpdate -Computer <name> -Force
Triggers gpupdate /force on a remote machine without needing a session on it — requires remoting rights.
Remote equivalent of running gpupdate /force locally — useful for pushing a policy change without waiting for the next refresh cycle.
Invoke-GPUpdate — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026Big changeRestore a GPO from backup
Restore-GPO -Name "GPO Name" -Path "C:\GPOBackups"
Confirm you're restoring the correct backed-up version before running — this overwrites the live GPO's current settings.
Rolls a GPO back to a previously backed-up state — the standard recovery path after a bad policy change goes org-wide.
Restore-GPO — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026SafeExport an applied-policy report (gpresult)
gpresult /h C:\temp\report.html
Open the HTML report to see exactly which GPOs applied, which were filtered out, and why — far more readable than scrolling gpresult /r output.
The HTML report format is the fastest thing to attach to a ticket when you need to prove which policies did or didn't apply to a specific machine or user.
gpresult — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026ProcessLook up any Group Policy setting (GPS tool)
- Open the Group Policy Search tool and type a keyword (e.g. "Windows Update", "BitLocker", "USB storage").
- Use the product filter to narrow results to the OS/Office version you're targeting.
- Click a result to see its full details: Setting Type, Supported On, registry Key/Value, and the ADMX file it comes from.
- Toggle Registry View to jump straight to the exact HKLM/HKCU path and value — useful when scripting the equivalent registry change.
- Use Share > Registry Key+Value (or Category Path) to copy a direct link/reference for a ticket or runbook.
- Grab the current ADMX templates from the Link to ADMX Download if you need to import new policy definitions into your central store.
Covers every documented Group Policy setting across Windows and Office versions, including deprecated ones — useful both for finding a setting by keyword and for reverse-engineering what registry key a known policy actually writes.
Faster than digging through GPMC by hand when you know roughly what you're looking for but not the exact policy path — the Registry View feature is especially handy when you need the raw key/value to replicate a setting outside of Group Policy (e.g. in an Intune settings catalog or a script).
Group Policy Search (GPS) ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026ProcessExempt a computer or user from a GPO
- Open gpmc.msc and select the GPO.
- On the Delegation tab choose Advanced, add the computer or user.
- Tick Deny for Apply group policy, then OK.
- Alternatively right-click the GPO link and untick Link Enabled, or set GPO Status to Disabled.
- Run
gpupdate /forceon the target and confirm withgpresult /r.
Deny overrides Allow — double-check the exact object name.
Security filtering plus an explicit Deny on Apply group policy excludes one object without unlinking the GPO.
Group Policy overview — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026SafeDefault domain password policy
Get-ADDefaultDomainPasswordPolicy
Returns length, complexity, history, age, and lockout settings for the domain.
Get-ADDefaultDomainPasswordPolicy — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026ProcessView GPO change history
- In GPMC double-click the GPO (or right-click > History) if Advanced Group Policy Management is installed.
- Review versions, who changed them and when.
- Use Compare or Restore on a version if a change must be rolled back.
History is an AGPM feature, not available in stock GPMC.
AGPM History window — Microsoft Learn ↗ dcdiag — Microsoft Learn ↗ repadmin — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — on-prem domain logon (DHCP, DNS, Kerberos, GPO)
- The PC gets an IP address and DNS server from DHCP (DNS must point at AD DNS, not the router).
- It asks DNS for the domain controller records.
- It authenticates to the DC with Kerberos (time must be within 5 minutes).
- Group Policy downloads from SYSVOL and applies; drive maps and scripts run.
- Most logon problems are DNS, time, or network path: check those before the account.
The order of events at logon, so you can tell which layer is failing (network, DNS, time, authentication, policy).
Kerberos authentication — Microsoft Learn ↗ Group Policy overview — Microsoft Learn ↗ Troubleshoot Group Policy — Microsoft Learn ↗ Checked Jul 2026GPO not applying to some machines
- Confirm the GPO is linked/enabled at the right OU:
Get-GPInheritance. - Check the target machine's applied policy:
gpresult /h report.html. - Force a refresh:
Invoke-GPUpdate -Computer <name> -Force. - Check SYSVOL replication isn't lagging on the DC serving that site.
AD replication errors between sites
- Get an overview:
repadmin /replsummary. - Drill into failing partners:
repadmin /showreplon the affected DC. - Check network connectivity/firewall rules between sites — AD needs several ports open.
- Re-run
dcdiag /vafter fixing connectivity to confirm resolution.
File / Folder Permissions / Shares
SafeACLs & shares
Get-Acl "C:\Path\Folder" | fl icacls "C:\Path\Folder" Get-SmbShare | ft Name,Path,Description -Auto Get-SmbShareAccess -Name "ShareName"
Get-Acl/icacls show effective NTFS permissions on a folder; Get-SmbShare/Get-SmbShareAccess show the separate share-level permissions layered on top.
icacls — Microsoft Learn ↗ Get-SmbShareAccess — Microsoft Learn ↗ File Server Resource Manager overview — Microsoft Learn ↗ Checked Jul 2026SafeStorage & activity discovery
Get-ChildItem "C:\Path" -Recurse -File -ErrorAction SilentlyContinue | sort Length -Desc |
select -First 20 FullName,@{n="MB";e={[math]::Round($_.Length/1MB,2)}}
Get-ChildItem "C:\Path" -Recurse -File | ? LastWriteTime -gt (Get-Date).AddDays(-2) | sort LastWriteTime -Desc
robocopy "C:\Source" "D:\Dest" /E /L /R:1 /W:1 # /L = list only, dry runRobocopy with /L performs a dry run only — nothing is copied, useful for previewing scope before a real transfer.
robocopy — Microsoft Learn ↗ icacls — Microsoft Learn ↗ Get-SmbShareAccess — Microsoft Learn ↗ Checked Jul 2026Minor changeGrant NTFS permission
icacls "C:\Path\Folder" /grant "DOMAIN\User:(OI)(CI)M"
icacls /grant adds an NTFS ACE for the target user/group — confirm the exact identity string before running.
icacls — Microsoft Learn ↗ Get-SmbShareAccess — Microsoft Learn ↗ File Server Resource Manager overview — Microsoft Learn ↗ Checked Jul 2026Big changeMirror copy
robocopy "C:\Source" "D:\Dest" /MIR /R:1 /W:1
/MIR deletes destination extras — dangerous.
/MIR makes the destination an exact mirror of the source, deleting anything at the destination that isn't present at the source.
robocopy — Microsoft Learn ↗ icacls — Microsoft Learn ↗ Get-SmbShareAccess — Microsoft Learn ↗ Checked Jul 2026ProcessFind who has a file locked
- On the file server, open Computer Management > System Tools > Shared Folders > Open Files.
- Find the file and note the user, then close the file if needed.
- A file starting with
~$is a temporary lock file created by Office while the file is open. - If nothing shows, check for a user's PC holding the lock and restart that app.
Open Files shows who holds a file open over the network and lets you close the handle.
openfiles — Microsoft Learn ↗ icacls — Microsoft Learn ↗ Get-SmbShareAccess — Microsoft Learn ↗ Checked Jul 2026Minor changeMapped drives not showing in elevated prompts
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLinkedConnections /t REG_DWORD /d 1 /f
# Restart the PC afterwardsMakes mapped drives available to both elevated and standard tokens, which fixes drives that vanish when running as administrator.
Mapped drives not available — Microsoft Learn ↗ icacls — Microsoft Learn ↗ Get-SmbShareAccess — Microsoft Learn ↗ Checked Jul 2026User denied access to a shared folder
- Check effective NTFS permissions:
icaclsorGet-Acl. - Check the separate share-level permission:
Get-SmbShareAccess. - Grant the missing right at whichever layer is restrictive.
- Have the user disconnect and reconnect the mapped drive to refresh the token.
Running out of space on a file server volume
- Find the largest files/folders sorted by size.
- Check for recent large writes via LastWriteTime.
- Move, archive, or extend the volume as appropriate (see VM & Storage Health).
- Set up a space-alert threshold going forward if none exists.
GoAnywhere MFT
ProcessFortra GoAnywhereCheck a failed file transfer job
- Open the GoAnywhere admin console and go to the job log / audit views (names vary by version).
- Find the job or project by name and time; open the failed run.
- Read the error on the failing step (connect, login, get/put file).
- Check the resource (SFTP/FTP/network share) is reachable and the credentials or key are valid.
- Fix the cause and rerun the project, or cancel a stuck job from the Active Jobs list.
Job logs show which step of the project failed and why.
How to cancel an active job — GoAnywhere forum ↗ GoAnywhere resources ↗ How to DEBUG a project — GoAnywhere forum ↗ Checked Jul 2026ProcessFortra GoAnywhereDebug a project
- Open the project in the designer.
- Turn on debug/verbose logging for the failing step (see the forum guide for your version).
- Run the project with test data or a test resource.
- Review the detailed log, fix, then turn debug off again.
Debug logging gives step-level detail for troubleshooting but creates large logs.
How to DEBUG a project — GoAnywhere forum ↗ GoAnywhere resources ↗ SFTP client troubleshooting — GoAnywhere ↗ Checked Jul 2026SafeFortra GoAnywhereTest SFTP connectivity from a workstation
Test-NetConnection sftp.partner.com -Port 22 sftp -vvv user@sftp.partner.com # verbose: shows auth and key errors
Separates network/firewall problems from credential or key problems. Verbose output names the exact failing stage.
Test-NetConnection — Microsoft Learn ↗ SFTP client troubleshooting — GoAnywhere ↗ GoAnywhere resources ↗ How to DEBUG a project — GoAnywhere forum ↗ Checked Jul 2026ProcessFortra GoAnywhereCommon transfer failure causes
- Connection timed out: firewall or IP allow-list change.
- Authentication failed: expired password or wrong/rotated SSH key.
- Host key changed: partner server was rebuilt; verify with them before accepting.
- Permission denied: wrong folder rights on the remote side.
- No file found: partner did not send yet, or file name pattern changed.
- Certificate errors (FTPS/HTTPS): expired or untrusted certificate.
The usual suspects, in rough order of frequency.
Issues with SFTP Get Files — GoAnywhere forum ↗ GoAnywhere resources ↗ How to DEBUG a project — GoAnywhere forum ↗ Checked Jul 2026ProcessFortra GoAnywhereOnboard a new SFTP trading partner
- Collect from the partner: hostname, port, username, auth method (password or SSH key), source/destination folders, file naming pattern, schedule, and an IP allow-list contact.
- Create a resource (SFTP/FTPS) and a test project in GoAnywhere with the partner details.
- Exchange public keys or certificates. Never send private keys.
- Test connect and a small test file in both directions.
- Open firewall rules and allow-lists for the partner IPs.
- Move to a production project and schedule.
- Record the partner details, contacts, keys and expiry dates in the documentation system.
A standard checklist for adding a customer or vendor file exchange.
GoAnywhere resources — Fortra ↗ GoAnywhere user forum ↗ SFTP — OpenSSH ↗ Checked Jul 2026SafeFortra GoAnywhereGenerate or inspect an SSH key pair
ssh-keygen -t rsa -b 4096 -f partner_key -C "company-partner" ssh-keygen -l -f partner_key.pub # fingerprint cat partner_key.pub # send ONLY the .pub file to the partner
Never email or paste a private key.
Creates a key pair for key-based SFTP. The private key (no .pub) must stay on your side.
ssh-keygen — OpenBSD ↗ GoAnywhere resources — Fortra ↗ GoAnywhere user forum ↗ Checked Jul 2026SafeFortra GoAnywhereTest PGP encryption and decryption (gpg)
gpg --import partner_public.asc gpg --list-keys gpg --encrypt --armor -r partner@example.com test.txt gpg --decrypt test.txt.asc > test_out.txt gpg --list-secret-keys
Confirms a key imports and that a test file encrypts and decrypts before real data is sent.
GnuPG documentation ↗ GoAnywhere resources — Fortra ↗ GoAnywhere user forum ↗ Checked Jul 2026SafeFortra GoAnywhereCheck certificate expiry of an FTPS or HTTPS endpoint
openssl s_client -connect host:443 -servername host </dev/null 2>/dev/null | openssl x509 -noout -dates -subject
# FTPS:
openssl s_client -connect host:21 -starttls ftp </dev/null 2>/dev/null | openssl x509 -noout -datesExpired certificates are a common cause of sudden transfer failures.
openssl s_client — OpenSSL ↗ GoAnywhere resources — Fortra ↗ GoAnywhere user forum ↗ Checked Jul 2026ProcessFortra GoAnywhereFile did not arrive or was sent twice
- Check the job log for the run time and whether the get/put step succeeded.
- Confirm the file name pattern and date in the file name match what the project expects.
- Check the partner's folder and timestamps directly (sftp ls -l).
- If duplicate, check for two projects or a rerun, and whether the archive step moved the first copy.
- Tell the file's owner what happened before resending or deleting anything.
- Document the cause and any change made.
The two most common file-transfer complaints and how to check them.
GoAnywhere user forum ↗ GoAnywhere resources — Fortra ↗ sftp — OpenSSH ↗ Checked Jul 2026ProcessFortra GoAnywhereDaily MFT monitoring checklist
- Review overnight job results and failures.
- Check for stuck or long-running jobs in Active Jobs.
- Check disk space on the MFT server and archive folders.
- Check certificate and SSH key expirations coming up in the next 30 days.
- Check that expected inbound files arrived on time.
- Report anything abnormal with job name, time, and error.
A short routine that catches most transfer problems before the customer does.
GoAnywhere resources — Fortra ↗ GoAnywhere user forum ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessData flow — managed file transfer with GoAnywhere
- A partner or system connects with SFTP, FTPS, or AS2 and authenticates with a key or password.
- GoAnywhere stores the file and starts a project (a workflow) by schedule or by file arrival.
- The project moves, renames, encrypts, or decrypts the file and delivers it to the target server.
- Downstream batch jobs (for example in Maestro) start when the file is present.
- If a file is missing, check the GoAnywhere audit log, then the partner's connection and key, then the project run history.
Generic flow based on how MFT products work; confirm details with your team.
A typical file-transfer flow for health-plan batch processing. Exact project names and paths come from your environment.
GoAnywhere MFT documentation ↗ SFTP — Wikipedia ↗ AS2 — Wikipedia ↗ Checked Jul 2026Partner file did not arrive
- Check the job log for the run.
- Test connectivity and login with
sftp -vvv. - Confirm the partner sent the file.
- Rerun the project after the fix.
HEALTHsuite (RAM Platform)
ProcessHow HEALTHsuite fits together
- HEALTHsuite is RAM's own platform for managing health plan client data. Users work in a browser (HTML pages); the pages read and write data in a SQL database.
- Chain to remember: user's browser > network > web/application server > database (SQL) > batch jobs and file feeds (GoAnywhere, Maestro) that load and extract data.
- A problem can sit in any link, so test them one at a time starting at the user and working back.
- Data usually enters through scheduled file loads and leaves through extracts and reports.
- Everything touching it is regulated PHI — handle it under HIPAA rules.
Confirm the specific tiers, servers and tables from RAM's internal documentation.
A mental model for supporting a browser-based application that sits on a database. This is a general model; the internal design is documented in RAM's own runbooks.
RAM Technologies HEALTHsuite announcement — PRWeb ↗ HEALTHsuite Advantage — Capterra ↗ HIPAA Security Rule — HHS ↗ Checked Jul 2026ProcessA HEALTHsuite page will not load or errors
- Ask: which page, which user, what time, and the exact message. Does it fail for everyone or one user?
- Try another browser or a private window; hard refresh with Ctrl+F5.
- Open developer tools (F12) > Network and reload; note the failing request and its HTTP status.
- Status guide: 401/403 permissions or session; 404 wrong or missing page; 500 application or database error; 502/503/504 web or app tier down or slow.
- If 500 or 5xx, check the application and web server logs for the same time.
- Test the database from the app server (see test connection).
- If everyone is affected, check the web/app services and the database before anything else.
- Escalate with URL, time, user, status code, and log lines.
Following the request from the browser backward finds the failing layer quickly.
HTTP status codes — MDN ↗ Chrome DevTools ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ Checked Jul 2026ProcessBrowser developer tools in two minutes
- Press F12 (or Ctrl+Shift+I).
- Console tab: red errors are script problems; copy the first one.
- Network tab: reload the page, sort by Status or Time, and click a red or slow request.
- Headers tab shows the URL, method, and status; Response tab shows the server message.
- Disable cache (checkbox) and try again if the page looks old.
- Screenshot with PHI hidden, or note the status codes and URLs instead.
Quick way to see whether a page problem is the browser, the network, or the server.
Chrome DevTools ↗ Browser DevTools — MDN ↗ HTTP status codes — MDN ↗ Checked Jul 2026SafeCheck the web service (if it runs on Windows/IIS)
Get-Service W3SVC, WAS
Import-Module WebAdministration
Get-WebAppPoolState
Get-WebSite | Select Name,State,Bindings
Get-WinEvent -LogName Application -MaxEvents 30 | Where-Object {$_.LevelDisplayName -in 'Error','Warning'}
# log files: C:\inetpub\logs\LogFilesIf the front end is hosted on IIS these show whether the site and app pool are running and what errors were logged.
IIS documentation — Microsoft Learn ↗ Get-WinEvent — Microsoft Learn ↗ HTTP status codes — MDN ↗ Checked Jul 2026SafeAIXCheck the web service (if it runs on AIX/Unix)
ps -ef | grep -i -E "http|java|tomcat|nginx" netstat -an | grep -E "LISTEN.*(80|443|8080)" tail -100 /path/to/logs/error_log grep -i -E "error|exception" /path/to/logs/*.log | tail -30 df -g
If the web or application tier runs on AIX/Unix, confirm the process is up, the port is listening, and look at the newest errors.
IBM AIX documentation ↗ netstat — IBM AIX ↗ HTTP status codes — MDN ↗ Checked Jul 2026SafeTest the database connection from the app server
# Reach the port Test-NetConnection dbserver -Port 1433 # SQL Server default Test-NetConnection dbserver -Port 50000 # Db2 common default # Run a trivial query (SQL Server) sqlcmd -S dbserver -d DBNAME -E -Q "SELECT 1" # Db2 db2 connect to DBNAME user <user> db2 "values current timestamp"
Separates "the database is unreachable" from "the application is misbehaving". Ports shown are defaults; confirm the real ones.
Test-NetConnection — Microsoft Learn ↗ sqlcmd utility — Microsoft Learn ↗ Db2 documentation — IBM ↗ Checked Jul 2026SafeRead-only data checks for a member or claim question
-- Always use read-only access, the minimum columns, and approved tables or views. -- Replace placeholders with the real table and column names from the data dictionary. SELECT TOP 20 * FROM <member_table> WHERE <member_id> = '<id>'; -- SQL Server SELECT * FROM <member_table> WHERE <member_id> = '<id>' FETCH FIRST 20 ROWS ONLY; -- Db2 -- How many rows by status, and when was the last update? SELECT <status>, COUNT(*), MAX(<updated_at>) FROM <claim_table> GROUP BY <status>;
PHI. Query only what the ticket needs and follow the minimum-necessary rule.
Compares what the screen shows with what the database holds. Use IDs rather than names, return only what is needed, and never copy results into email or chat.
SELECT — Microsoft Learn ↗ Db2 documentation — IBM ↗ HIPAA Security Rule — HHS ↗ Checked Jul 2026ProcessData load to screen: trace a missing record end to end
- Source: did the file arrive on time and with the expected name? (GoAnywhere job log)
- Scheduling: did the load job run and succeed? (Maestro
conman "sj") - Load: any rejects or errors, and does the loaded row count match the file? (job log, Db2/SQL counts)
- Database: does the record exist and with the right status/date? (read-only query)
- Application: is the record visible on the screen, or hidden by a filter, date range, or permission?
- Say which link broke: file, job, load, data, or screen — and report with times and counts.
The standard way to answer "why is this member, claim, or file not showing?"
RAM Technologies HEALTHsuite announcement — PRWeb ↗ conman commands — HCL Workload Automation ↗ GoAnywhere user forum ↗ Checked Jul 2026ProcessHandle PHI while troubleshooting
- Use the minimum necessary: ticket IDs and record numbers instead of names or full details.
- Do not paste PHI into tickets, chat, or email unless that channel is approved for it.
- Blur or crop screenshots; remove PHI from logs before sharing.
- Share files only through approved secure transfer.
- Lock your screen; never share logins.
- Report any suspected exposure right away through the security/incident process.
Everything in a health plan data platform is regulated. These habits keep support work compliant.
HIPAA Security Rule — HHS ↗ HIPAA minimum necessary — HHS ↗ CMS.gov ↗ Checked Jul 2026ProcessReply to a health plan customer technical question
- Acknowledge quickly: you have it, who owns it, and when they will hear back.
- Restate the question in one sentence to confirm you understood.
- Gather facts: what, when, who affected, screenshots or IDs (no PHI in email).
- Answer plainly: what happened, what was done, what they should do, and what is still open.
- Give a next update time, even if the answer is "still investigating".
- Log the question, answer, and resolution so the next person can reuse it.
Short, clear, consistent replies keep customers confident.
ITIL incident management — Atlassian ↗ Writing clear support replies — Atlassian ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ Checked Jul 2026ProcessData flow — web application backed by SQL (generic)
- The user opens the application in a browser over HTTPS.
- The web server passes requests to the application, which reads and writes the SQL database.
- Batch jobs load or update data on a schedule.
- Reports and exports come from database queries.
- Slow page: check the query (blocking, missing index), then the web server, then the network. Error page: check the app and web server logs for the time of the error.
Generic flow; not a description of RAM internals.
A generic picture of a browser-based application on a SQL database. HEALTHsuite internals are not public, so confirm real server names and ports with your team.
SQL Server blocking — Microsoft Learn ↗ HTTP overview — MDN ↗ HTTP status codes — MDN ↗ Checked Jul 2026A user cannot open a page
- Check one user vs everyone.
- F12 > Network: note the failing request and status code.
- Check the web/app service and the database connection.
- Escalate with the details.
A record is missing on screen
- Check the source file arrived.
- Check the load job ran.
- Check the row exists in the database.
- Check filters or permissions on the screen.
ROC Maestro
ProcessROC MaestroMaestro vocabulary and job states
- Workstation (CPU): a server or agent where jobs run.
- Job: one unit of work (a script or command).
- Job stream (schedule): a group of jobs with dependencies and a run window.
- Dependency: what a job waits on — another job, a file, a time, or a resource.
- Limit: how many jobs may run at once on a workstation or stream.
- Fence: jobs with a priority below the fence will not launch.
- Common states: SUCC (finished OK), ABEND (failed), FAIL (could not launch), EXEC (running), READY (can launch), WAIT (waiting on dependencies), HOLD (held by an operator), PEND/SCHED (waiting for the stream start).
ROC Maestro descends from the original Maestro scheduler (later Tivoli/HCL Workload Scheduler). The conman commands here follow that lineage; confirm exact syntax in your version.
Maestro schedulers share a common model. Learn these words first; every command and screen uses them.
ROC Maestro for Open Systems overview ↗ conman commands — HCL Workload Automation ↗ Maestro UNIX user guide (Tivoli lineage) — Princeton archive ↗ Checked Jul 2026SafeROC MaestroSee jobs and job streams (showjobs / showschedules)
conman "sj" # show jobs (short form of showjobs) conman "sj @#@.@" # all jobs on all workstations conman "sj @#@.@" | grep -i abend # only failed jobs conman "ss @" # show job streams conman "ss @#STREAMNAME" # one stream
sj and ss are read-only. Use them first thing in the morning and again when a user reports a late or missing file.
Minor changeROC MaestroRerun a failed job
conman "sj @#STREAMNAME.@" # find the exact name and state conman "rr WORKSTATION#STREAMNAME.JOBNAME" # rerun (short for rerun)
Confirm the job is safe to rerun (some jobs duplicate data if run twice).
Reruns a job that ended in ABEND after the cause is fixed. Check dependent jobs and whether the job is safe to repeat.
conman commands — HCL Workload Automation ↗ Maestro UNIX user guide (Tivoli lineage) — Princeton archive ↗ ROC Maestro for Open Systems overview ↗ Checked Jul 2026Minor changeROC MaestroRelease, hold, and confirm
conman "rj WORKSTATION#STREAMNAME.JOBNAME" # release job dependencies conman "rs WORKSTATION#STREAMNAME" # release a stream conman "conf WORKSTATION#STREAMNAME.JOBNAME ;succ" # confirm as successful conman "conf WORKSTATION#STREAMNAME.JOBNAME ;abend" # confirm as failed
release lets a held or waiting job proceed; confirm marks the result of a job that was run manually outside Maestro.
Big changeROC MaestroCancel or kill a job
conman "cj WORKSTATION#STREAMNAME.JOBNAME" # cancel (job will not run) conman "k WORKSTATION#STREAMNAME.JOBNAME" # kill a running job
Get approval and tell the owner — dependent jobs can be skipped or blocked.
cancel removes a job from the day's run; kill stops one that is executing. Downstream jobs may be affected.
Minor changeROC MaestroAdd or remove a dependency
conman "adj WORKSTATION#STREAMNAME.JOBNAME ;follows WORKSTATION#STREAMNAME.OTHERJOB" conman "ddj WORKSTATION#STREAMNAME.JOBNAME ;follows WORKSTATION#STREAMNAME.OTHERJOB"
Changes affect today's run only. Document the reason in the ticket.
Temporarily make a job wait for another one, or remove a dependency that is blocking it.
conman commands — HCL Workload Automation ↗ Maestro UNIX user guide (Tivoli lineage) — Princeton archive ↗ ROC Maestro for Open Systems overview ↗ Checked Jul 2026Minor changeROC MaestroSubmit an ad hoc job or command
conman "sbd 'ls -l /data/inbound'" # submit a command conman "sbj JOBNAME" # submit an existing job conman "sbs STREAMNAME" # submit a stream
Runs something now outside the normal plan. Useful for testing or catching up.
conman commands — HCL Workload Automation ↗ Maestro UNIX user guide (Tivoli lineage) — Princeton archive ↗ ROC Maestro for Open Systems overview ↗ Checked Jul 2026Minor changeROC MaestroLimit, fence, and priority
conman "lc WORKSTATION ;5" # job limit on a workstation conman "ls WORKSTATION#STREAMNAME ;3" # job limit on a stream conman "f 20" # set the fence (jobs below 20 will not launch) conman "ap WORKSTATION#STREAMNAME.JOBNAME ;10" # change job priority
Controls how many jobs run at once and which run first. Use when the system is overloaded or a priority job is stuck behind others.
conman commands — HCL Workload Automation ↗ Maestro UNIX user guide (Tivoli lineage) — Princeton archive ↗ ROC Maestro for Open Systems overview ↗ Checked Jul 2026Big changeROC MaestroStart and stop production processes
conman "stop" conman "stop ;progressive" conman "start"
Never stop production processes without approval — it pauses all scheduled work on that machine.
Starts or stops the scheduler's production processes on a workstation. Jobs on that workstation will not launch while stopped.
conman commands — HCL Workload Automation ↗ Maestro UNIX user guide (Tivoli lineage) — Princeton archive ↗ ROC Maestro for Open Systems overview ↗ Checked Jul 2026ProcessROC MaestroA job abended — what to do
- Run
conman "sj"and note the job name, stream, workstation, and time. - Open the job's output/log (path is in the job definition) and read the end first.
- Check the usual causes: input file missing, filesystem full, database error (SQLCODE), expired password, remote host down.
- Check downstream jobs that are waiting on it.
- Fix the cause. If safe, rerun with
rr; if not, hold dependents and escalate. - Document the cause, fix, and time in the ticket.
The quickest path from alert to cause for a failed batch job.
conman commands — HCL Workload Automation ↗ Maestro UNIX user guide (Tivoli lineage) — Princeton archive ↗ ROC Maestro for Open Systems overview ↗ Checked Jul 2026Nightly stream abended
- Run
conman "sj @#@.@" | grep -i abend. - Read the job log, fix the cause (space, file, database).
conman "rr <job>"if safe to rerun.- Release dependents and report.
A job is stuck in WAIT or HOLD
conman "sj"shows what it follows.- Check whether the predecessor finished or the file exists.
rjto release, orddjto remove the dependency, with approval.
Systems & Services
ProcessSystems/Services — Operating Systems
- Slackware ↗ — the most "Unix-like" Linux distribution
- OpenBSD ↗ — multi-platform 4.4BSD-based UNIX-like operating system
- HardenedBSD ↗ — HardenedBSD aims to implement innovative exploit mitigation and security solutions
- Kali Linux ↗ — Linux distribution used for Penetration Testing, Ethical Hacking and network security assessments
- Parrot Security OS ↗ — cyber security GNU/Linux environment
- Backbox Linux ↗ — penetration test and security assessment oriented Ubuntu-based Linux distribution
- BlackArch ↗ — is an Arch Linux-based penetration testing distribution for penetration testers
- Pentoo ↗ — is a security-focused livecd based on Gentoo
- Security Onion ↗ — Linux distro for intrusion detection, enterprise security monitoring, and log management
- Tails ↗ — is a live system that aims to preserve your privacy and anonymity
- vedetta ↗ — OpenBSD router boilerplate
- Qubes OS ↗ — is a security-oriented OS that uses Xen-based virtualization
Section "Operating Systems" of the "Systems/Services" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Systems/Services chapter ↗ Source list — GitHub ↗ Slackware ↗ Checked Jul 2026ProcessSystems/Services — HTTP(s) Services
- Varnish Cache ↗ — HTTP accelerator designed for content-heavy dynamic web sites
- Nginx ↗ — open source web and reverse proxy server that is similar to Apache, but very light weight
- OpenResty ↗ — is a dynamic web platform based on NGINX and LuaJIT
- Tengine ↗ — a distribution of Nginx with some advanced features
- Caddy Server ↗ — is an open source, HTTP/2-enabled web server with HTTPS by default
- HAProxy ↗ — the reliable, high performance TCP/HTTP load balancer
Section "HTTP(s) Services" of the "Systems/Services" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Systems/Services chapter ↗ Source list — GitHub ↗ Varnish Cache ↗ Checked Jul 2026ProcessSystems/Services — DNS Services
- Unbound ↗ — validating, recursive, and caching DNS resolver (with TLS)
- Knot Resolver ↗ — caching full resolver implementation, including both a resolver library and a daemon
- PowerDNS ↗ — is an open source authoritative DNS server, written in C++ and licensed under the GPL
Section "DNS Services" of the "Systems/Services" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Systems/Services chapter ↗ Source list — GitHub ↗ Unbound ↗ Checked Jul 2026ProcessSystems/Services — Other Services
- 3proxy ↗ — tiny free proxy server
Section "Other Services" of the "Systems/Services" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Systems/Services chapter ↗ Source list — GitHub ↗ 3proxy ↗ Checked Jul 2026ProcessSystems/Services — Security/hardening
- Emerald Onion ↗ — is a 501(c)(3) nonprofit organization and transit internet service provider (ISP)
- pi-hole ↗ — the Pi-hole® is a DNS sinkhole that protects your devices from unwanted content
- maltrail ↗ — malicious traffic detection system
- security_monkey ↗ — monitors AWS, GCP, OpenStack, and GitHub orgs for assets and their changes over time
- firecracker ↗ — secure and fast microVMs for serverless computing
- streisand ↗ — sets up a new server running your choice of WireGuard, OpenSSH, OpenVPN, and more
Section "Security/hardening" of the "Systems/Services" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Systems/Services chapter ↗ Source list — GitHub ↗ Emerald Onion ↗ Checked Jul 2026Find a tool in the "Systems/Services" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
VM & Storage Health
SafeDisk space check — Windows guest
Get-CimInstance Win32_LogicalDisk | select DeviceID,
@{n="FreeGB";e={[math]::Round($_.FreeSpace/1GB,2)}},
@{n="SizeGB";e={[math]::Round($_.Size/1GB,2)}}Run locally, or wrap in Invoke-Command / az vm run-command for a remote VM you can't RDP into.
The standard low-disk-space alert triage command — shows every volume's free vs. total capacity in one line.
Get-CimInstance — Microsoft Learn ↗ Get-VHD — Microsoft Learn ↗ Resize-Partition — Microsoft Learn ↗ Checked Jul 2026SafeHyper-V VHD/VHDX growth
Get-VM | select Name,@{n="VHDPath";e={(Get-VMHardDiskDrive $_.Name).Path}}
Get-VHD -Path <path> | select Path,Size,FileSize,VhdTypeDynamic VHDX files grow toward their max size — FileSize is actual host disk consumption, Size is the configured cap.
Useful when host storage is full but the guest OS reports plenty of free space — the dynamic disk itself has grown large on the host.
Get-VHD — Microsoft Learn ↗ Resize-Partition — Microsoft Learn ↗ az disk update — Microsoft Learn ↗ Checked Jul 2026Minor changeExtend a full Windows volume
Get-PartitionSupportedSize -DriveLetter C Resize-Partition -DriveLetter C -Size (Get-PartitionSupportedSize -DriveLetter C).SizeMax
Only works if unallocated space already exists on the same disk — extend the underlying Azure/VMware/Hyper-V disk first if not.
Grows an existing partition into adjacent unallocated space without needing a reboot in most cases.
Resize-Partition — Microsoft Learn ↗ Get-VHD — Microsoft Learn ↗ az disk update — Microsoft Learn ↗ Checked Jul 2026Minor changeGrow an Azure managed disk
az disk update -g <rg> -n <diskName> --size-gb <newSize>
OS-disk resize typically requires the VM to be deallocated first; data disks on some SKUs support online resize.
Increases the disk's provisioned size in Azure — you still need to extend the partition inside the guest afterward.
az disk update — Microsoft Learn ↗ Get-VHD — Microsoft Learn ↗ Resize-Partition — Microsoft Learn ↗ Checked Jul 2026VM disk-full alert
- Check guest-level free space:
Get-CimInstance Win32_LogicalDisk. - If the guest disk has room on the underlying disk, extend the partition:
Resize-Partition. - If the underlying disk is also full, grow it first (Azure disk, Hyper-V VHD, or VMware datastore).
- Clean up large/old files as a stopgap while the resize is scheduled.
Host storage full even though guests report free space
- Check dynamic VHD/VHDX actual file size vs. configured max:
Get-VHD. - Check for orphaned snapshots/checkpoints consuming space.
- Compact or consolidate disks during a maintenance window.
04 Hybrid EnvironmentsEntra Connect sync, Exchange hybrid, Azure connectivity, hybrid identity, and change management across on-prem and cloud
Change Management for Automation (On-Prem / Hybrid / Cloud)
ProcessChange request: what to include
- Summary: what is changing and why.
- Systems and users affected, and the risk and impact.
- Type: standard (pre-approved), normal (needs review), or emergency.
- Implementation steps, who does them, and the schedule/window.
- Test plan and how success will be verified.
- Backout (rollback) plan and the point of no return.
- Approvals and communication plan.
- Post-change review: did it work, what was learned.
A complete change record makes approval faster and recovery easier.
Change management — Atlassian ↗ NIST SP 800-128 configuration management ↗ ITIL change enablement — Atlassian ↗ Checked Jul 2026ProcessRoll out a new automation or AI agent safely
- Pilot in a test environment or with one low-risk client or team.
- Start in approval-required mode — a person confirms every action.
- Review the audit log of what it did and what it would have done.
- Fix gaps in rules, permissions, and data.
- Widen to more clients in stages, still with approval on risky actions.
- Move low-risk, proven tasks to zero-touch; keep approval on access changes, deletions, and anything affecting PHI.
- Schedule regular reviews and keep a rollback plan and kill switch.
The same staged approach works for Pia automations, Thread flows, Power Automate, and in-house scripts.
Change management — Atlassian ↗ NIST AI Risk Management Framework ↗ Pia pre-built automations ↗ Checked Jul 2026ProcessOn-prem, hybrid, or cloud: what changes
- Identity: on-prem uses Active Directory; cloud uses Entra ID; hybrid needs sync (Entra Connect) and care with which side owns an object.
- Connectivity: on-prem and hybrid automations often need an agent or connector inside the network and outbound firewall rules.
- Credentials: service accounts and permissions differ by side — least privilege on both.
- Data location: confirm where data is processed and stored, especially PHI.
- Updates: on-prem you patch the agent; cloud the vendor does.
- Failure modes: a hybrid link, DNS, or certificate problem can break the automation even if both sides are healthy.
- Testing: test on-prem and cloud paths separately and together.
Where the work runs changes the permissions, network, and failure points you must plan for.
NIST SP 800-128 configuration management ↗ Microsoft Entra Connect — Microsoft Learn ↗ Change management — Atlassian ↗ Checked Jul 2026ProcessEmergency change and rollback
- Declare it an emergency change and notify the approver.
- Record what you are doing and why, in real time.
- Take a backup or snapshot if time allows.
- Make the smallest change that restores service.
- Verify service and tell the stakeholders.
- Do the full change record and review afterward.
When something is down, act fast but keep a record. The review afterward is where the process improves.
Change management — Atlassian ↗ NIST SP 800-128 configuration management ↗ Incident management — Atlassian ↗ Checked Jul 2026ProcessPost-change checklist
- Confirm the change works and nothing else broke.
- Check monitoring, logs, and scheduled jobs.
- Update documentation and runbooks.
- Close the change record with results and lessons.
- Tell users and stakeholders it is done.
Closing the loop keeps documentation and monitoring accurate.
Change management — Atlassian ↗ NIST SP 800-128 configuration management ↗ ITIL change enablement — Atlassian ↗ Checked Jul 2026Rolling out a new automation
- Write the change request.
- Pilot in test with approval on every action.
- Review the audit log and widen in stages.
- Move proven low-risk tasks to zero-touch.
Moving an automation from on-prem to cloud
- List identity, network, and credential dependencies.
- Build and test the cloud version in parallel.
- Cut over in a window with a rollback plan.
- Verify, then retire the old one.
Exchange Online / Hybrid / Mail Flow
SafeConnect & routing baseline
Connect-ExchangeOnline -UserPrincipalName admin@tenant.com Get-SendConnector | fl Name,SmartHosts,DNSRoutingEnabled Get-HybridConfiguration | fl *
Connect-ExchangeOnline opens the session; Get-SendConnector and Get-HybridConfiguration confirm outbound routing and hybrid state.
Connect-ExchangeOnline — Microsoft Learn ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026SafeConnectors, domains, transport rules
Get-InboundConnector | fl Name,Enabled,SenderDomains,RequireTls Get-OutboundConnector | fl Name,Enabled,RecipientDomains,SmartHosts Get-AcceptedDomain | ft Name,DomainName,DomainType,Default -Auto Get-TransportRule | ft Name,State,Mode,Priority -Auto Get-RemoteDomain | fl Name,DomainName,AutoReplyEnabled,TNEFEnabled
Connector, accepted-domain, transport-rule, and remote-domain settings determine how mail is routed and filtered.
Get-TransportRule — Microsoft Learn ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026SafeMessage trace
Get-MessageTraceV2 -SenderAddress sender@domain.com -RecipientAddress user@domain.com ` -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) Get-MessageTraceDetail -MessageTraceId <id> -RecipientAddress user@domain.com
Traces a specific message's delivery path and status (Delivered/Failed/Filtered) through Exchange Online in the last ~10 days.
Get-MessageTraceV2 — Microsoft Learn ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026SafeOn-prem mailflow & queues
Test-Mailflow -TargetEmailAddress user@domain.com Get-Queue | ft Identity,Status,MessageCount,NextHopDomain -Auto
On-prem Exchange equivalents: Test-Mailflow sends a synthetic test message, Get-Queue shows what's stuck in transport.
Get-Queue — Microsoft Learn ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026Minor changeRestart transport service
Restart-Service MSExchangeTransport -Force
Only during approved maintenance or active outage.
Restarts the on-prem transport service — this drops in-flight mail processing, so only run it during a maintenance window or active outage.
Restart-Service — Microsoft Learn ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026Minor changeOffice 365 mailbox not showing on-premises
Enable-MailUser -Identity "user@domain.com" -ExternalEmailAddress "user@domain.mail.onmicrosoft.com" Enable-RemoteMailbox "user@domain.com" # Exchange Online — grab the ExchangeGuid Connect-ExchangeOnline Get-Mailbox "user@domain.com" | ft Identity,ExchangeGuid # back on-prem — set the matching GUID, then force a sync Set-RemoteMailbox "user@domain.com" -ExchangeGuid "<guid-from-above>" Start-ADSyncSyncCycle -PolicyType Delta
Happens when a mailbox was licensed/created directly in Microsoft 365 without ever running Enable-RemoteMailbox on-prem — the on-prem AD object was never mail-enabled to begin with.
Mail-enables the on-prem AD object, links it to the existing cloud mailbox, and syncs the ExchangeGuid so both sides agree on the same mailbox — the standard fix for a hybrid mailbox that's invisible in the on-prem EAC.
Office 365 mailbox not showing in Exchange Hybrid — ALI TAJRAN ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026ProcessOn-prem Exchange vs Microsoft 365 — which admin portal
- On-prem mailbox: manage in the Exchange admin center at https://<server>/ecp and use OWA on the server URL.
- Cloud mailbox: manage in the Microsoft 365 / Exchange admin center and sign in via office.com.
- Check which one applies: Get-Mailbox in Exchange Online returns it only if it is a cloud mailbox.
- Hybrid: recipients live in one place; edit them in the portal that owns the mailbox.
Mixing up the two portals is a common cause of "I changed it but nothing happened".
Exchange hybrid deployments — Microsoft Learn ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026ProcessAdd an external user to a distribution list
- In the Exchange admin center go to Recipients > Contacts > Add a mail contact.
- Enter name and the external email address.
- Open the distribution group > Members and add the contact.
- Test by sending to the list.
Distribution lists cannot contain raw external addresses; they need a mail contact.
Manage mail contacts — Microsoft Learn ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026ProcessAdd a Gmail user to Microsoft 365 (Outlook)
- In Gmail enable IMAP (Settings > Forwarding and POP/IMAP).
- Turn on 2-step verification on the Google account.
- Create an app password in the Google account security settings.
- In Outlook add the account with the Gmail address and the app password (not the normal password).
- Revoke the app password when the mailbox no longer needs to be connected.
Google blocks normal-password sign-in from third-party mail clients; app passwords are the supported alternative.
Sign in with app passwords — Google ↗ Mail flow best practices — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — Exchange hybrid mail flow
- Mail from the internet reaches Exchange Online Protection first (if the MX record points to Microsoft).
- Exchange Online delivers to cloud mailboxes, or routes to on-prem for mailboxes that still live there.
- The hybrid send and receive connectors carry mail between the two sides over TLS; the certificate must be valid and match.
- Check message trace in the Exchange admin center to see where a message stopped.
- Outbound mail from on-prem can route through Exchange Online if centralized mail transport is enabled.
Where messages travel in a hybrid setup and which parts to check first (MX, connectors, certificates, message trace).
Exchange hybrid — Microsoft Learn ↗ Mail flow in Exchange Online — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026External mail bouncing or not delivering
- Confirm the domain accepts mail:
Get-AcceptedDomain. - Trace the specific message:
Get-MessageTraceV2. - Check for a transport rule silently redirecting or blocking it:
Get-TransportRule. - Verify the outbound connector/smart host:
Get-SendConnector. - If hybrid, confirm hybrid config is healthy:
Get-HybridConfiguration.
Hybrid mail flow breaks after a change
- Review the full hybrid config:
Get-HybridConfiguration | fl *. - Check both connector directions:
Get-InboundConnector/Get-OutboundConnector. - Confirm the outbound public IP hasn't changed:
nslookup myip.opendns.com resolver1.opendns.com. - Re-run the Hybrid Configuration Wizard if connector settings look stale.
Mailboxes / Shared Mailboxes / Holds
SafeIdentity, size, and folder breakdown
Get-Mailbox user@domain.com | fl DisplayName,RecipientTypeDetails,PrimarySmtpAddress,ForwardingSmtpAddress Get-MailboxStatistics shared@domain.com | fl DisplayName,TotalItemSize,ItemCount,LastLogonTime Get-MailboxFolderStatistics shared@domain.com | sort FolderSize -Descending | select -First 20 Name,FolderPath,ItemsInFolder,FolderSize
Get-Mailbox and Get-MailboxStatistics are the standard starting points for any mailbox-identity or size/quota question.
Get-MailboxStatistics — Microsoft Learn ↗ Mailbox permissions overview — Microsoft Learn ↗ Litigation hold — Microsoft Learn ↗ Checked Jul 2026SafePermissions & holds
Get-MailboxPermission shared@domain.com | ? {$_.IsInherited -eq $false} | ft User,AccessRights,Deny -Auto
Get-RecipientPermission shared@domain.com | ft Trustee,AccessRights,IsInherited -Auto
Get-Mailbox -SoftDeletedMailbox -Identity user@domain.com
Get-Mailbox user@domain.com | fl LitigationHoldEnabled,LitigationHoldDate,LitigationHoldOwnerFullAccess (MailboxPermission) and SendAs (RecipientPermission) are separate rights and commonly confused during access troubleshooting.
Get-MailboxPermission — Microsoft Learn ↗ Mailbox permissions overview — Microsoft Learn ↗ Litigation hold — Microsoft Learn ↗ Checked Jul 2026Big changeEnable litigation hold
Set-Mailbox user@domain.com -LitigationHoldEnabled $true
Legal/compliance-impacting — get approval first.
Litigation hold preserves mailbox content for legal/compliance reasons — this is a compliance-impacting change and needs sign-off.
Set-Mailbox — Microsoft Learn ↗ Mailbox permissions overview — Microsoft Learn ↗ Litigation hold — Microsoft Learn ↗ Checked Jul 2026Minor changeRetention & access grants
Set-Mailbox shared@domain.com -RetainDeletedItemsFor 7 Add-MailboxPermission shared@domain.com -User user@domain.com -AccessRights FullAccess -InheritanceType All Add-RecipientPermission shared@domain.com -Trustee user@domain.com -AccessRights SendAs
FullAccess may auto-map depending on parameters; SendAs is separate from Send on Behalf.
Deleted-item retention and FullAccess/SendAs grants change what a user or delegate can see or recover.
Add-MailboxPermission — Microsoft Learn ↗ Mailbox permissions overview — Microsoft Learn ↗ Litigation hold — Microsoft Learn ↗ Checked Jul 2026Minor changeMailbox folder permissions & calendar access
Install-Module ExchangeOnlineManagement Connect-ExchangeOnline Get-MailboxFolderPermission UserMailbox:\Calendar Add-MailboxFolderPermission -Identity UserMailbox:\Calendar -User Delegate -AccessRights Editor Set-MailboxFolderPermission -Identity UserMailbox:\Calendar -User Delegate -AccessRights Reviewer Remove-MailboxFolderPermission -Identity UserMailbox:\Calendar -User Delegate
View, add, change, or remove access on any mailbox folder. Use Set- to change an existing entry and Add- for a new one.
Add-MailboxFolderPermission — Microsoft Learn ↗ Get-MailboxFolderPermission — Microsoft Learn ↗ Mailbox permissions overview — Microsoft Learn ↗ Litigation hold — Microsoft Learn ↗ Checked Jul 2026ProcessFolder permission levels (what each one allows)
- Owner: full control including permissions.
- PublishingEditor: create, edit, delete all items and subfolders.
- Editor: create, edit, delete all items.
- PublishingAuthor: create items and subfolders; edit/delete own items.
- Author: create items; edit/delete own items.
- NonEditingAuthor: create items; read all; delete own items.
- Reviewer: read only.
- Contributor: create items only.
- AvailabilityOnly: free/busy only. LimitedDetails: free/busy plus subject and location.
- None: no access.
Reference for the -AccessRights values used with mailbox folder permission cmdlets.
Add-MailboxFolderPermission — Microsoft Learn ↗ Mailbox permissions overview — Microsoft Learn ↗ Litigation hold — Microsoft Learn ↗ Checked Jul 2026Shared mailbox full or bouncing
- Check size vs quota:
Get-MailboxStatistics. - Find what's consuming space:
Get-MailboxFolderStatisticssorted by FolderSize. - Confirm a hold isn't blocking cleanup:
Get-Mailbox | fl LitigationHoldEnabled. - Adjust retention or archive large folders once approved.
User can't send-as or open a shared mailbox
- Confirm FullAccess vs SendAs separately — they're not the same right.
- Grant the specific missing right:
Add-MailboxPermissionorAdd-RecipientPermission. - Have the user restart Outlook — Autodiscover can take up to an hour to pick up a new mailbox.
Network devices & Azure
SafeACLs, auth, and NSG review
show access-lists show run | section access-list show logging | include LOGIN_FAILED az network nsg rule list -g <rg> --nsg-name <nsg> -o table az security alert list -o table
NSG rules and Defender for Cloud alerts are the Azure-side equivalent of an ACL/security-event review on network gear.
az network nsg rule — Microsoft Learn ↗ az security alert — Microsoft Learn ↗ Cisco IOS security command reference — Cisco ↗ Checked Jul 2026ProcessData flow — hybrid connectivity: on-prem to Azure
- On-prem traffic for Azure ranges goes to the edge firewall or router.
- It crosses either an IPsec site-to-site VPN over the internet or a private ExpressRoute circuit.
- The Azure gateway in the hub VNet receives it and routes to spoke VNets through peering.
- Both sides need matching address ranges with no overlap, plus routes and firewall rules in both directions.
- If a tunnel is up but traffic fails, check routes (UDRs), NSGs, and the on-prem firewall rules.
The main paths between a local network and Azure, and what must line up on both sides.
Hybrid network reference architectures — Microsoft Learn ↗ VPN Gateway — Microsoft Learn ↗ ExpressRoute — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — Azure hub-and-spoke with firewall
- Shared services (firewall, gateway, DNS) live in the hub VNet.
- Workloads live in spoke VNets that peer to the hub.
- User-defined routes send spoke-to-spoke and internet traffic through the firewall.
- NSGs add subnet-level allow and deny rules inside each spoke.
- Add one spoke per workload or environment so changes stay contained.
The standard Azure network layout. Central inspection and one hybrid link serve many workloads.
Hub-spoke topology — Microsoft Learn ↗ Azure Firewall — Microsoft Learn ↗ Network security groups — Microsoft Learn ↗ Checked Jul 2026Traffic unexpectedly blocked
- Check the device ACL:
show access-listsorshow run | section access-list. - Check for recent login/config-failure events.
- On Azure, check the NSG rule set:
az network nsg rule list. - Adjust the specific rule after confirming intended traffic.
Windows Identity / Azure AD Join / Profile
SafeJoin state & profile inventory
dsregcmd /status Get-ComputerInfo | select CsManufacturer,CsModel,OsName,OsVersion,WindowsProductName Get-CimInstance Win32_UserProfile | select LocalPath,SID,Loaded,Special reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI"
dsregcmd is key for Outlook/M365 auth issues; the LogonUI key shows the last logged-on user.
dsregcmd /status is the first command for any Entra/Azure AD join or SSO problem — it reports join state, PRT status, and SSO health.
Troubleshoot devices with dsregcmd — Microsoft Learn ↗ Primary Refresh Token overview — Microsoft Learn ↗ Troubleshoot user profile issues — Microsoft Learn ↗ Checked Jul 2026Big changeRemove a stale/corrupt local profile
Get-CimInstance Win32_UserProfile | ? LocalPath -like "*\username" | Remove-CimInstance
Back up data first.
Removing a Win32_UserProfile object deletes the local profile — back up any local-only data first, this cannot be undone from PowerShell.
Remove-CimInstance — Microsoft Learn ↗ Troubleshoot devices with dsregcmd — Microsoft Learn ↗ Primary Refresh Token overview — Microsoft Learn ↗ Checked Jul 2026SafeFind a user SID
whoami /user
Shows the SID of the current user. Use the SID to match the correct key under ProfileList.
whoami — Microsoft Learn ↗ Troubleshoot devices with dsregcmd — Microsoft Learn ↗ Primary Refresh Token overview — Microsoft Learn ↗ Checked Jul 2026ProcessFix a temporary profile ("TEMP" folder)
- Run
whoami /userwhile signed in to note the SID; the profile is C:\Users\TEMP. - Create or use a local admin account and sign out the affected user. Reboot to release locks.
- Sign in as the admin, then rename the user's folder in C:\Users to add .old (or delete it if no data is needed).
- Open regedit and go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.
- Delete the key for the user's SID (including any ending in .bak).
- Have the user sign in to recreate the profile; copy data back from the .old folder.
Back up the old folder first. Deleting the wrong registry key can break other profiles.
A temporary profile appears when Windows cannot load the real one, often after a stale ProfileList registry entry.
whoami — Microsoft Learn ↗ Troubleshoot devices with dsregcmd — Microsoft Learn ↗ Primary Refresh Token overview — Microsoft Learn ↗ Checked Jul 2026Big changeDelete a user profile (command line)
net user [username] /delete rmdir /s /q C:\Users\[username]
Permanent — the user's files are deleted.
Removes the local account and its profile folder. Domain accounts use the profile removal methods above instead.
net user — Microsoft Learn ↗ Troubleshoot devices with dsregcmd — Microsoft Learn ↗ Primary Refresh Token overview — Microsoft Learn ↗ Checked Jul 2026SafeUser profile location (ProfileList)
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" /s # PowerShell: SID -> profile folder Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\*" | Select PSChildName,ProfileImagePath # Path of the current user's profile echo %USERPROFILE%
Each user SID has a key under ProfileList with a ProfileImagePath value pointing to the profile folder. Keys ending in .bak point to a profile Windows could not load.
Registry Editor ProfileList key — Microsoft Learn ↗ Troubleshoot devices with dsregcmd — Microsoft Learn ↗ Primary Refresh Token overview — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — hybrid identity sync (AD to Entra ID)
- Users, groups, and attributes live in on-prem AD; the sync server reads them and writes matching objects to Entra ID.
- The sync scheduler runs about every 30 minutes (delta sync). Force one with
Import-Module ADSyncthenStart-ADSyncSyncCycle -PolicyType Delta. - Sign-in is checked by password hash sync (hash copy), pass-through authentication (agent asks AD), or AD FS (federation).
- If a change is missing in the cloud, check the sync server for errors before changing the user.
- Only change synced attributes in on-prem AD; cloud edits to synced fields are overwritten.
How identity moves from on-prem Active Directory to Microsoft Entra ID, and where to look when a user or password change does not appear.
Entra Connect Sync — Microsoft Learn ↗ Entra Connect sync scheduler — Microsoft Learn ↗ Password hash sync — Microsoft Learn ↗ Checked Jul 2026Device shows not joined / SSO failing
- Run
dsregcmd /statusand check AzureAdJoined, DomainJoined, and AzureAdPrt. - If not joined, re-trigger with
dsregcmd /leavethen/join, then restart. - Confirm network reachability to login.microsoftonline.com.
- Re-check
dsregcmd /statusfor AzureAdPrt: YES after sign-in.
Corrupt profile — "temporary profile" message
- Confirm the affected profile object:
Get-CimInstance Win32_UserProfile. - Back up user data from the corrupt profile path.
- Remove the broken profile object:
Remove-CimInstance. - Have the user log back in to generate a fresh profile.
05 CloudMicrosoft 365, Entra, Graph, Intune, OneDrive, Office, licensing, and mail rules
Calendar / Meeting Processing
SafeRoom/resource behavior
Get-CalendarProcessing room@domain.com | fl AutomateProcessing,AllowConflicts,BookingWindowInDays,MaximumDurationInMinutes Get-MailboxCalendarFolder user@domain.com:\Calendar | fl * Get-MailboxFolderPermission user@domain.com:\Calendar
Shows how a resource mailbox (room/equipment) auto-accepts or conflicts with bookings, and who has calendar delegate access.
Get-CalendarProcessing — Microsoft Learn ↗ Resource mailboxes — Microsoft Learn ↗ Room and equipment mailboxes — Microsoft Learn ↗ Checked Jul 2026Minor changeChange booking / calendar permissions
Set-CalendarProcessing room@domain.com -AutomateProcessing AutoAccept -AllowConflicts $false Add-MailboxFolderPermission user@domain.com:\Calendar -User other@domain.com -AccessRights Reviewer Set-MailboxFolderPermission user@domain.com:\Calendar -User other@domain.com -AccessRights Editor
Use Set- (not Add-) if the permission already exists.
Changes user-facing booking behavior or calendar-sharing permissions — use Set- rather than Add- if a permission entry already exists.
Set-CalendarProcessing — Microsoft Learn ↗ Resource mailboxes — Microsoft Learn ↗ Room and equipment mailboxes — Microsoft Learn ↗ Checked Jul 2026Room booking always declines or double-books
- Review current behavior:
Get-CalendarProcessing. - Set auto-accept if that's the intended behavior:
Set-CalendarProcessing -AutomateProcessing AutoAccept. - Check AllowConflicts and BookingWindowInDays match policy.
- Test-book a meeting to confirm it now auto-accepts.
User can't see or edit a shared calendar
- Check the existing permission:
Get-MailboxFolderPermission user:\Calendar. - Add or update the right level with Add- or Set-MailboxFolderPermission.
- Have the user reopen Outlook or re-add the shared calendar.
macOS Management (Intune & Apple Business Manager)
ProcessmacOSSet up Apple Business Manager & connect it to Intune
- Apply for an Apple Business Manager account at business.apple.com — you'll need a D-U-N-S number and a non-IT contact to vouch for the org. Budget several days for approval (D-U-N-S lookup/verification can take up to 5 business days).
- In Intune: Devices > Enrollment > Apple > Enrollment Program Tokens, create an MDM push certificate first, then download the public key (.pem) for the ADE token.
- In Apple Business Manager: your name > Preferences > add an MDM Server, upload the .pem, download the resulting MDM Server Token (.p7m).
- Back in Intune, upload the token with your Apple ID to finish linking Apple Business Manager to Intune.
- Optional: apply for a VPP token (Apps and Books > your tax status) to sync purchased apps/books, and set a default device assignment for new devices.
Start the D-U-N-S/Apple Business Manager application early if you have a deadline — the admin-side verification is the part you can't control or speed up.
Apple Business Manager itself isn't an MDM — it's the portal that lets Apple devices, apps, and organization-owned Apple IDs sync into whatever MDM (here, Intune) you actually manage them with. Only devices added through it are "supervised," which unlocks additional Intune configuration options.
Manage macOS with Intune & Apple Business Manager — IntuneStuff ↗ macOS enrollment — Microsoft Learn ↗ Automated device enrollment for macOS — Microsoft Learn ↗ Checked Jul 2026ProcessmacOS 13+Add a Mac to Apple Business Manager (Apple Configurator)
- Install the Apple Configurator app on an iPhone and sign in with the Apple Business Manager Apple ID.
- In network configuration, select your MDM server, then factory-reset the target Mac (Apple silicon or T2 chip, macOS 12.0.1+).
- On the Mac's setup screen, hold the iPhone close and scan the "Assign this Mac to your Organization" prompt (or pair manually with the 6-digit code).
- In Intune, create an enrollment profile (Devices > Enrollment > Apple > your token > Profiles > Create > macOS).
- Sync the token's Devices tab in Intune so the newly added Mac shows up, then assign it to the enrollment profile and save.
If the device is handed to a user before assignment, there's a 30-day provisional window during which they could remove it from supervision/MDM if it isn't yet enrolled with a linked MDM server.
This is the standard way to add a Mac to Apple Business Manager after the fact — useful when a device wasn't purchased through Apple or an authorized reseller (which would normally add it automatically).
Manage macOS with Intune & Apple Business Manager — IntuneStuff ↗ macOS enrollment — Microsoft Learn ↗ Automated device enrollment for macOS — Microsoft Learn ↗ Checked Jul 2026ProcessmacOS 13+Configure Platform SSO
- In Intune: Devices > macOS > Configuration profiles > Create > Settings Catalog > Authentication > Extensible Single Sign On (SSO).
- Choose an authentication method: Secure Enclave Key (most secure, hardware-bound, no password sync) or Password (syncs the Entra ID password to the local account — simpler UX).
- Set the required keys: Extension Identifier, Team Identifier, Registration Token, Account Display Name, Screen Locked Behavior, and the IdP URLs (login.microsoftonline.com, login.microsoft.com, sts.windows.net — add the sovereign-cloud variants only if needed).
- Disable per-user (legacy) MFA for any user going through this setup — it breaks password sync during registration.
- Assign the profile to a device or user group, then install the Company Portal app as a macOS LOB app so users can complete registration.
Scope password-setting policies to device groups and compliance policies (with no password settings) to user groups — mixing them onto the same group has been reported to silently break Platform SSO registration.
Platform SSO replaces AD-style directory binding on macOS — it lets the same Entra ID credential unlock the Mac and provide SSO to Entra-backed apps and sites, without a JavaScript-based web login flow.
Configure Platform SSO for macOS — Microsoft Learn ↗ macOS enrollment — Microsoft Learn ↗ Automated device enrollment for macOS — Microsoft Learn ↗ Checked Jul 2026ProcessmacOSEnroll macOS in Microsoft Defender
- In Intune: Endpoint security > Microsoft Defender for Endpoint > enable "Allow Microsoft Defender for Endpoint to enforce Endpoint Security Configurations," then confirm the connection is enabled from the Defender portal side too (Settings > Endpoints > Advanced features > Microsoft Intune connection).
- Create the required macOS configuration profiles (Settings Catalog or Templates > Custom, using Microsoft's provided .mobileconfig files): System Extensions, Network Filter, Full Disk Access, Background Services, Notifications, Bluetooth Permissions, and Microsoft AutoUpdate.
- Create an Endpoint Detection and Response policy and a Microsoft Defender Antivirus policy under Endpoint Security, and assign all profiles to your macOS device/user group.
- Deploy the Defender for Endpoint app and the onboarding package (from Microsoft 365 Defender > Settings > Endpoints > Onboarding, OS = macOS, method = Intune) as Intune apps/profiles.
- On the device, confirm enrollment through Company Portal, then verify the Defender icon appears and the device shows up under Assets > Devices in the Defender portal.
The kernel/system-extension settings template was deprecated in April 2025 — new deployments should configure System Extensions directly through the Settings Catalog instead.
Each of the six-plus configuration profiles grants one specific macOS privacy permission (System Extensions, Full Disk Access, Background Services, etc.) that Defender's daemon needs — missing any one of them typically shows up as Defender running but reporting incomplete protection.
Intune-based deployment for Defender on macOS — Microsoft Learn ↗ macOS enrollment — Microsoft Learn ↗ Automated device enrollment for macOS — Microsoft Learn ↗ Checked Jul 2026A Mac will not enroll
- Confirm the Mac is assigned in Apple Business Manager and the Intune token is valid.
- Check the enrollment profile is assigned.
- Erase and restart Setup Assistant if needed.
Policy or app not arriving
- Check the device is checking in (Intune device page).
- Force a sync.
- Check assignments and group membership.
Mail Rules & License Automation
SafeReview a mailbox's inbox rules
Get-InboxRule -Mailbox user@domain.com | ft Name,Enabled,ForwardTo,DeleteMessage -Auto
# pull the full description/conditions for one specific rule
Get-InboxRule -Mailbox "user@domain.com" -Identity "RuleName" | select -ExpandProperty description | flA rule that silently forwards or deletes mail is a common sign of a compromised mailbox — check this early in any "missing email" ticket. The -Identity/description variant is the fastest way to see a rule's exact conditions when the summary table view isn't detailed enough.
Lists every inbox rule on a mailbox, including auto-forward and auto-delete rules that don't show up in the user's own view if hidden.
Get-InboxRule — Microsoft Learn ↗ Remove-InboxRule — Microsoft Learn ↗ Set-MgUserLicense — Microsoft Learn ↗ Checked Jul 2026Big changeRemove a malicious rule
Remove-InboxRule -Mailbox user@domain.com -Identity "RuleName"
Screenshot/export the rule details before removing — this is usually part of a BEC or phishing incident response, so preserve evidence first.
Deletes a specific inbox rule — pair with the incident-response steps below when the rule was attacker-created.
Remove-InboxRule — Microsoft Learn ↗ Get-InboxRule — Microsoft Learn ↗ Set-MgUserLicense — Microsoft Learn ↗ Checked Jul 2026SafeExport distribution group membership to CSV
$Groups = Get-DistributionGroup
$Groups | ForEach-Object {
$group = $_.Name
Get-DistributionGroupMember $group | ForEach-Object {
New-Object -TypeName PSObject -Property @{
GroupName = $group
Members = $_.Name
EmailAddress = $_.PrimarySMTPAddress
}
}
} | Export-CSV "C:\DistributionGroupMember.csv" -NoTypeInformation -Encoding UTF8Useful for a full membership audit across every distribution group in one pass, rather than checking groups one at a time.
Produces a flat, sortable CSV of every group and its members — handy for access reviews, offboarding audits, or just documenting what a group actually contains before making changes to it.
Get-DistributionGroupMember — Microsoft Learn ↗ Get-InboxRule — Microsoft Learn ↗ Remove-InboxRule — Microsoft Learn ↗ Checked Jul 2026SafeGroup-based licensing status
Get-MgGroup -GroupId <groupId> -Property DisplayName,AssignedLicenses,LicenseProcessingState | fl
LicenseProcessingState shows whether Entra is still working through a large group's license assignments — large groups can take time to process.
Confirms whether automatic group-based licensing has finished applying, and which SKUs are attached to the group.
Get-MgGroup — Microsoft Learn ↗ Get-InboxRule — Microsoft Learn ↗ Remove-InboxRule — Microsoft Learn ↗ Checked Jul 2026Minor changeAssign / remove a license directly
Set-MgUserLicense -UserId user@domain.com -AddLicenses @{SkuId="<skuId>"} -RemoveLicenses @()Prefer group-based licensing where possible — direct assignment is easy to lose track of during offboarding.
Adds or removes a specific license SKU on a single user — useful for one-off exceptions outside group-based licensing.
Set-MgUserLicense — Microsoft Learn ↗ Get-InboxRule — Microsoft Learn ↗ Remove-InboxRule — Microsoft Learn ↗ Checked Jul 2026Missing or redirected email — suspected BEC
- Check inbox rules:
Get-InboxRule. - If a malicious rule is found, preserve evidence (export details) before removing it.
- Cross-reference sign-in logs and the Unified Audit Log for the same window (see Incident Response).
- Reset credentials and review MFA methods as part of full containment.
New hire missing licenses or apps
- Confirm group membership feeding group-based licensing.
- Check license processing state on the group.
- If stuck, assign the license directly as a stopgap:
Set-MgUserLicense. - Confirm apps appear after the next Entra sync cycle.
Microsoft 365 / Entra / Graph / Licensing
SafeConnect & look up users/groups
Connect-MgGraph -Scopes User.Read.All,Group.Read.All,Directory.Read.All Get-MgUser -UserId user@domain.com -Property Id,DisplayName,UserPrincipalName,AccountEnabled | fl Get-MgGroup -Filter "startswith(displayName,'GroupName')" -All Get-MgGroupMember -GroupId <groupId> -All
Connect-MgGraph is the modern replacement for the retiring AzureAD/MSOnline modules for user and group lookups in Entra ID.
Connect-MgGraph — Microsoft Learn ↗ Group-based licensing — Microsoft Learn ↗ Review app consent requests — Microsoft Learn ↗ Checked Jul 2026Minor changeGroup membership changes (Entra/Graph)
New-MgGroupMember -GroupId <groupId> -DirectoryObjectId <userId> Remove-MgGroupMemberByRef -GroupId <groupId> -DirectoryObjectId <userId>
Affects access/apps if the group controls them — confirm the correct group first.
Adding or removing a user from an Entra group can change application access if the group drives licensing or app assignment — confirm the target group first.
New-MgGroupMember — Microsoft Learn ↗ Group-based licensing — Microsoft Learn ↗ Review app consent requests — Microsoft Learn ↗ Checked Jul 2026SafeLicensing & enterprise apps
Get-MgSubscribedSku | select SkuPartNumber,ConsumedUnits -ExpandProperty PrepaidUnits
Get-MgUserLicenseDetail -UserId user@domain.com | select SkuPartNumber
Get-MgServicePrincipal -Filter "startswith(displayName,'AppName')" -All
Get-MgOauth2PermissionGrant -All | ? {$_.ClientId -eq "<servicePrincipalId>"}OAuth consent review is security-sensitive.
SKU and license-detail cmdlets show what's assigned before you troubleshoot an app-access issue tied to licensing.
Get-MgSubscribedSku — Microsoft Learn ↗ Group-based licensing — Microsoft Learn ↗ Review app consent requests — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — sign-in with Conditional Access and MFA
- The app sends the user to Entra ID to sign in.
- Entra ID checks the account, then evaluates Conditional Access: user, app, device state, location, and sign-in risk.
- If the policy requires it, the user completes MFA or a passkey.
- Entra ID issues a token; the app uses it to open the resource.
- Check Entra sign-in logs: the Conditional Access tab shows which policy applied and why it passed or failed.
The path every cloud sign-in follows. Most "cannot sign in" tickets are decided at the Conditional Access step.
Conditional Access — Microsoft Learn ↗ Entra MFA — Microsoft Learn ↗ Sign-in logs — Microsoft Learn ↗ Checked Jul 2026User missing an app because a license didn't apply
- Check assigned licenses:
Get-MgUserLicenseDetail. - Check group-based licensing state:
Get-MgGroup -Property LicenseProcessingState. - Confirm the SKU has available seats:
Get-MgSubscribedSku. - Remove-and-reassign the license to force reprocessing if it's stuck.
Unknown app requesting consent
- Identify the app:
Get-MgServicePrincipal -Filter "startswith(displayName,'...')". - Review what it was granted:
Get-MgOauth2PermissionGrant. - Revoke consent from the Entra admin center if illegitimate, and log it as a security event.
Microsoft Intune / Endpoint Manager
SafeDevice inventory & compliance state
Get-MgDeviceManagementManagedDevice | select DeviceName,ComplianceState,OSVersion,LastSyncDateTime
ComplianceState of "noncompliant" is the fastest lead when a device is blocked from Conditional Access.
The baseline inventory command for any Intune-managed device — confirms enrollment, OS version, and last check-in at a glance.
Get-MgDeviceManagementManagedDevice — Microsoft Learn ↗ Monitor device compliance — Microsoft Learn ↗ Sync a device in Intune — Microsoft Learn ↗ Checked Jul 2026SafeCheck compliance policy status for a device
Get-MgDeviceManagementManagedDeviceCompliancePolicyState -ManagedDeviceId <id>
Shows exactly which policy is failing (encryption, passcode, OS version, etc.) rather than just the overall pass/fail flag.
Breaks a "noncompliant" status down into the specific setting that's failing, so you're not guessing which policy to fix.
Monitor device compliance — Microsoft Learn ↗ Sync a device in Intune — Microsoft Learn ↗ Get-MgInformationProtectionBitlockerRecoveryKey — Microsoft Learn ↗ Checked Jul 2026Minor changeForce a remote sync
Sync-MgDeviceManagementManagedDevice -ManagedDeviceId <id>
Pushes the device to check in immediately instead of waiting for its normal 8-hour sync cycle — the standard first step after a policy change.
Speeds up applying a newly assigned policy or app without waiting for the device's scheduled check-in window.
Sync a device in Intune — Microsoft Learn ↗ Monitor device compliance — Microsoft Learn ↗ Get-MgInformationProtectionBitlockerRecoveryKey — Microsoft Learn ↗ Checked Jul 2026Big changeRetire or wipe a device
Invoke-MgRetireDeviceManagementManagedDevice -ManagedDeviceId <id>
# full factory reset — confirm this is really intended
Invoke-MgWipeDeviceManagementManagedDevice -ManagedDeviceId <id>Retire removes company data and management but leaves the device otherwise usable; Wipe is a full factory reset. Confirm which one before running.
The standard offboarding/lost-device actions — Retire for a departing employee's personal device, Wipe for a lost or compromised company device.
Wipe devices — Microsoft Learn ↗ Monitor device compliance — Microsoft Learn ↗ Sync a device in Intune — Microsoft Learn ↗ Checked Jul 2026SafeReview assigned configuration profiles
Get-MgDeviceManagementDeviceConfiguration | select DisplayName,Id
Cross-reference against the device's compliance policy state to spot a conflicting or missing profile assignment.
Lists every configuration profile in the tenant — useful for confirming a device is actually targeted by the profile you expect.
Get-MgDeviceManagementDeviceConfiguration — Microsoft Learn ↗ Monitor device compliance — Microsoft Learn ↗ Sync a device in Intune — Microsoft Learn ↗ Checked Jul 2026Big changeRemote lock a lost or stolen device
Lock-MgDeviceManagementManagedDeviceRemote -ManagedDeviceId <id>
Locks the device at the OS level immediately — the fastest containment step you can take before a full Retire or Wipe.
Buys time on a lost or stolen device without committing to a full wipe — useful when you're not yet certain the device won't be recovered.
Remote lock a device — Microsoft Learn ↗ Monitor device compliance — Microsoft Learn ↗ Sync a device in Intune — Microsoft Learn ↗ Checked Jul 2026SafeRetrieve a BitLocker recovery key
$deviceId = (Get-MgDevice -Filter "displayName eq '<computername>'").DeviceId $keyIds = (Get-MgInformationProtectionBitlockerRecoveryKey -Filter "deviceId eq '$deviceId'").Id Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $keyIds -Property key
Pulling the actual key value (not just the key ID) requires the -Property key parameter and generates an Entra audit log entry — that's expected and by design.
The standard recovery path when a user is stuck at the BitLocker recovery screen and can't reach their key through the self-service portal.
Get-MgInformationProtectionBitlockerRecoveryKey — Microsoft Learn ↗ Monitor device compliance — Microsoft Learn ↗ Sync a device in Intune — Microsoft Learn ↗ Checked Jul 2026SafeCheck Autopilot enrollment status
Get-MgDeviceManagementWindowsAutopilotDeviceIdentity | select SerialNumber,EnrollmentState,GroupTag
EnrollmentState stuck on "notContacted" usually means the device hasn't reached the Autopilot service yet — check network connectivity during OOBE first.
Confirms whether a device is actually registered for Autopilot and what profile/group tag it will pick up before it ships to the end user.
Get-MgDeviceManagementWindowsAutopilotDeviceIdentity — Microsoft Learn ↗ Monitor device compliance — Microsoft Learn ↗ Sync a device in Intune — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — Windows Autopilot and Intune enrollment
- The device hardware hash is registered with Autopilot (by the vendor or an admin).
- At first boot the device contacts Autopilot and gets its deployment profile.
- The user signs in; the device joins Entra ID and enrolls in Intune.
- The Enrollment Status Page waits while required policies and apps install.
- If it stalls, check the ESP screen, the device's Intune status, and the app install errors.
The new-device path from box to ready desktop, and where Autopilot problems usually appear.
Windows Autopilot — Microsoft Learn ↗ Intune enrollment — Microsoft Learn ↗ Troubleshoot Autopilot — Microsoft Learn ↗ Checked Jul 2026Device shows noncompliant / blocked from Conditional Access
- Check the device's ComplianceState and identify which specific policy is failing.
- Force a sync to push the fix immediately instead of waiting for the next check-in.
- Confirm the correct configuration profile is actually assigned to the device.
- If it's a lost or compromised device instead, use Retire or Wipe as appropriate.
User stuck at the BitLocker recovery screen
- Confirm the device is Intune/Entra-managed — self-managed local BitLocker keys aren't stored in the tenant.
- Look up the device's DeviceId, then its recovery key ID.
- Pull the actual key value with the -Property key parameter.
- Read the key to the user, or have them enter it locally if you're remote.
Office / Outlook
SafeService & profile checks
Get-Service ClickToRunSvc Get-ChildItem "HKCU:\Software\Microsoft\Office\16.0\Outlook\Profiles" -ErrorAction SilentlyContinue Get-AppxPackage Microsoft.AAD.BrokerPlugin Get-Process Outlook -ErrorAction SilentlyContinue
ClickToRunSvc state and the AAD broker package are the two most common root causes of Office/Outlook sign-in loops.
Get-AppxPackage — Microsoft Learn ↗ Repair Office — Microsoft Learn ↗ Add-AppxPackage — Microsoft Learn ↗ Checked Jul 2026Minor changeRepair
appwiz.cpl # launch Office repair UI
Get-AppxPackage Microsoft.AAD.BrokerPlugin | % {
Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"
}Restart Outlook after re-registering the AAD broker.
appwiz.cpl opens the Programs and Features repair dialog; re-registering the AAD broker fixes modern-auth sign-in loops in Office apps.
Add-AppxPackage — Microsoft Learn ↗ Repair Office — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ Checked Jul 2026ProcessExcel "Not enough memory" opening attachments
- In Excel go to File > Options > Trust Center > Trust Center Settings.
- Select Protected View.
- Uncheck Enable Protected View for Outlook attachments.
- OK out and reopen the attachment.
- Re-enable it afterwards if the user does not need it off.
Protected View can cause memory errors when opening attachments straight from Outlook. Turning it off lowers protection, so re-enable if possible.
What is Protected View — Microsoft Support ↗ Repair Office — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ Checked Jul 2026Minor changeOutlook will not close (background process)
# End the stuck process taskkill /IM outlook.exe /F # IMAP accounts: let Outlook log out without waiting reg add "HKCU\SOFTWARE\Microsoft\Office\16.0\Outlook\IMAP" /v AllowLOGOUTWithoutOK /t REG_DWORD /d 1 /f
Outlook sometimes stays running after closing. End it in Task Manager; for IMAP accounts the registry value lets it close without waiting for the server.
Outlook troubleshooting — Microsoft Learn ↗ Repair Office — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ Checked Jul 2026Minor changeEnable Modern Authentication
# Office 2013 reg add "HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity" /v EnableADAL /t REG_DWORD /d 1 /f reg add "HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity" /v Version /t REG_DWORD /d 1 /f # Office 2016 reg add "HKCU\Software\Microsoft\Exchange" /v AlwaysUseMSOAuthForAutoDiscover /t REG_DWORD /d 1 /f
Forces Outlook to use modern (OAuth) sign-in. Restart Outlook after applying.
Enable modern authentication — Microsoft Learn ↗ Repair Office — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ Checked Jul 2026ProcessInstall new Teams on VDI / WVD
- Download the Teams bootstrapper .exe and the MSIX for the right architecture (x86, x64, ARM64) from the Microsoft VDI page.
- Open Command Prompt as administrator.
- Run
teamsbootstrapper.exe -p -o "c:\path\to\teams.msix". - Sign in to Teams and confirm optimization/redirection works in the session.
New Teams on VDI uses a bootstrapper that provisions the MSIX package for all users on the host.
New Teams VDI requirements — Microsoft Learn ↗ Teams bootstrapper download ↗ Repair Office — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ Checked Jul 2026SafeForce classic Teams to open
cd %LOCALAPPDATA%\Microsoft\Teams\current Teams.exe
Classic Teams is being retired — use only if still installed.
Launches the classic Teams client directly from its install folder when the shortcut does nothing.
Teams troubleshooting — Microsoft Learn ↗ Repair Office — Microsoft Learn ↗ Get-AppxPackage — Microsoft Learn ↗ Checked Jul 2026Outlook keeps prompting for credentials
- Check ClickToRunSvc is running.
- Check the AAD broker package state.
- Re-register the AAD broker package for the user.
- Fully close and reopen Outlook — check Task Manager for lingering processes first.
Office apps won't open or crash on launch
- Confirm no other Office process is hung.
- Run a Quick Repair via appwiz.cpl first, then Online Repair if that fails.
- Check the Application event log for the specific crashing module.
- Recreate the Outlook profile as a last resort if it's profile-specific.
OneDrive / Sync
SafeVerify account & mount point
Get-CimInstance Win32_Process -Filter "name='OneDrive.exe'" | select ProcessId,CommandLine Get-ItemProperty "HKCU:\Software\Microsoft\OneDrive\Accounts\Business1" | fl UserEmail,UserFolder,MountPoint,TenantDisplayName
OneDrive stores its account and sync-root config under this registry key per configured business account (Business1, Business2, …).
OneDrive sync troubleshooting — Microsoft Learn ↗ Get-ItemProperty — Microsoft Learn ↗ Known Folder Move overview — Microsoft Learn ↗ Checked Jul 2026Minor changeFix mount point / restart client
$k="HKCU:\Software\Microsoft\OneDrive\Accounts\Business1" $v=(Get-ItemProperty $k).UserFolder Set-ItemProperty $k -Name MountPoint -Value $v Stop-Process -Name OneDrive -Force -ErrorAction SilentlyContinue Start-Process "$env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe"
Back up the registry key first. Expect "looking for changes" after restart.
Resetting MountPoint to the known UserFolder and restarting the client is the standard fix for a OneDrive sync root that's lost its target.
OneDrive sync troubleshooting — Microsoft Learn ↗ Get-ItemProperty — Microsoft Learn ↗ Known Folder Move overview — Microsoft Learn ↗ Checked Jul 2026Stuck on "Processing changes"
- Confirm the client is running and signed into the right account (check the process command line).
- Restart the client: stop the OneDrive process, then relaunch it.
- If still stuck, unlink and relink the account to rebuild the local sync database.
- Confirm MountPoint still points at a valid folder.
Files missing or not syncing
- Confirm the sync-root and account registry details are correct.
- Check the OneDrive logs for sync errors.
- Rule out path-length limits (over ~400 characters) or a Known Folder Move conflict.
06 SecurityAudit evidence, incident response, registry/policy, local admin, certs/TLS, KnowBe4, firewalls
Barracuda Email Security
ProcessFind and review a quarantined/blocked message
- In the Email Security Gateway, open Message Log and search by sender/recipient/subject.
- Check the delivery status and reason it was blocked or quarantined (spam score, policy, virus).
- If it looks like a false positive, check content-filtering rules and the sender domain's reputation.
Barracuda's message log is the single source of truth for "did this email even arrive" — check it before assuming a mail-flow problem elsewhere.
Confirms whether a "missing email" complaint is actually a Barracuda block/quarantine versus a problem further up the mail flow chain.
Barracuda Campus documentation ↗ Barracuda Email Security Gateway docs ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026ProcessRelease a message from quarantine
- Locate the message in the user's or admin quarantine inbox.
- Confirm it's legitimate — check the sender domain and any links before releasing.
- Release/deliver the message, and allowlist the sender if this will recur.
Releasing mail bypasses the spam/virus filter for that message — always verify legitimacy first, especially for anything with links or attachments.
The standard remediation for a legitimate email that got caught by spam filtering — releases it without disabling filtering for future mail.
Barracuda Campus documentation ↗ Barracuda Email Security Gateway docs ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026ProcessSender blocked / can't receive mail from a domain
- Check the IP/domain block list and sender reputation for the domain in question.
- Check content-filtering and policy rules that might be catching it.
- Add a sender exception if legitimate, and document why.
Reputation-based blocks resolve themselves over time if the sending domain cleans up its practices — an exception is a stopgap, not a permanent fix.
Separates a policy-based block (something you configured) from a reputation-based block (Barracuda's own threat intelligence), which need different fixes.
Barracuda Campus documentation ↗ Barracuda Email Security Gateway docs ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026ProcessCompiled vs interpreted (.exe vs bytecode)
- An .exe is a compiled binary of machine code for one platform.
- Python compiles source to bytecode, which is platform-independent and run by the Python interpreter.
- End users running bytecode need Python installed; tools like PyInstaller bundle it into an .exe.
- Compiled code usually runs faster and uses less memory than interpreted code.
Explains why Python scripts need the interpreter but compiled programs do not.
Python glossary — bytecode ↗ Barracuda Campus documentation ↗ Barracuda Email Security Gateway docs ↗ Checked Jul 2026ProcessData flow — inbound mail through Barracuda
- The MX record points to the Barracuda service, so all inbound mail reaches it first.
- Barracuda scans for spam, malware, and phishing, and quarantines what it blocks.
- Clean mail is delivered to Exchange, which should accept mail only from Barracuda addresses.
- If mail is missing, check the Barracuda message log first, then Exchange message trace.
- Add allow or block entries carefully; broad allows are a common way spam gets in.
Where mail goes when a filtering service is in front of the mail server.
Barracuda Campus docs ↗ Mail flow in Exchange Online — Microsoft Learn ↗ Message trace — Microsoft Learn ↗ Checked Jul 2026User says a legitimate email never arrived
- Search the Message Log for the message by sender, recipient, or subject.
- Check whether it was blocked, quarantined, or actually delivered.
- If quarantined, verify legitimacy, then release it.
- If it's a pattern from one domain, check sender reputation and consider a documented exception.
Blogs, Podcasts & Videos
ProcessBlogs/Podcasts/Videos — SysOps/DevOps
- Varnish for PHP developers ↗ — very interesting presentation of Varnish by Mattias Geniar
- A Netflix Guide to Microservices ↗ — talks about the chaotic and vibrant world of microservices at Netflix
Section "SysOps/DevOps" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ Varnish for PHP developers ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Developers
- Comparing C to machine lang ↗ — compare a simple C app with the compiled machine code of that program
Section "Developers" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ Comparing C to machine lang ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Geeky Persons
- Brendan Gregg's Blog ↗ — is an industry expert in computing performance and cloud computing
- Gynvael "GynDream" Coldwind ↗ — is a IT security engineer at Google
- Michał "lcamtuf" Zalewski ↗ — white hat hacker, computer security expert
- Mattias Geniar ↗ — developer, sysadmin, blogger, podcaster and public speaker
- Nick Craver ↗ — software developer and systems administrator for Stack Exchange
- Scott Helme ↗ — security researcher, speaker and founder of securityheaders.com and report-uri.com
- Brian Krebs ↗ — The Washington Post and now an Independent investigative journalist
- Bruce Schneier ↗ — is an internationally renowned security technologist, called a "security guru"
- Chrissy Morgan ↗ — advocate of practical learning, Chrissy also takes part in bug bounty programs
- Andy Gill ↗ — is a hacker at heart who works as a senior penetration tester
- Daniel Miessler ↗ — cybersecurity expert and writer
- Samy Kamkar ↗ — is an American privacy and security researcher, computer hacker
- Javvad Malik ↗ — is a security advocate at AlienVault, a blogger event speaker and industry commentator
- Graham Cluley ↗ — public speaker and independent computer security analyst
- Kacper Szurek ↗ — detection engineer at ESET
- Troy Hunt ↗ — web security expert known for public education and outreach on security topics
- raymii.org ↗ — sysadmin specializing in building high availability cloud environments
- Robert Penz ↗ — IT security expert
Section "Geeky Persons" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ Brendan Gregg's Blog ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Geeky Blogs
- Linux Audit ↗ — the Linux security blog about auditing, hardening and compliance by Michael Boelen
- The Grymoire ↗ — collection of useful incantations for wizards, be you computer wizards, magicians, or whatever
- Secjuice ↗ — is the only non-profit, independent and volunteer led publication in the information security space
- Decipher ↗ — security news that informs and inspires
Section "Geeky Blogs" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ Linux Audit ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Geeky Vendor Blogs
- Tenable Podcast ↗ — conversations and interviews related to Cyber Exposure, and more
- Sophos ↗ — threat news room, giving you news, opinion, advice and research on computer security issues
- Tripwire State of Security ↗ — blog featuring the latest news, trends and insights on current security issues
- Malwarebytes Labs Blog ↗ — security blog aims to provide insider news about cybersecurity
- TrustedSec ↗ — latest news, and trends about cybersecurity
- PortSwigger Web Security Blog ↗ — about web app security vulns and top tips from our team of web security
- AT&T Cybersecurity blog ↗ — news on emerging threats and practical advice to simplify threat detection
- Thycotic ↗ — where CISOs and IT Admins come to learn about industry trends, IT security, and more
Section "Geeky Vendor Blogs" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ Tenable Podcast ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Geeky Cybersecurity Podcasts
- Risky Business ↗ — is a weekly information security podcast featuring news and in-depth interviews
- Cyber, by Motherboard ↗ — stories, and focus on the ideas about cybersecurity
- Tenable Podcast ↗ — conversations and interviews related to Cyber Exposure, and more
- The many hats club ↗ — featuring stories from a wide range of Infosec people (Whitehat, Greyhat and Blackhat)
- Darknet Diaries ↗ — true stories from the dark side of the Internet
- OSINTCurious Webcasts ↗ — is the investigative curiosity that helps people be successful in OSINT
- Security Weekly ↗ — the latest information security and hacking news
Section "Geeky Cybersecurity Podcasts" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ Risky Business ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Geeky Cybersecurity Video Blogs
- rev3rse security ↗ — offensive, binary exploitation, web app security, hardening, red team, blue team
- LiveOverflow ↗ — a lot more advanced topics than what is typically offered in paid online courses - but for free
- J4vv4D ↗ — the important information regarding our internet security
Section "Geeky Cybersecurity Video Blogs" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ rev3rse security ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Best Personal Twitter Accounts
- @blackroomsec ↗ — a white-hat hacker/pentester. Intergalactic Minesweeper Champion 1990
- @MarcoCiappelli ↗ — Co-Founder @ITSPmagazine, at the intersection of IT security and society
- @binitamshah ↗ — Linux Evangelist. Malwares. Kernel Dev. Security Enthusiast
- @joe_carson ↗ — an InfoSec Professional and Tech Geek
- @mikko ↗ — CRO at F-Secure, Reverse Engineer, TED Speaker, Supervillain
- @esrtweet ↗ — often referred to as ESR, is an American software developer, and open-source software advocate
- @gynvael ↗ — security researcher/programmer, @DragonSectorCTF founder/player, technical streamer
- @x0rz ↗ — Security Researcher & Cyber Observer
- @hasherezade ↗ — programmer, malware analyst. Author of PEbear, PEsieve, libPeConv
- @TinkerSec ↗ — tinkerer, cypherpunk, hacker
- @alisaesage ↗ — independent hacker and researcher
- @SwiftOnSecurity ↗ — systems security, industrial safety, sysadmin, author of decentsecurity.com
- @dakami ↗ — is one of just seven people with the authority to restore the DNS root keys
- @samykamkar ↗ — is a famous "grey hat" hacker, security researcher, creator of the MySpace "Samy" worm
- @securityweekly ↗ — founder & CTO of Security Weekly podcast network
- @jack_daniel ↗ — @SecurityBSides co-founder
- @thegrugq ↗ — Security Researcher
- @matthew_d_green ↗ — a cryptographer and professor at Johns Hopkins University
Section "Best Personal Twitter Accounts" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ @blackroomsec ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Best Commercial Twitter Accounts
- @haveibeenpwned ↗ — check if you have an account that has been compromised in a data breach
- @bugcrowd ↗ — trusted by more of the Fortune 500 than any other crowdsourced security platform
- @Malwarebytes ↗ — most trusted security company. Unmatched threat visibility
- @sansforensics ↗ — the world's leading Digital Forensics and Incident Response provider
- @attcyber ↗ — AT&T Cybersecurity’s Edge-to-Edge technologies provide threat intelligence, and more
- @TheManyHatsClub ↗ — an information security focused podcast and group of individuals from all walks of life
- @hedgehogsec ↗ — Hedgehog Cyber. Gibraltar and Manchester's top boutique information security firm
- @NCSC ↗ — the National Cyber Security Centre. Helping to make the UK the safest place to live and work online
- @Synacktiv ↗ — IT security experts
Section "Best Commercial Twitter Accounts" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ @haveibeenpwned ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — A piece of history
- How to Do Things at ARL ↗ — how to configure modems, scan images, record CD-ROMs, and other.*
Section "A piece of history" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ How to Do Things at ARL ↗ Checked Jul 2026ProcessBlogs/Podcasts/Videos — Other
- Diffie-Hellman Key Exchange (short version) ↗ — how Diffie-Hellman Key Exchange worked
Section "Other" of the "Blogs/Podcasts/Videos" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Blogs/Podcasts/Videos chapter ↗ Source list — GitHub ↗ Diffie-Hellman Key Exchange (short version) ↗ Checked Jul 2026Find a tool in the "Blogs/Podcasts/Videos" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Compliance — HIPAA & ISO
ProcessHandling PHI on a healthcare client system
- Confirm you're authorized under the client's BAA before accessing PHI-containing systems.
- Avoid exporting or emailing PHI outside approved, encrypted channels.
- Log access per HIPAA audit requirements — who, when, and what was accessed.
When in doubt about whether a system holds PHI, treat it as if it does until confirmed otherwise.
A Business Associate Agreement defines what a vendor/technician is authorized to access — working outside that scope is a compliance violation even if well-intentioned.
HHS HIPAA Security Rule — HHS.gov ↗ HIPAA Breach Notification Rule — HHS.gov ↗ ISO/IEC 27001 — ISO ↗ Checked Jul 2026ProcessISO 27001-aligned change documentation
- Document the change request, approval, and rollback plan before making a production change.
- Record what was changed, by whom, and when (see the ticket note template in Escalation & Documentation).
- Confirm least-privilege access was used for the change.
This is the same discipline as the Escalation & Documentation ticket template — ISO 27001 just formalizes it as an audit requirement.
Change-management documentation is one of the most commonly audited controls under ISO/IEC 27001 — consistent records here make an audit far less painful.
ISO/IEC 27001 overview — ISO.org ↗ HHS HIPAA Security Rule — HHS.gov ↗ HIPAA Breach Notification Rule — HHS.gov ↗ Checked Jul 2026ProcessResponding to a compliance-relevant security incident
- Treat any confirmed PHI or regulated-data exposure as a reportable incident — engage compliance/legal immediately.
- Follow the Security Incident Response steps for containment first.
- Preserve evidence and timeline for breach-notification requirements.
Containment and compliance notification run in parallel, not sequentially — don't wait for legal sign-off before isolating an active threat.
Breach-notification clocks (HIPAA's 60-day rule, for example) start from discovery, not from when containment finishes — early legal/compliance engagement matters.
HIPAA Breach Notification Rule — HHS.gov ↗ HHS HIPAA Security Rule — HHS.gov ↗ ISO/IEC 27001 — ISO ↗ Checked Jul 2026Working a ticket that touches PHI or regulated data
- Confirm your access is authorized under the client's BAA before touching anything.
- Document the change per ISO 27001 practice — request, approval, and rollback plan.
- If you find evidence of a breach or exposure, stop and follow Security Incident Response immediately.
- Preserve logs and evidence, and loop in compliance/legal per the breach-notification timeline.
Daily Knowledge & News
ProcessYour daily knowledge and news — RSS Readers
- Feedly ↗ — organize, read and share what matters to you
- Inoreader ↗ — similar to feedly with a support for filtering what you fetch from rss
Section "RSS Readers" of the "Your daily knowledge and news" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Your daily knowledge and news chapter ↗ Source list — GitHub ↗ Feedly ↗ Checked Jul 2026ProcessYour daily knowledge and news — IRC Channels
- #hackerspaces ↗ — hackerspace IRC channels
Section "IRC Channels" of the "Your daily knowledge and news" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Your daily knowledge and news chapter ↗ Source list — GitHub ↗ #hackerspaces ↗ Checked Jul 2026ProcessYour daily knowledge and news — Security
- The Hacker News ↗ — leading news source dedicated to promoting awareness for security experts and hackers
- Latest Hacking News ↗ — provides the latest hacking news, exploits and vulnerabilities for ethical hackers
- Security Newsletter ↗ — security news as a weekly digest (email notifications)
- Google Online Security Blog ↗ — the latest news and insights from Google on security and safety on the Internet
- Qualys Blog ↗ — expert network security guidance and news
- DARKReading ↗ — connecting the Information Security Community
- Darknet ↗ — latest hacking tools, hacker news, cybersecurity best practices, ethical hacking & pen-testing
- publiclyDisclosed ↗ — public disclosure watcher who keeps you up to date about the recently disclosed bugs
- Reddit - Hacking ↗ — a subreddit dedicated to hacking and hackers
- Packet Storm ↗ — information security services, news, files, tools, exploits, advisories and whitepapers
- Sekurak ↗ — about security, penetration tests, vulnerabilities and many others (PL/EN)
- nf.sec ↗ — basic aspects and mechanisms of Linux operating system security (PL)
Section "Security" of the "Your daily knowledge and news" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Your daily knowledge and news chapter ↗ Source list — GitHub ↗ The Hacker News ↗ Checked Jul 2026ProcessYour daily knowledge and news — Other/All-in-one
- Changelog ↗ — is a community of hackers; news & podcasts for developers and hackers
Section "Other/All-in-one" of the "Your daily knowledge and news" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Your daily knowledge and news chapter ↗ Source list — GitHub ↗ Changelog ↗ Checked Jul 2026Find a tool in the "Your daily knowledge and news" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Data Safeguards & Backups
ProcessBackup verification checklist
- Confirm each backup job ran and finished (scheduler, Db2 history, SQL backupset, mksysb listing).
- Check size and time against the previous run.
- Check the backup is stored in the approved location and encrypted.
- Test a restore on a schedule to a non-production target and verify the data.
- Record the result; report failures right away.
Combine with the Db2 backup history and SQL backupset entries in this guide.
A backup you have never restored is only a hope. Verify both the job and the restore.
Db2 documentation — IBM ↗ mksysb — IBM AIX ↗ Back up and restore SQL Server — Microsoft Learn ↗ Checked Jul 2026ProcessSecure data handling and transfer
- Send PHI only through approved secure transfer (SFTP/MFT, encrypted portal).
- Encrypt files with the partner's PGP key when required.
- Keep copies only as long as needed, then delete securely.
- Do not store PHI on laptops, USB drives, or personal cloud storage.
- Use least-privilege access and review who has it regularly.
- Log transfers and keep audit evidence.
Practical rules for keeping client data safe.
HIPAA Security Rule — HHS ↗ GoAnywhere resources — Fortra ↗ Encryption and PHI — HHS ↗ Checked Jul 2026ProcessData retention and disposal
- Follow the retention schedule in company policy and the customer contract.
- Archive according to the approved method and location.
- Delete files and media securely at the end of retention (certified wipe or destruction).
- Record what was destroyed, when, and by whom.
- Never delete without confirming it is not under a legal hold.
Keeps data for as long as needed and no longer.
HIPAA Security Rule — HHS ↗ Media sanitization — NIST SP 800-88 ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessReport a suspected data incident
- Stop and do not delete anything.
- Note what happened, when, which system, and what data may be involved.
- Report immediately through the incident or security channel.
- Preserve logs and evidence.
- Follow instructions from the security/compliance team.
Speed matters — notification clocks may start when the incident is discovered.
Breach notification — HHS ↗ HIPAA Security Rule — HHS ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessData flow — 3-2-1 backup and restore test
- Keep three copies, on two kinds of media, with one off-site (and ideally one immutable or offline).
- Back up on a schedule, then replicate to an off-site or cloud target.
- Send job results to monitoring; failed or missing jobs should open a ticket.
- Test a restore on a schedule; a backup that was never restored is unproven.
- Document the restore steps and the recovery time and point targets.
The standard backup chain from source to off-site copy to verified restore.
3-2-1 backup rule — NIST SP 800-34 ↗ Azure Backup — Microsoft Learn ↗ Back up and restore SQL Server — Microsoft Learn ↗ Checked Jul 2026Backup failed
- Read the job log.
- Fix space or access.
- Rerun and verify.
- Report to the owner.
Exchange Certificates / TLS
SafeCertificate inventory
Get-ExchangeCertificate | Format-List FriendlyName,Thumbprint,Services,Subject,CertificateDomains,NotAfter Get-ExchangeCertificate | ft FriendlyName,Thumbprint,Services,NotAfter -Auto Get-ExchangeCertificate | Select Thumbprint,Services,RootCAType,IsSelfSigned
Run this first — do not remove a cert just because it's self-signed; Exchange commonly uses these internally.
Always start certificate troubleshooting here — a self-signed cert in the Services column may still be actively in use by Exchange internally.
Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ openssl s_client — OpenSSL docs ↗ Checked Jul 2026SafeFind IIS cert / expiring certs
Get-ExchangeCertificate | ? {$_.Services -match 'IIS'} | ft FriendlyName,Subject,Thumbprint,NotAfter -Auto
Get-ExchangeCertificate | ? {$_.NotAfter -lt (Get-Date).AddDays(30)} | ft FriendlyName,Subject,Services,NotAfter -AutoIIS affects OWA, ECP, EWS, ActiveSync, Autodiscover, and Outlook connectivity.
IIS-assigned certificates affect OWA, ECP, EWS, ActiveSync, Autodiscover, and Outlook connectivity — check expiry (NotAfter) before anything else.
Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ openssl s_client — OpenSSL docs ↗ Checked Jul 2026SafeConnector & auth TLS config
Get-ReceiveConnector | ft Name,TlsCertificateName -Auto Get-SendConnector | fl Name,SmartHosts,DNSRoutingEnabled,TlsCertificateName,RequireTLS,CloudServicesMailEnabled Get-AuthConfig | fl *
TlsCertificateName on Receive/Send connectors and Get-AuthConfig determine which certificate Exchange actually uses for transport and internal auth.
Get-AuthConfig — Microsoft Learn ↗ Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ Checked Jul 2026SafeIIS binding & external verification
Import-Module WebAdministration; Get-WebBinding netsh http show sslcert Test-NetConnection mail.domain.com -Port 443 openssl s_client -connect mail.domain.com:443 -servername mail.domain.com openssl s_client -starttls smtp -connect mail.domain.com:25 -servername mail.domain.com
openssl s_client shows the certificate actually presented externally — useful when a firewall, reverse proxy, or load balancer might present a different one than Exchange reports.
openssl s_client — OpenSSL docs ↗ Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ Checked Jul 2026Minor changeAssign certificate to services
Enable-ExchangeCertificate -Thumbprint <thumbprint> -Services IIS,SMTP
Confirm the correct cert, subject/SANs, expiration, and private key first.
Enable-ExchangeCertificate assigns a certificate to IIS/SMTP/POP/IMAP — confirm subject, SANs, expiry, and private key presence before running.
Enable-ExchangeCertificate — Microsoft Learn ↗ Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ Checked Jul 2026Big changeImport / create / remove certificate
Import-ExchangeCertificate -FileData ([System.IO.File]::ReadAllBytes('C:\Temp\cert.pfx')) -Password (Read-Host 'Password' -AsSecureString)
New-ExchangeCertificate -FriendlyName 'Microsoft Exchange' -SubjectName 'CN=SERVERNAME'
Remove-ExchangeCertificate -Thumbprint <thumbprint>Don't remove until you've proven no services/connectors/AuthConfig depend on it. Workflow: inventory → check IIS/SMTP/IMAP/POP assignment → check expiry → check Receive/Send connector TLS → check AuthConfig → check IIS bindings → test what's actually presented externally → only then change.
Don't remove a certificate until you've proven no service, connector, or AuthConfig setting still depends on it.
Remove-ExchangeCertificate — Microsoft Learn ↗ Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ Checked Jul 2026ProcessGenerate a CSR for certificate renewal
- Download and run the DigiCert Certificate Utility for Windows on the Exchange server.
- Click the expiring certificate, then click Create CSR.
- Click Copy CSR and paste it into your CA's renewal request form.
- Once the CA issues the new certificate, download it — pick "Exchange" as the service type if the CA offers a choice.
This applies to CA-signed certificates only, not self-signed ones. Most CAs take a few minutes to a few hours to issue the renewed cert once the CSR is submitted.
The DigiCert utility is the most common way to generate a renewal CSR that matches the existing certificate's key, avoiding the extra step of manually building a CSR with OpenSSL.
DigiCert Certificate Utility for Windows ↗ Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ Checked Jul 2026Minor changeRepair a certificate missing its private key
# open MMC (Win+R, mmc), add the Certificates snap-in (Ctrl+M), browse Personal store # find the cert missing a key icon, open it, copy the serial number from the Details tab certutil -repairstore my "CERTIFICATE SERIAL NUMBER"
A newly-imported certificate showing a missing-key icon in MMC (no key overlay on the icon) usually means the private key didn't associate correctly during import. Refresh MMC after running the repair — the certificate should then also appear on the ECP certificate page.
certutil -repairstore re-associates an orphaned private key with its certificate in the machine store — the standard fix when Import-ExchangeCertificate succeeds but the cert still can't be enabled for services.
certutil — Microsoft Learn ↗ Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ Checked Jul 2026Minor changeChange a certificate's friendly name
# MMC: File > Add Snap-in > Certificates > Computer account # Personal store > right-click the cert > Properties > edit Friendly Name
The friendly name is purely cosmetic but shows up on the ECP certificate storage page — worth setting to something descriptive (e.g. the renewal year or issuing CA) so the right certificate is obvious at a glance later.
A clear friendly name is the difference between instantly recognizing the right certificate in ECP and having to check thumbprints one by one during an incident.
Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ openssl s_client — OpenSSL docs ↗ Checked Jul 2026Big changeReplace the send connector certificate
$TLSCert = Get-ExchangeCertificate -Thumbprint "NEW CERTIFICATE THUMBPRINT"
$TLSCertName = "<I>$($TLSCert.Issuer)<S>$($TLSCert.Subject)"
Stop-Service MSExchangeTransport
Set-SendConnector -Identity "SEND CONNECTOR NAME" -TlsCertificateName $Null
# remove the old certificate through ECP once nothing references it
Set-SendConnector "SEND CONNECTOR NAME" -TlsCertificateName $TLSCertName
Start-Service MSExchangeTransportClearing TlsCertificateName to $Null before reassigning avoids a conflict if the old and new certificate names overlap. This briefly stops outbound transport — do it during a maintenance window.
The TlsCertificateName format (Issuer + Subject) is easy to get wrong by hand — building it directly from the certificate object's own properties avoids typos that silently break outbound TLS.
Set-SendConnector — Microsoft Learn ↗ Get-ExchangeCertificate — Microsoft Learn ↗ Get-ReceiveConnector — Microsoft Learn ↗ Checked Jul 2026OWA/Outlook showing a certificate warning
- Inventory certificates and IIS assignment:
Get-ExchangeCertificate. - Check expiry via the NotAfter field.
- Confirm the subject/SAN matches the client-facing namespace.
- Import and assign a new certificate if needed:
Import-ExchangeCertificate,Enable-ExchangeCertificate.
Inbound mail failing TLS
- Check the Receive Connector's TLS cert assignment.
- Confirm what's actually presented externally:
openssl s_client -starttls smtp. - Compare against the intended certificate's thumbprint and expiry.
Hacking & Penetration Testing
ProcessHacking/Penetration Testing — Pentesters arsenal tools
- Sandcat Browser ↗ — a penetration-oriented browser with plenty of advanced functionality already built in
- Metasploit ↗ — tool and framework for pentesting system, web and many more
- Burp Suite ↗ — tool for testing web app security, intercepting proxy to replay, inject, scan and fuzz
- OWASP Zed Attack Proxy ↗ — intercepting proxy to replay, inject, scan and fuzz HTTP requests
- w3af ↗ — is a Web Application Attack and Audit Framework
- mitmproxy ↗ — an interactive TLS-capable intercepting HTTP proxy for penetration testers
- Nikto2 ↗ — web server scanner which performs comprehensive tests against web servers for multiple items
- sqlmap ↗ — tool that automates the process of detecting and exploiting SQL injection flaws
- Recon-ng ↗ — is a full-featured Web Reconnaissance framework written in Python
- AutoRecon ↗ — is a network reconnaissance tool which performs automated enumeration of services
- Faraday ↗ — an Integrated Multiuser Pentest Environment
- Photon ↗ — incredibly fast crawler designed for OSINT
- XSStrike ↗ — most advanced XSS detection suite
- Sn1per ↗ — automated pentest framework for offensive security experts
- vuls ↗ — is an agent-less vulnerability scanner for Linux, FreeBSD, and other
- tsunami ↗ — is a general purpose network security scanner with an extensible plugin system
- aquatone ↗ — a tool for domain flyovers
- BillCipher ↗ — information gathering tool for a website or IP address
- WhatWaf ↗ — detect and bypass web application firewalls and protection systems
- Corsy ↗ — CORS misconfiguration scanner
- Raccoon ↗ — is a high performance offensive security tool for reconnaissance and vulnerability scanning
- dirhunt ↗ — find web directories without bruteforce
- John The Ripper ↗ — is a fast password cracker, currently available for many flavors of Unix, Windows, and other
- hashcat ↗ — world's fastest and most advanced password recovery utility
- p0f ↗ — is a tool to identify the players behind any incidental TCP/IP communications
- ssh_scan ↗ — a prototype SSH configuration and policy scanner
- LeakLooker ↗ — find open databases - powered by Binaryedge.io
- exploitdb ↗ — searchable archive from The Exploit Database
- getsploit ↗ — is a command line utility for searching and downloading exploits
- ctf-tools ↗ — some setup scripts for security research tools
- pwntools ↗ — CTF framework and exploit development library
- security-tools ↗ — collection of small security tools created mostly in Python. CTFs, pentests and so on
- pentestpackage ↗ — is a package of Pentest scripts
- python-pentest-tools ↗ — python tools for penetration testers
- fuzzdb ↗ — dictionary of attack patterns and primitives for black-box application fault injection
- AFL ↗ — is a free software fuzzer maintained by Google
- AFL++ ↗ — is AFL with community patches
- syzkaller ↗ — is an unsupervised, coverage-guided kernel fuzzer
- pwndbg ↗ — exploit development and reverse engineering with GDB made easy
- GDB PEDA ↗ — Python Exploit Development Assistance for GDB
- IDA ↗ — multi-processor disassembler and debugger useful for reverse engineering malware
- radare2 ↗ — framework for reverse-engineering and analyzing binaries
- routersploit ↗ — exploitation framework for embedded devices
- Ghidra ↗ — is a software reverse engineering (SRE) framework
- Cutter ↗ — is an SRE platform integrating Ghidra's decompiler
- Vulnreport ↗ — open-source pentesting management and automation platform by Salesforce Product Security
- Mentalist ↗ — is a graphical tool for custom wordlist generation
- archerysec ↗ — vulnerability assessment and management helps to perform scans and manage vulnerabilities
- Osmedeus ↗ — fully automated offensive security tool for reconnaissance and vulnerability scanning
- beef ↗ — the browser exploitation framework project
- AutoSploit ↗ — automated mass exploiter
- SUDO_KILLER ↗ — is a tool to identify and exploit sudo rules' misconfigurations and vulnerabilities
- yara ↗ — the pattern matching swiss knife
- mimikatz ↗ — a little tool to play with Windows security
- sherlock ↗ — hunt down social media accounts by username across social networks
- OWASP Threat Dragon ↗ — is a tool used to create threat model diagrams and to record possible threats
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Pentesters arsenal tools" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ Sandcat Browser ↗ Checked Jul 2026ProcessHacking/Penetration Testing — Pentests bookmarks collection
- PTES ↗ — the penetration testing execution standard
- Pentests MindMap ↗ — amazing mind map with vulnerable apps and systems
- WebApps Security Tests MindMap ↗ — incredible mind map for WebApps security tests
- Brute XSS ↗ — master the art of Cross Site Scripting
- XSS cheat sheet ↗ — contains many vectors that can help you bypass WAFs and filters
- Offensive Security Bookmarks ↗ — security bookmarks collection, all things that author need to pass OSCP
- Awesome Pentest Cheat Sheets ↗ — collection of the cheat sheets useful for pentesting
- Awesome Hacking by HackWithGithub ↗ — awesome lists for hackers, pentesters and security researchers
- Awesome Hacking by carpedm20 ↗ — a curated list of awesome hacking tutorials, tools and resources
- Awesome Hacking Resources ↗ — collection of hacking/penetration testing resources to make you better
- Awesome Pentest ↗ — collection of awesome penetration testing resources, tools and other shiny things
- Awesome-Hacking-Tools ↗ — is a curated list of awesome Hacking Tools
- Hacking Cheat Sheet ↗ — author hacking and pentesting notes
- blackhat-arsenal-tools ↗ — official Black Hat arsenal security tools repository
- Penetration Testing and WebApp Cheat Sheets ↗ — the complete list of Infosec related cheat sheets
- Cyber Security Resources ↗ — includes thousands of cybersecurity-related references and resources
- Pentest Bookmarks ↗ — there are a LOT of pentesting blogs
- Cheatsheet-God ↗ — Penetration Testing Reference Bank - OSCP/PTP & PTX Cheatsheet
- ThreatHunter-Playbook ↗ — to aid the development of techniques and hypothesis for hunting campaigns
- Beginner-Network-Pentesting ↗ — notes for beginner network pentesting course
- OSCPRepo ↗ — is a list of resources that author have been gathering in preparation for the OSCP
- PayloadsAllTheThings ↗ — a list of useful payloads and bypass for Web Application Security and Pentest/CTF
- payloads ↗ — git all the Payloads! A collection of web attack payloads
- command-injection-payload-list ↗ — command injection payload list
- Awesome Shodan Search Queries ↗ — great search queries to plug into Shodan
- AwesomeXSS ↗ — is a collection of Awesome XSS resources
- php-webshells ↗ — common php webshells
- Pentesting Tools Cheat Sheet ↗ — a quick reference high level overview for typical penetration testing
- OWASP Cheat Sheet Series ↗ — is a collection of high value information on specific application security topics
- OWASP dependency-check ↗ — is an open source solution the OWASP Top 10 2013 entry
- OWASP ProActive Controls ↗ — OWASP Top 10 Proactive Controls 2018
- PENTESTING-BIBLE ↗ — hacking & penetration testing & red team & cyber security resources
- pentest-wiki ↗ — is a free online security knowledge library for pentesters/researchers
- DEF CON Media Server ↗ — great stuff from DEFCON
- Awesome Malware Analysis ↗ — a curated list of awesome malware analysis tools and resources
- SQL Injection Cheat Sheet ↗ — detailed technical stuff about the many different variants of the SQL Injection
- Entersoft Knowledge Base ↗ — great and detailed reference about vulnerabilities
- HTML5 Security Cheatsheet ↗ — a collection of HTML5 related XSS attack vectors
- XSS String Encoder ↗ — for generating XSS code to check your input validation filters against XSS
- GTFOBins ↗ — list of Unix binaries that can be exploited by an attacker to bypass local security restrictions
- Guifre Ruiz Notes ↗ — collection of security, system, network and pentest cheatsheets
- SSRF Tips ↗ — a collection of SSRF Tips
- shell-storm repo CTF ↗ — great archive of CTFs
- ctf ↗ — CTF (Capture The Flag) writeups, code snippets, notes, scripts
- My-CTF-Web-Challenges ↗ — collection of CTF Web challenges
- MSTG ↗ — The Mobile Security Testing Guide (MSTG) is a comprehensive manual for mobile app security testing
- Internal-Pentest-Playbook ↗ — notes on the most common things for an Internal Network Penetration Test
- KeyHacks ↗ — shows quick ways in which API keys leaked by a bug bounty program can be checked
- securitum/research ↗ — various Proof of Concepts of security research performed by Securitum
- public-pentesting-reports ↗ — is a list of public pentest reports released by several consulting security groups
- awesome-bug-bounty ↗ — is a comprehensive curated list of available Bug Bounty
- bug-bounty-reference ↗ — is a list of bug bounty write-ups
- Awesome-Bugbounty-Writeups ↗ — is a curated list of bugbounty writeups
- Bug bounty writeups ↗ — list of bug bounty writeups (2012-2020)
- hackso.me ↗ — a great journey into security
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Pentests bookmarks collection" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ PTES ↗ Checked Jul 2026ProcessHacking/Penetration Testing — Backdoors/exploits
- PHP-backdoors ↗ — a collection of PHP backdoors. For educational or testing purposes only
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Backdoors/exploits" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ PHP-backdoors ↗ Checked Jul 2026ProcessHacking/Penetration Testing — Wordlists and Weak passwords
- Weakpass ↗ — for any kind of bruteforce find wordlists or unleash the power of them all at once!
- Hashes.org ↗ — is a free online hash resolving service incorporating many unparalleled techniques
- SecLists ↗ — collection of multiple types of lists used during security assessments, collected in one place
- Probable-Wordlists ↗ — sorted by probability originally created for password generation and testing
- skullsecurity passwords ↗ — password dictionaries and leaked passwords repository
- Polish PREMIUM Dictionary ↗ — official dictionary created by the team on the forum bezpieka.org.* 1
- statistically-likely-usernames ↗ — wordlists for creating statistically likely username lists
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Wordlists and Weak passwords" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ Weakpass ↗ Checked Jul 2026ProcessHacking/Penetration Testing — Bounty platforms
- YesWeHack ↗ — bug bounty platform with infosec jobs
- Openbugbounty ↗ — allows any security researcher reporting a vulnerability on any website
- hackerone ↗ — global hacker community to surface the most relevant security issues
- bugcrowd ↗ — crowdsourced cybersecurity for the enterprise
- Crowdshield ↗ — crowdsourced security & bug bounty management
- Synack ↗ — crowdsourced security & bug bounty programs, crowd security intelligence platform, and more
- Hacktrophy ↗ — bug bounty platform
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Bounty platforms" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ YesWeHack ↗ Checked Jul 2026ProcessHacking/Penetration Testing — Web Training Apps (local installation)
- OWASP-VWAD ↗ — comprehensive and well maintained registry of all known vulnerable web applications
- DVWA ↗ — PHP/MySQL web application that is damn vulnerable
- metasploitable2 ↗ — vulnerable web application amongst security researchers
- metasploitable3 ↗ — is a VM that is built from the ground up with a large amount of security vulnerabilities
- DSVW ↗ — is a deliberately vulnerable web application written in under 100 lines of code
- OWASP Mutillidae II ↗ — free, open source, deliberately vulnerable web-application
- OWASP Juice Shop Project ↗ — the most bug-free vulnerable application in existence
- OWASP Node js Goat Project ↗ — OWASP Top 10 security risks apply to web apps developed using Node.js
- juicy-ctf ↗ — run Capture the Flags and Security Trainings with OWASP Juice Shop
- SecurityShepherd ↗ — web and mobile application security training platform
- Security Ninjas ↗ — open source application security training program
- hackazon ↗ — a modern vulnerable web app
- dvna ↗ — damn vulnerable NodeJS application
- django-DefectDojo ↗ — is an open-source application vulnerability correlation and security orchestration tool
- Google Gruyere ↗ — web application exploits and defenses
- Bodhi ↗ — is a playground focused on learning the exploitation of client-side web vulnerabilities
- Websploit ↗ — single vm lab with the purpose of combining several vulnerable appliations in one environment
- vulhub ↗ — pre-built Vulnerable Environments based on docker-compose
- CloudGoat 2 ↗ — the new & improved "Vulnerable by Design"
- secDevLabs ↗ — is a laboratory for learning secure web development in a practical manner
- CORS-vulnerable-Lab ↗ — sample vulnerable code and its exploit code
- RootTheBox ↗ — a Game of Hackers (CTF Scoreboard & Game Manager)
- KONTRA ↗ — application security training (OWASP Top Web & Api)
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Web Training Apps (local installation)" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ OWASP-VWAD ↗ Checked Jul 2026ProcessHacking/Penetration Testing — Labs (ethical hacking platforms/trainings/CTFs)
- Offensive Security ↗ — true performance-based penetration testing training for over a decade
- Hack The Box ↗ — online platform allowing you to test your penetration testing skills
- Hacking-Lab ↗ — online ethical hacking, computer network and security challenge platform
- pwnable.kr ↗ — non-commercial wargame site which provides various pwn challenges
- Pwnable.tw ↗ — is a wargame site for hackers to test and expand their binary exploiting skills
- picoCTF ↗ — is a free computer security game targeted at middle and high school students
- CTFlearn ↗ — is an online platform built to help ethical hackers learn and practice their cybersecurity knowledge
- ctftime ↗ — CTF archive and a place, where you can get some another CTF-related info
- Silesia Security Lab ↗ — high quality security testing services
- Practical Pentest Labs ↗ — pentest lab, take your Hacking skills to the next level
- Root Me ↗ — the fast, easy, and affordable way to train your hacking skills
- rozwal.to ↗ — a great platform to train your pentesting skills
- TryHackMe ↗ — learning Cyber Security made easy
- hackxor ↗ — is a realistic web application hacking game, designed to help players of all abilities develop their skills
- Hack Yourself First ↗ — it's full of nasty app sec holes
- OverTheWire ↗ — can help you to learn and practice security concepts in the form of fun-filled games
- Wizard Labs ↗ — is an online Penetration Testing Lab
- PentesterLab ↗ — provides vulnerable systems that can be used to test and understand vulnerabilities
- RingZer0 ↗ — tons of challenges designed to test and improve your hacking skills
- try2hack ↗ — several security-oriented challenges for your entertainment
- Ubeeri ↗ — preconfigured lab environments
- Pentestit ↗ — emulate IT infrastructures of real companies for legal pen testing and improving pentest skills
- Microcorruption ↗ — reversal challenges done in the web interface
- Crackmes ↗ — download crackmes to help improve your reverse engineering skills
- DomGoat ↗ — DOM XSS security learning and practicing platform
- Stereotyped Challenges ↗ — upgrade your web hacking techniques today!
- Vulnhub ↗ — allows anyone to gain practical 'hands-on' experience in digital security
- W3Challs ↗ — is a penetration testing training platform, which offers various computer challenges
- RingZer0 CTF ↗ — offers you tons of challenges designed to test and improve your hacking skills
- Hack.me ↗ — a platform where you can build, host and share vulnerable web apps for educational purposes
- HackThis! ↗ — discover how hacks, dumps and defacements are performed and secure your website
- Enigma Group WebApp Training ↗ — these challenges cover the exploits listed in the OWASP Top 10 Project
- Reverse Engineering Challenges ↗ — challenges, exercises, problems and tasks - by level, by type, and more
- 0x00sec ↗ — the home of the Hacker - Malware, Reverse Engineering, and Computer Science
- We Chall ↗ — there are exist a lots of different challenge types
- Hacker Gateway ↗ — is the go-to place for hackers who want to test their skills
- Hacker101 ↗ — is a free class for web security
- contained.af ↗ — a stupid game for learning about containers, capabilities, and syscalls
- flAWS challenge! ↗ — a series of levels you'll learn about common mistakes and gotchas when using AWS
- CyberSec WTF ↗ — provides web hacking challenges derived from bounty write-ups
- CTF Challenge ↗ — CTF Web App challenges
- gCTF ↗ — most of the challenges used in the Google CTF 2017
- Hack This Site ↗ — is a free, safe and legal training ground for hackers
- Attack & Defense ↗ — is a browser-based cloud labs
- Cryptohack ↗ — a fun platform for learning modern cryptography
- Cryptopals ↗ — the cryptopals crypto challenges
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Labs (ethical hacking platforms/trainings/CTFs)" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ Offensive Security ↗ Checked Jul 2026ProcessHacking/Penetration Testing — CTF platforms
- fbctf ↗ — platform to host Capture the Flag competitions
- ctfscoreboard ↗ — scoreboard for Capture The Flag competitions
Offensive-security tools: use only on systems you own or have written permission to test.
Section "CTF platforms" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ fbctf ↗ Checked Jul 2026ProcessHacking/Penetration Testing — Other resources
- Bugcrowd University ↗ — open source education content for the researcher community
- OSCPRepo ↗ — a list of resources and scripts that I have been gathering in preparation for the OSCP
- OWASP Top 10: Real-World Examples ↗ — test your web apps with real-world examples (two-part series)
- phrack.org ↗ — an awesome collection of articles from several respected hackers and other thinkers
- Practical-Ethical-Hacking-Resources ↗ — compilation of resources from TCM's Udemy Course
Offensive-security tools: use only on systems you own or have written permission to test.
Section "Other resources" of the "Hacking/Penetration Testing" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Hacking/Penetration Testing chapter ↗ Source list — GitHub ↗ Bugcrowd University ↗ Checked Jul 2026Find a tool in the "Hacking/Penetration Testing" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Health Plan Basics & HIPAA
ProcessHealth plan data flow in plain English
- Enrollment: the plan receives member files (often X12 834) from CMS, the state, or employers and loads who is covered and when.
- Eligibility: providers check coverage (270/271) before treating a member.
- Claims: providers send claims (X12 837); the platform checks, prices, and decides payment (adjudication).
- Payment: the plan pays and sends an explanation (835) and a member EOB.
- Reporting: the plan sends encounter and other data back to CMS or the state and produces quality and financial reports.
- Support's job: keep the file feeds, scheduled jobs, databases, and screens working so each step completes on time.
The business process behind the systems. It explains why a late file or failed job matters.
X12 EDI standards ↗ CMS.gov ↗ RAM Technologies HEALTHsuite announcement — PRWeb ↗ Checked Jul 2026ProcessCommon EDI transaction types
- 834: benefit enrollment and maintenance.
- 837 (P/I/D): health care claim (professional, institutional, dental).
- 835: payment/remittance advice.
- 270 / 271: eligibility inquiry and response.
- 276 / 277: claim status inquiry and response.
- 278: prior authorization.
- 999 / TA1: acknowledgements — look here first when a file is rejected.
The X12 healthcare transaction numbers you will see in file names and job logs.
X12 EDI standards ↗ CMS.gov ↗ HIPAA transactions — CMS ↗ Checked Jul 2026ProcessWhy a file might be rejected
- Wrong file name or missing date in the name.
- Empty, partial, or duplicate file.
- Bad structure: missing header/trailer, wrong delimiter, or bad control numbers.
- Invalid values: dates, IDs, or codes the system does not accept.
- Encrypted with the wrong key or not encrypted when it should be.
- Sent to the wrong folder or at the wrong time.
Checking these first resolves most inbound file problems.
X12 EDI standards ↗ GoAnywhere resources — Fortra ↗ GoAnywhere user forum ↗ Checked Jul 2026ProcessHIPAA basics for support staff
- PHI is any health information that can identify a person.
- Use the minimum necessary to do the task.
- Only access records you have a reason to access; access is logged.
- Encrypt PHI in transit and at rest; use approved tools only.
- Report lost devices, misdirected files, or suspected breaches immediately.
- Do not take PHI home or put it in personal email or cloud accounts.
Short rules that keep day-to-day work compliant.
HIPAA Security Rule — HHS ↗ HIPAA Privacy Rule — HHS ↗ Breach notification — HHS ↗ Checked Jul 2026A file was rejected
- Check the acknowledgement (999/TA1).
- Check name, structure, and values.
- Fix and resend through the approved path.
- Document the reason.
Inspiring Lists
ProcessInspiring Lists — SysOps/DevOps
- Awesome Sysadmin ↗ — amazingly awesome open source sysadmin resources
- Awesome Shell ↗ — awesome command-line frameworks, toolkits, guides and gizmos
- Command-line-text-processing ↗ — finding text to search and replace, sorting to beautifying, and more
- Awesome Pcaptools ↗ — collection of tools developed by other researchers to process network traces
- awesome-ebpf ↗ — a curated list of awesome projects related to eBPF
- Linux Network Performance ↗ — where some of the network sysctl variables fit into the Linux/Kernel network flow
- Awesome Postgres ↗ — list of awesome PostgreSQL software, libraries, tools and resources
- quick-SQL-cheatsheet ↗ — a quick reminder of all SQL queries and examples on how to use them
- Awesome-Selfhosted ↗ — list of Free Software network services and web applications which can be hosted locally
- List of applications ↗ — huge list of apps sorted by category, as a reference for those looking for packages
- CS-Interview-Knowledge-Map ↗ — build the best interview map
- DevOps-Guide ↗ — DevOps Guide from basic to advanced with Interview Questions and Notes
- FreeBSD Journal ↗ — it is a great list of periodical magazines about FreeBSD and other important things
- devops-interview-questions ↗ — contains interview questions on various DevOps and SRE related topics
Section "SysOps/DevOps" of the "Inspiring Lists" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Inspiring Lists chapter ↗ Source list — GitHub ↗ Awesome Sysadmin ↗ Checked Jul 2026ProcessInspiring Lists — Developers
- Web Developer Roadmap ↗ — roadmaps, articles and resources to help you choose your path, learn and improve
- Front-End-Checklist ↗ — the perfect Front-End Checklist for modern websites and meticulous developers
- Front-End-Performance-Checklist ↗ — Front-End Performance Checklist that runs faster than the others
- Python's Magic Methods ↗ — what are magic methods? They're everything in object-oriented Python
- wtfpython ↗ — a collection of surprising Python snippets and lesser-known features
- js-dev-reads ↗ — a list of books and articles for the discerning web developer to read
- Commit messages guide ↗ — a guide to understand the importance of commit messages
Section "Developers" of the "Inspiring Lists" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Inspiring Lists chapter ↗ Source list — GitHub ↗ Web Developer Roadmap ↗ Checked Jul 2026ProcessInspiring Lists — Security/Pentesting
- Awesome Web Security ↗ — a curated list of Web Security materials and resources
- awesome-cyber-skills ↗ — a curated list of hacking environments where you can train your cyber skills
- awesome-devsecops ↗ — an authoritative list of awesome devsecops tools
- awesome-osint ↗ — is a curated list of amazingly awesome OSINT
- HolyTips ↗ — tips and tutorials on Bug Bounty Hunting and Web App Security
- awesome-threat-intelligence ↗ — a curated list of Awesome Threat Intelligence resources
- Red-Teaming-Toolkit ↗ — a collection of open source and commercial tools that aid in red team operations
- awesome-burp-extensions ↗ — a curated list of amazingly awesome Burp Extensions
- Free Security eBooks ↗ — list of a Free Security and Hacking eBooks
- Hacking-Security-Ebooks ↗ — top 100 Hacking & Security E-Books
- privacy-respecting ↗ — curated list of privacy respecting services and software
- reverse-engineering ↗ — list of awesome reverse engineering resources
- linux-re-101 ↗ — a collection of resources for linux reverse engineering
- reverseengineering-reading-list ↗ — a list of Reverse Engineering articles, books, and papers
- Awesome-WAF ↗ — a curated list of awesome web-app firewall (WAF) stuff
- awesome-shodan-queries ↗ — interesting, funny, and depressing search queries to plug into shodan.io
- RobotsDisallowed ↗ — a curated list of the most common and most interesting robots.txt disallowed directories
- HackingNeuralNetworks ↗ — is a small course on exploiting and defending neural networks
- wildcard-certificates ↗ — why you probably shouldn't use a wildcard certificate
- Don't use VPN services ↗ — which is what every third-party "VPN provider" does
- awesome-yara ↗ — a curated list of awesome YARA rules, tools, and people
- macOS-Security-and-Privacy-Guide ↗ — guide to securing and improving privacy on macOS
- macos_security ↗ — macOS Security Compliance Project
- awesome-sec-talks ↗ — is a collected list of awesome security talks
- Movies for Hackers ↗ — list of movies every hacker & cyberpunk must watch
- Cryptography_1 ↗ — materials used whilst taking Prof. Dan Boneh Stanford Crypto course
- Crypton ↗ — library to learn and practice Offensive and Defensive Cryptography
Section "Security/Pentesting" of the "Inspiring Lists" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Inspiring Lists chapter ↗ Source list — GitHub ↗ Awesome Web Security ↗ Checked Jul 2026ProcessInspiring Lists — Other
- Cheatography ↗ — over 3,000 free cheat sheets, revision aids and quick references
- awesome-static-analysis ↗ — static analysis tools for all programming languages
- computer-science ↗ — path to a free self-taught education in Computer Science
- post-mortems ↗ — is a collection of postmortems (config errors, hardware failures, and more)
- build-your-own-x ↗ — build your own (insert technology here)
- Project-Based-Tutorials-in-C ↗ — is a curated list of project-based tutorials in C
- The-Documentation-Compendium ↗ — various README templates & tips on writing high-quality documentation
- awesome-python-applications ↗ — free software that works great, and also happens to be open-source Python
- awesome-public-datasets ↗ — a topic-centric list of HQ open datasets
- machine-learning-algorithms ↗ — a curated list of all machine learning algorithms and concepts
Section "Other" of the "Inspiring Lists" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Inspiring Lists chapter ↗ Source list — GitHub ↗ Cheatography ↗ Checked Jul 2026Find a tool in the "Inspiring Lists" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
KnowBe4 Security Awareness
SafeCheck AD/Entra sync group membership
Get-ADGroupMember "KnowBe4 Sync" | select Name,SamAccountName
KnowBe4 usually provisions users via an AD/Entra group sync — a user missing training assignments is often a sync-group membership issue, not a KnowBe4 problem.
Confirms whether a user is actually in the directory group that feeds KnowBe4's user sync before troubleshooting further in the KnowBe4 console.
Get-ADGroupMember — Microsoft Learn ↗ KnowBe4 API reference ↗ KnowBe4 Support ↗ Checked Jul 2026SafeLook up a user's training/phishing status via API
Invoke-RestMethod -Uri "https://us.api.knowbe4.com/v1/users/<id>/training_enrollments" `
-Headers @{Authorization="Bearer $knowbe4Token"}Requires a KnowBe4 API key (Account Settings > API in the console). Region subdomain varies (us/eu/ca).
Returns a user's assigned training campaigns and completion status without needing to click through the console UI.
KnowBe4 API reference ↗ Get-ADGroupMember — Microsoft Learn ↗ KnowBe4 Support ↗ Checked Jul 2026Minor changeEnroll a user in remedial training
Invoke-RestMethod -Method Post -Uri "https://us.api.knowbe4.com/v1/training/enrollments" `
-Headers @{Authorization="Bearer $knowbe4Token"} -Body $enrollmentJsonTypically triggered after a user fails a phishing security test — most orgs automate this via a KnowBe4 workflow rather than calling the API by hand.
Programmatically assigns a training module to a user — useful for scripting bulk remediation after a phishing campaign.
KnowBe4 API reference ↗ Get-ADGroupMember — Microsoft Learn ↗ KnowBe4 Support ↗ Checked Jul 2026User not receiving phishing simulations or training
- Confirm they're in the AD/Entra sync group.
- Check enrollment status via the API's training_enrollments endpoint.
- If missing from sync, add them and wait for the next sync cycle (usually daily).
User failed a phishing test
- Confirm the failure event in the KnowBe4 console/API.
- Enroll them in the assigned remedial training.
- Track completion and follow your org's escalation policy for repeat failures.
Local Users / Local Admin
SafeBaseline check
Get-LocalUser | ft Name,Enabled,LastLogon -Auto Get-LocalGroupMember Administrators net accounts
Get-LocalUser/Get-LocalGroupMember list local accounts and admins — the fastest way to audit who has local admin on a machine.
Get-LocalGroupMember — Microsoft Learn ↗ New-LocalUser — Microsoft Learn ↗ Privileged accounts and groups — Microsoft Learn ↗ Checked Jul 2026Big changeCreate / grant / remove local admin
$pw=Read-Host "Password" -AsSecureString New-LocalUser "SupportAdmin" -Password $pw -FullName "Support Admin" Add-LocalGroupMember -Group Administrators -Member SupportAdmin Remove-LocalGroupMember -Group Administrators -Member SupportAdmin
Never use a blank password. Confirm no access loss before removing.
Creating or granting local admin is a significant security change — never use a blank password, and confirm scope before adding to Administrators.
New-LocalUser — Microsoft Learn ↗ Get-LocalGroupMember — Microsoft Learn ↗ Privileged accounts and groups — Microsoft Learn ↗ Checked Jul 2026Big changeCreate a local admin with net.exe
net user <Username> <Password> /add net localgroup administrators <Username> /add
The CMD/net.exe equivalent of New-LocalUser + Add-LocalGroupMember — useful when you're in a plain command prompt (e.g. WinRE, a locked-down remote session) without PowerShell's local-account module available.
Same security considerations as the PowerShell version: use a strong password, and remove the account or its admin rights once the task is done.
net user — Microsoft Learn ↗ Get-LocalGroupMember — Microsoft Learn ↗ New-LocalUser — Microsoft Learn ↗ Checked Jul 2026Big changeGrant a Microsoft Entra user local admin rights
net localgroup administrators /add "AzureAD\UserEmail@domain.com"
Works on Entra-joined (Azure AD joined) machines — adds a cloud identity directly to the local Administrators group instead of creating a separate local account. Confirm the device is actually Entra-joined first (dsregcmd /status).
The standard way to give a specific user standing local admin on an Entra-joined device without going through the broader "Azure AD joined device local admin" tenant-wide setting.
Manage local admin on Entra-joined devices — Microsoft Learn ↗ Get-LocalGroupMember — Microsoft Learn ↗ New-LocalUser — Microsoft Learn ↗ Checked Jul 2026Unexpected account has local admin rights
- Audit current membership:
Get-LocalGroupMember Administrators. - Confirm whether the account should have that right against ticket/approval history.
- Remove if unauthorized:
Remove-LocalGroupMember. - Document as a security finding if the addition wasn't authorized.
Need temporary local admin for a support task
- Create a scoped account with a strong password:
New-LocalUser. - Grant admin only for the task:
Add-LocalGroupMember. - Remove the account/rights immediately after the task — don't leave standing access.
Microsoft 365 Anti-Spam & Quarantine
ProcessReview anti-spam policies
- Open the Microsoft Defender portal.
- Go to Email & collaboration > Policies & rules > Threat policies > Anti-spam.
- Open the inbound policy and review allowed/blocked senders and actions.
- Make changes, save, and allow time for them to apply.
Anti-spam policies decide what happens to spam, high-confidence spam, and phishing.
Configure anti-spam policies — Microsoft Learn ↗ Anti-spam protection — Microsoft Learn ↗ Quarantine — Microsoft Learn ↗ Checked Jul 2026ProcessRelease a message from M365 quarantine
- Open Email & collaboration > Review > Quarantine.
- Search by sender, recipient, or subject.
- Select the message > Release (or Preview first).
- Optionally report it as a false positive to Microsoft.
Admins can release quarantined messages to the intended recipients.
Manage quarantined messages — Microsoft Learn ↗ Anti-spam protection — Microsoft Learn ↗ Quarantine — Microsoft Learn ↗ Checked Jul 2026Legit mail went to quarantine
- Find it in Quarantine.
- Release it.
- Add the sender to the tenant allow list if it keeps happening, after confirming it is safe.
Registry / Local Policy / Defender
SafeRead policy & Defender state
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI" Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" Get-MpPreference | fl DisableRealtimeMonitoring,ExclusionPath,ExclusionProcess Get-MpComputerStatus Get-MpThreatDetection
Defender preference and status cmdlets show real-time protection state, exclusions, and recent threat detections.
Get-MpPreference — Microsoft Learn ↗ Add-MpPreference — Microsoft Learn ↗ gpresult — Microsoft Learn ↗ Checked Jul 2026SafeFirewall & group policy state
netsh advfirewall show allprofiles Get-NetFirewallProfile gpresult /h report.html gpresult /r
Windows Firewall profile state and a Group Policy result report (RSoP) are the standard baseline for a policy-not-applying ticket.
Get-NetFirewallProfile — Microsoft Learn ↗ Get-MpPreference — Microsoft Learn ↗ Add-MpPreference — Microsoft Learn ↗ Checked Jul 2026Minor changeChange a value / add an exclusion
reg export "HKCU\Software\..." "$env:USERPROFILE\Desktop\backup.reg" /y # back up first
Set-ItemProperty "HKCU:\Software\..." -Name SomeValue -Value 0
Add-MpPreference -ExclusionPath "C:\Path\App"
gpupdate /forceDefender exclusions are security-impacting — document approval.
Defender exclusions and registry value changes are security-impacting — back up the key and document approval before changing.
Add-MpPreference — Microsoft Learn ↗ Get-MpPreference — Microsoft Learn ↗ gpresult — Microsoft Learn ↗ Checked Jul 2026SafeFailed logons & account lockouts
Get-WinEvent -LogName Security -MaxEvents 50 | Where-Object {$_.Id -eq 4625}
Get-ADUser <username> -Properties LockedOut,BadLogonCountEvent ID 4625 in the Security log is a failed logon — the standard first signal for a lockout or brute-force investigation.
Get-WinEvent — Microsoft Learn ↗ Get-MpPreference — Microsoft Learn ↗ Add-MpPreference — Microsoft Learn ↗ Checked Jul 2026Minor changeUnlock account
Unlock-ADAccount -Identity <username>
Unlock-ADAccount clears the lockout flag in AD — the account will re-lock immediately if the bad-password source is still retrying.
Unlock-ADAccount — Microsoft Learn ↗ Get-MpPreference — Microsoft Learn ↗ Add-MpPreference — Microsoft Learn ↗ Checked Jul 2026Defender blocking a legitimate app
- Confirm Defender is the cause via
Get-MpThreatDetection. - Add a scoped exclusion — a specific path or process, not a whole drive.
- Document the exclusion and get security sign-off, since exclusions are a standing risk.
Group Policy setting not taking effect
- Check RSoP for the machine:
gpresult /h report.html. - Force a refresh:
gpupdate /force. - If still not applying, check GPO link/enforcement/security filtering at the OU.
Risk Assessment Basics
ProcessRun a basic risk assessment
- Identify assets and their value.
- Identify threats and vulnerabilities for each asset.
- Estimate likelihood and impact.
- Evaluate how well existing safeguards reduce the risk.
- Rank the risks and recommend actions.
A risk assessment is a point-in-time snapshot used to support decisions and judge control effectiveness; risk management is the continuous process around it.
NIST SP 800-30 Rev. 1 ↗ NIST Risk Management Framework ↗ OWASP Risk Rating ↗ Checked Jul 2026ProcessCommon critical areas to check
- Single points of failure, such as one web server.
- Database servers exposed to SQL injection.
- Internal firewalls and segmentation.
- Backup and recovery of each of the above.
Typical high-value places to look first.
NIST SP 800-30 Rev. 1 ↗ NIST Risk Management Framework ↗ OWASP Risk Rating ↗ Checked Jul 2026Quick assessment
- List assets.
- Mark threats per asset.
- Score and rank.
- Document recommendations.
Security Incident Response
SafeReview sign-in activity for a suspected account
Get-MgAuditLogSignIn -Filter "userPrincipalName eq 'user@domain.com'" -Top 25 | select CreatedDateTime,IpAddress,Location,AppDisplayName,Status
Look for impossible-travel logins, unfamiliar IPs/countries, or sign-ins to apps the user doesn't normally use.
Pulls Entra ID sign-in log entries for one user — the first step in confirming whether an account is actually compromised.
Get-MgAuditLogSignIn — Microsoft Learn ↗ Incident response overview — Microsoft Learn ↗ Revoke-MgUserSignInSession — Microsoft Learn ↗ Checked Jul 2026Big changeContain a compromised account
Revoke-MgUserSignInSession -UserId user@domain.com Update-MgUser -UserId user@domain.com -AccountEnabled:$false
Revoking sessions kills active tokens immediately; disabling sign-in stops new ones. Do both together during active compromise.
The standard first containment step: kill existing sessions and block new sign-ins while the investigation continues.
Revoke-MgUserSignInSession — Microsoft Learn ↗ Incident response overview — Microsoft Learn ↗ Update-MgUser — Microsoft Learn ↗ Checked Jul 2026Big changeForce a password reset
Update-MgUser -UserId user@domain.com -PasswordProfile @{ForceChangePasswordNextSignIn=$true; Password="TempPass!23"}Also reset/re-register MFA methods from the Entra admin center if the attacker may have added their own authentication method.
Forces the account to set a new password on next sign-in — pair with an MFA method review since a stolen password alone shouldn't be enough to get back in.
Update-MgUser — Microsoft Learn ↗ Incident response overview — Microsoft Learn ↗ Revoke-MgUserSignInSession — Microsoft Learn ↗ Checked Jul 2026Big changeIsolate a compromised endpoint
Disable-NetAdapter -Name "Ethernet" -Confirm:$false
A blunt local option when EDR-based isolation isn't available — cuts network access while preserving the running system for forensics. Prefer your EDR platform's isolate action when you have one.
Immediately removes network connectivity from a machine without powering it off, keeping volatile evidence intact.
Disable-NetAdapter — Microsoft Learn ↗ Incident response overview — Microsoft Learn ↗ Revoke-MgUserSignInSession — Microsoft Learn ↗ Checked Jul 2026ProcessData flow — logs to SIEM to incident to ticket
- Endpoints, firewalls, and cloud services send logs to the SIEM through agents, syslog, or connectors.
- The SIEM normalizes the data and runs detection rules to create alerts and incidents.
- A playbook can enrich the alert (user, device, IP reputation) and take approved actions.
- An analyst triages, contains, and documents the incident in the ticket.
- If an alert never fires, check the log source is connected, recent, and parsed correctly.
How security events travel from systems to an analyst and where gaps hide (log sources, parsing, rules).
Microsoft Sentinel overview — Microsoft Learn ↗ NIST SP 800-61 incident handling ↗ Connect data sources — Microsoft Learn ↗ Checked Jul 2026Confirmed phishing click or credential compromise
- Pull sign-in logs for the account:
Get-MgAuditLogSignIn. - Revoke sessions and disable sign-in immediately.
- Force a password reset and review/reset MFA methods.
- Check inbox rules for attacker-added forwarding (see Mail Rules & License Automation).
- Document the timeline and notify security/compliance per your incident process.
Suspected malware on an endpoint
- Isolate the endpoint from the network (or use your EDR's isolate action).
- Preserve evidence — don't reboot or run cleanup tools yet if forensics may be needed.
- Pull recent Security, Application, and System event logs for the machine.
- Engage EDR/AV for a full scan once evidence is captured.
Unified Audit / Admin Actions / Evidence
SafeSearch & export M365 audit logs
$start=(Get-Date).AddDays(-90); $end=Get-Date Search-UnifiedAuditLog -StartDate $start -EndDate $end -Operations "Remove member from role" -ResultSize 5000 Search-UnifiedAuditLog -StartDate $start -EndDate $end -UserIds user@domain.com -ResultSize 5000
Good for GA-removal / admin-action investigations, and proving whether a user was target or actor.
Search-UnifiedAuditLog queries the M365 audit trail — the standard evidence source for "who changed/removed what, and when" investigations.
Search-UnifiedAuditLog — Microsoft Learn ↗ Audit log search overview — Microsoft Learn ↗ Get-AdminAuditLogConfig — Microsoft Learn ↗ Checked Jul 2026SafeExpand & export detail
$logs | select CreationDate,Operations,UserIds,@{n="Audit";e={$_.AuditData | ConvertFrom-Json}}
$logs | Export-Csv "$env:USERPROFILE\Desktop\AuditExport.csv" -NoTypeInformation
Get-AdminAuditLogConfig | fl *AuditData is a JSON blob — expanding it with ConvertFrom-Json is usually where the actual target/actor details live.
Search-UnifiedAuditLog — Microsoft Learn ↗ Audit log search overview — Microsoft Learn ↗ Get-AdminAuditLogConfig — Microsoft Learn ↗ Checked Jul 2026Need to prove who made an admin change
- Search around the change window:
Search-UnifiedAuditLog. - Expand AuditData to find the actor, target, and exact values changed.
- Export to CSV and attach it to the ticket or incident record.
Audit log search returns nothing
- Confirm audit logging is enabled:
Get-AdminAuditLogConfig. - Widen the date range — some event types can lag up to 24 hours.
- Broaden or drop the -Operations filter and search all activity for the UserIds instead.
Web Tools
ProcessWeb Tools — Browsers
- SSL/TLS Capabilities of Your Browser ↗ — test your browser's SSL implementation
- Can I use ↗ — provides up-to-date browser support tables for support of front-end web technologies
- Panopticlick 3.0 ↗ — is your browser safe against tracking?
- Privacy Analyzer ↗ — see what data is exposed from your browser
- Web Browser Security ↗ — it's all about Web Browser fingerprinting
- How's My SSL? ↗ — help a web server developer learn what real world TLS clients were capable of
- sslClientInfo ↗ — client test (incl TLSv1.3 information)
Section "Browsers" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ SSL/TLS Capabilities of Your Browser ↗ Checked Jul 2026ProcessWeb Tools — SSL/Security
- SSLLabs Server Test ↗ — performs a deep analysis of the configuration of any SSL web server
- SSLLabs Server Test (DEV) ↗ — performs a deep analysis of the configuration of any SSL web server
- ImmuniWeb® SSLScan ↗ — test SSL/TLS (PCI DSS, HIPAA and NIST)
- SSL Check ↗ — scan your website for non-secure content
- SSL Scanner ↗ — analyze website security
- CryptCheck ↗ — test your TLS server configuration (e.g. ciphers)
- urlscan.io ↗ — service to scan and analyse websites
- Report URI ↗ — monitoring security policies like CSP and HPKP
- CSP Evaluator ↗ — allows developers and security experts to check if a Content Security Policy
- Useless CSP ↗ — public list about CSP in some big players (might make them care a bit more)
- Why No HTTPS? ↗ — top 100 websites by Alexa rank not automatically redirecting insecure requests
- TLS Cipher Suite Search ↗ — cipher suite search engine
- cipherli.st ↗ — strong ciphers for Apache, Nginx, Lighttpd, and more.*
- dhtool ↗ — public Diffie-Hellman parameter service/tool
- badssl.com ↗ — memorable site for testing clients against bad SSL configs
- tlsfun.de ↗ — registered for various tests regarding the TLS/SSL protocol
- CAA Record Helper ↗ — generate a CAA policy
- Common CA Database ↗ — repository of information about CAs, and their root and intermediate certificates
- CERTSTREAM ↗ — real-time certificate transparency log update stream
- crt.sh ↗ — discovers certificates by continually monitoring all of the publicly known CT
- Hardenize ↗ — deploy the security standards
- Cipher suite compatibility ↗ — test TLS cipher suite compatibility
- urlvoid ↗ — this service helps you detect potentially malicious websites
- security.txt ↗ — a proposed standard (generator) which allows websites to define security policies
- ssl-config-generator ↗ — help you follow the Mozilla Server Side TLS configuration guidelines
- TLScan ↗ — pure python, SSL/TLS protocol and cipher scanner/enumerator
Section "SSL/Security" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ SSLLabs Server Test ↗ Checked Jul 2026ProcessWeb Tools — HTTP Headers & Web Linters
- Security Headers ↗ — analyse the HTTP response headers (with rating system to the results)
- Observatory by Mozilla ↗ — set of tools to analyze your website
- webhint ↗ — is a linting tool that will help you with your site's accessibility, speed, security, and more
Section "HTTP Headers & Web Linters" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ Security Headers ↗ Checked Jul 2026ProcessWeb Tools — DNS
- ViewDNS ↗ — one source for free DNS related tools and information
- DNSLookup ↗ — is an advanced DNS lookup tool
- DNSlytics ↗ — online DNS investigation tool
- DNS Spy ↗ — monitor, validate and verify your DNS configurations
- Zonemaster ↗ — helps you to control how your DNS works
- Leaf DNS ↗ — comprehensive DNS tester
- Find subdomains online ↗ — find subdomains for security assessment penetration test
- DNSdumpster ↗ — dns recon & research, find & lookup dns records
- DNS Table online ↗ — search for DNS records by domain, IP, CIDR, ISP
- intoDNS ↗ — DNS and mail server health checker
- DNS Bajaj ↗ — check the delegation of your domain
- BuddyDNS Delegation LAB ↗ — check, trace and visualize delegation of your domain
- dnssec-debugger ↗ — DS or DNSKEY records validator
- PTRarchive.com ↗ — this site is responsible for the safekeeping of historical reverse DNS records
- xip.io ↗ — wildcard DNS for everyone
- nip.io ↗ — dead simple wildcard DNS for any IP Address
- dnslookup (ceipam) ↗ — one of the best DNS propagation checker (and not only)
- What's My DNS ↗ — DNS propagation checking tool
- DNSGrep ↗ — quickly searching large DNS datasets
Section "DNS" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ ViewDNS ↗ Checked Jul 2026ProcessWeb Tools — Mail
- smtp-tls-checker ↗ — check an email domain for SMTP TLS support
- MX Toolbox ↗ — all of your MX record, DNS, blacklist and SMTP diagnostics in one integrated tool
- Secure Email ↗ — complete email test tools for email technicians
- blacklistalert ↗ — checks to see if your domain is on a Real Time Spam Blacklist
- MultiRBL ↗ — complete IP check for sending Mailservers
- DKIM SPF & Spam Assassin Validator ↗ — checks mail authentication and scores messages with Spam Assassin
Section "Mail" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ smtp-tls-checker ↗ Checked Jul 2026ProcessWeb Tools — Encoders/Decoders and Regex testing
- URL Encode/Decode ↗ — tool from above to either encode or decode a string of text
- Uncoder ↗ — the online translator for search queries on log data
- Regex101 ↗ — online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript
- RegExr ↗ — online tool to learn, build, & test Regular Expressions (RegEx / RegExp)
- RegEx Testing ↗ — online regex testing tool
- RegEx Pal ↗ — online regex testing tool + other tools
- The Cyber Swiss Army Knife ↗ — a web app for encryption, encoding, compression and data analysis
Section "Encoders/Decoders and Regex testing" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ URL Encode/Decode ↗ Checked Jul 2026ProcessWeb Tools — Net-tools
- Netcraft ↗ — detailed report about the site, helping you to make informed choices about their integrity.*
- RIPE NCC Atlas ↗ — a global, open, distributed Internet measurement platform
- Robtex ↗ — uses various sources to gather public information about IP numbers, domain names, host names, etc
- Security Trails ↗ — APIs for Security Companies, Researchers and Teams
- Online Curl ↗ — curl test, analyze HTTP Response Headers
- Online Tools for Developers ↗ — HTTP API tools, testers, encoders, converters, formatters, and other tools
- Ping.eu ↗ — online Ping, Traceroute, DNS lookup, WHOIS and others
- Network-Tools ↗ — network tools for webmasters, IT technicians & geeks
- BGPview ↗ — search for any ASN, IP, Prefix or Resource name
- Is BGP safe yet? ↗ — check BGP (RPKI) security of ISPs and other major Internet players
- Riseup ↗ — provides online communication tools for people and groups working on liberatory social change
- VirusTotal ↗ — analyze suspicious files and URLs to detect types of malware
Section "Net-tools" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ Netcraft ↗ Checked Jul 2026ProcessWeb Tools — Privacy
- privacyguides.org ↗ — provides knowledge and tools to protect your privacy against global mass surveillance
- DNS Privacy Test Servers ↗ — DNS privacy recursive servers list (with a 'no logging' policy)
Section "Privacy" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ privacyguides.org ↗ Checked Jul 2026ProcessWeb Tools — Code parsers/playgrounds
- ShellCheck ↗ — finds bugs in your shell scripts
- explainshell ↗ — get interactive help texts for shell commands
- jsbin ↗ — live pastebin for HTML, CSS & JavaScript, and more
- CodeSandbox ↗ — online code editor for web application development
- PHP Sandbox ↗ — test your PHP code with this code tester
- Repl.it ↗ — an instant IDE to learn, build, collaborate, and host all in one place
- vclFiddle ↗ — is an online tool for experimenting with the Varnish Cache VCL
- Haskell Dockerfile Linter ↗ — a smarter Dockerfile linter that helps you build best practice Docker images
Section "Code parsers/playgrounds" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ ShellCheck ↗ Checked Jul 2026ProcessWeb Tools — Performance
- GTmetrix ↗ — analyze your site’s speed and make it faster
- Sucuri loadtimetester ↗ — test here the
- Pingdom Tools ↗ — analyze your site’s speed around the world
- PingMe.io ↗ — run website latency tests across multiple geographic regions
- PageSpeed Insights ↗ — analyze your site’s speed and make it faster
- web.dev ↗ — helps developers like you learn and apply the web's modern capabilities to your own sites and apps
- Lighthouse ↗ — automated auditing, performance metrics, and best practices for the web
Section "Performance" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ GTmetrix ↗ Checked Jul 2026ProcessWeb Tools — Mass scanners (search engines)
- Censys ↗ — platform that helps information security practitioners discover, monitor, and analyze devices
- Shodan ↗ — the world's first search engine for Internet-connected devices
- Shodan 2000 ↗ — this tool looks for randomly generated data from Shodan
- GreyNoise ↗ — mass scanner such as Shodan and Censys
- ZoomEye ↗ — search engine for cyberspace that lets the user find specific network components
- netograph ↗ — tools to monitor and understand deep structure of the web
- FOFA ↗ — is a cyberspace search engine
- onyphe ↗ — is a search engine for open-source and cyber threat intelligence data collected
- IntelligenceX ↗ — is a search engine and data archive
- binaryedge ↗ — it scan the entire internet space and create real-time threat intelligence streams and reports
- Spyse ↗ — Internet assets registry: networks, threats, web objects, etc
- wigle ↗ — is a submission-based catalog of wireless networks. All the networks. Found by Everyone
- PublicWWW ↗ — find any alphanumeric snippet, signature or keyword in the web pages HTML, JS and CSS code
- IntelTechniques ↗ — this repository contains hundreds of online search utilities
- hunter ↗ — lets you find email addresses in seconds and connect with the people that matter for your business
- GhostProject? ↗ — search by full email address or username
- databreaches ↗ — was my email affected by data breach?
- We Leak Info ↗ — world's fastest and largest data breach search engine
- Pulsedive ↗ — scans of malicious URLs, IPs, and domains, including port scans and web requests
- Buckets by Grayhatwarfar ↗ — database with public search for Open Amazon S3 Buckets and their contents
- Vigilante.pw ↗ — the breached database directory
- builtwith ↗ — find out what websites are built with
- NerdyData ↗ — search the web's source code for technologies, across millions of sites
- zorexeye ↗ — search for sites, images, apps, softwares & more
- Mamont's open FTP Index ↗ — if a target has an open FTP site with accessible content it will be listed here
- OSINT Framework ↗ — focused on gathering information from free tools or resources
- maltiverse ↗ — is a service oriented to cybersecurity analysts
- Leaked Source ↗ — is a collaboration of data found online in the form of a lookup
- We Leak Info ↗ — to help everyday individuals secure their online life, avoiding getting hacked
- pipl ↗ — is the place to find the person behind the email address, social username or phone number
- abuse.ch ↗ — is operated by a random swiss guy fighting malware for non-profit
- malc0de ↗ — malware search engine
- Cybercrime Tracker ↗ — monitors and tracks various malware families that are used to perpetrate cyber crimes
- shhgit ↗ — find GitHub secrets in real time
- searchcode ↗ — helping you find real world examples of functions, API's and libraries
- Insecam ↗ — the world biggest directory of online surveillance security cameras
- index-of ↗ — contains great stuff like: security, hacking, reverse engineering, cryptography, programming etc
- Rapid7 Labs Open Data ↗ — is a great resources of datasets from Project Sonar
- Common Response Headers ↗ — the largest database of HTTP response headers
- InQuest Labs ↗ — InQuest Labs is an open, interactive, and API driven data portal for security researchers
Section "Mass scanners (search engines)" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ Censys ↗ Checked Jul 2026ProcessWeb Tools — Generators
- thispersondoesnotexist ↗ — generate fake faces in one click - endless possibilities
- AI Generated Photos ↗ — 100.000 AI generated faces
- fakenamegenerator ↗ — your randomly generated identity
- Intigriti Redirector ↗ — open redirect/SSRF payload generator
Section "Generators" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ thispersondoesnotexist ↗ Checked Jul 2026ProcessWeb Tools — Passwords
- have i been pwned? ↗ — check if you have an account that has been compromised in a data breach
- dehashed ↗ — is a hacked database search engine
- Leaked Source ↗ — is a collaboration of data found online in the form of a lookup
Section "Passwords" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ have i been pwned? ↗ Checked Jul 2026ProcessWeb Tools — CVE/Exploits databases
- CVE Mitre ↗ — list of publicly known cybersecurity vulnerabilities
- CVE Details ↗ — CVE security vulnerability advanced database
- Exploit DB ↗ — CVE compliant archive of public exploits and corresponding vulnerable software
- 0day.today ↗ — exploits market provides you the possibility to buy/sell zero-day exploits
- sploitus ↗ — the exploit and tools database
- cxsecurity ↗ — free vulnerability database
- Vulncode-DB ↗ — is a database for vulnerabilities and their corresponding source code if available
- cveapi ↗ — free API for CVE data
Section "CVE/Exploits databases" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ CVE Mitre ↗ Checked Jul 2026ProcessWeb Tools — Mobile apps scanners
- ImmuniWeb® Mobile App Scanner ↗ — test security and privacy of mobile apps (iOS & Android)
- Quixxi ↗ — free Mobile App Vulnerability Scanner for Android & iOS
- Ostorlab ↗ — analyzes mobile application to identify vulnerabilities and potential weaknesses
Section "Mobile apps scanners" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ ImmuniWeb® Mobile App Scanner ↗ Checked Jul 2026ProcessWeb Tools — Private Search Engines
- Startpage ↗ — the world's most private search engine
- searX ↗ — a privacy-respecting, hackable metasearch engine
- darksearch ↗ — the 1st real Dark Web search engine
- Qwant ↗ — the search engine that respects your privacy
- DuckDuckGo ↗ — the search engine that doesn't track you
- Swisscows ↗ — privacy safe web search
- Disconnect ↗ — the search engine that anonymizes your searches
- MetaGer ↗ — the search engine that uses anonymous proxy and hidden Tor branches
Section "Private Search Engines" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ Startpage ↗ Checked Jul 2026ProcessWeb Tools — Secure Webmail Providers
- CounterMail ↗ — online email service, designed to provide maximum security and privacy
- Mail2Tor ↗ — is a Tor Hidden Service that allows anyone to send and receive emails anonymously
- Tutanota ↗ — is the world's most secure email service and amazingly easy to use
- Protonmail ↗ — is the world's largest secure email service, developed by CERN and MIT scientists
- Startmail ↗ — private & encrypted email made easy
Section "Secure Webmail Providers" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ CounterMail ↗ Checked Jul 2026ProcessWeb Tools — Crypto
- Keybase ↗ — it's open source and powered by public-key cryptography
Section "Crypto" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ Keybase ↗ Checked Jul 2026ProcessWeb Tools — PGP Keyservers
- SKS OpenPGP Key server ↗ — services for the SKS keyservers used by OpenPGP
Section "PGP Keyservers" of the "Web Tools" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Web Tools chapter ↗ Source list — GitHub ↗ SKS OpenPGP Key server ↗ Checked Jul 2026Find a tool in the "Web Tools" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
07 Coding & Dev PracticesGit, SDLC, CI/CD, testing, architecture, containers, shell one-liners, cheat sheets, and tutorials
Automation Scripts
ProcessRead and support an existing script
- Read the header: purpose, owner, schedule, and inputs/outputs.
- Trace the main flow, noting every file, database, and server it touches.
- Find the log or output and read the last run.
- Run it in a test mode or with a safe parameter if one exists.
- Make small, reversible edits; keep the old copy.
- Document what you changed and why.
Supporting a script you did not write is mostly careful reading and logging.
GNU Bash manual ↗ PowerShell documentation — Microsoft Learn ↗ Python tutorial ↗ Checked Jul 2026SafeAIX / UnixAlert if an expected file has not arrived (ksh / bash)
#!/bin/ksh # check_file.ksh - alert if today's file is missing DIR=/data/inbound PATTERN="claims_$(date +%Y%m%d)*.dat" LOG=/var/log/check_file.log if ls $DIR/$PATTERN >/dev/null 2>&1; then echo "$(date '+%F %T') OK file found" >> $LOG else echo "$(date '+%F %T') MISSING $PATTERN in $DIR" >> $LOG echo "File $PATTERN missing in $DIR" | mailx -s "File missing" ops@example.com exit 1 fi
A small, readable monitoring script. Always use full paths, log results, and return a non-zero exit code on failure so a scheduler can react.
GNU Bash manual ↗ mailx — IBM AIX ↗ crontab(5) — man7 ↗ Checked Jul 2026SafeAlert if an expected file has not arrived (PowerShell)
$dir = '\\server\inbound'
$pattern = "claims_$(Get-Date -Format yyyyMMdd)*.dat"
$log = 'C:\Logs\check_file.log'
if (Get-ChildItem -Path $dir -Filter $pattern -ErrorAction SilentlyContinue) {
Add-Content $log "$(Get-Date -f 's') OK file found"
} else {
Add-Content $log "$(Get-Date -f 's') MISSING $pattern in $dir"
Send-MailMessage -To ops@example.com -From noreply@example.com -Subject 'File missing' -Body "$pattern missing" -SmtpServer smtp.example.com
exit 1
}The same check in PowerShell. Schedule it with Task Scheduler. (Send-MailMessage is deprecated; use your approved mail method where required.)
Get-ChildItem — Microsoft Learn ↗ Task Scheduler — Microsoft Learn ↗ PowerShell documentation — Microsoft Learn ↗ Checked Jul 2026ProcessScript standards checklist
- Header: name, purpose, owner, date, and change history.
- Parameters instead of hard-coded server names, paths, and passwords.
- No passwords or PHI in the script or logs; use a vault or protected store.
- Log start, end, and errors with timestamps.
- Exit codes: 0 success, non-zero failure.
- Test on non-production first and keep a rollback copy.
- Schedule through the approved scheduler (Maestro, cron, Task Scheduler).
Habits that make scripts safe to support.
GNU Bash manual ↗ PowerShell scripting — Microsoft Learn ↗ HIPAA Security Rule — HHS ↗ Checked Jul 2026A scheduled script did not run
- Check the scheduler status and log.
- Run it by hand and read the output.
- Check paths, permissions, and the user account.
- Fix and retest.
Containers & Orchestration
ProcessContainers/Orchestration — CLI Tools
Section "CLI Tools" of the "Containers/Orchestration" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Containers/Orchestration chapter ↗ Source list — GitHub ↗ gvisor ↗ Checked Jul 2026ProcessContainers/Orchestration — Web Tools
- Moby ↗ — a collaborative project for the container ecosystem to assemble container-based system
- Traefik ↗ — open source reverse proxy/load balancer provides easier integration with Docker and Let's encrypt
- kong ↗ — The Cloud-Native API Gateway
- rancher ↗ — complete container management platform
- portainer ↗ — making Docker management easy
- nginx-proxy ↗ — automated nginx proxy for Docker containers using docker-gen
- bunkerized-nginx ↗ — nginx docker image "secure by default"
Section "Web Tools" of the "Containers/Orchestration" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Containers/Orchestration chapter ↗ Source list — GitHub ↗ Moby ↗ Checked Jul 2026ProcessContainers/Orchestration — Security
- docker-bench-security ↗ — checks for dozens of common best-practices around deploying Docker
- trivy ↗ — vulnerability scanner for containers, suitable for CI
- Harbor ↗ — cloud native registry project that stores, signs, and scans content
- Houdini ↗ — hundreds of offensive and useful docker images for network intrusion
Section "Security" of the "Containers/Orchestration" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Containers/Orchestration chapter ↗ Source list — GitHub ↗ docker-bench-security ↗ Checked Jul 2026ProcessContainers/Orchestration — Manuals/Tutorials/Best Practices
- docker-cheat-sheet ↗ — a quick reference cheat sheet on Docker
- awesome-docker ↗ — a curated list of Docker resources and projects
- docker_practice ↗ — learn and understand Docker technologies, with real DevOps practice!
- dockerfiles ↗ — various Dockerfiles I use on the desktop and on servers
- kubernetes-the-hard-way ↗ — bootstrap Kubernetes the hard way on Google Cloud Platform. No scripts
- kubernetes-the-easy-way ↗ — bootstrap Kubernetes the easy way on Google Cloud Platform. No scripts
- cheatsheet-kubernetes-A4 ↗ — Kubernetes CheatSheets in A4
- k8s-security ↗ — kubernetes security notes and best practices
- kubernetes-production-best-practices ↗ — checklists with best-practices for production-ready Kubernetes
- kubernetes-production-best-practices ↗ — kubernetes security - best practice guide
- kubernetes-failure-stories ↗ — is a compilation of public failure/horror stories related to Kubernetes
Section "Manuals/Tutorials/Best Practices" of the "Containers/Orchestration" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Containers/Orchestration chapter ↗ Source list — GitHub ↗ docker-cheat-sheet ↗ Checked Jul 2026Find a tool in the "Containers/Orchestration" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Git — Basics
SafeInspect a repository
git status git log --oneline -10 git diff git blame <file> git reflog
Read-only commands to see what changed, who changed a line, and recent branch moves (reflog can recover "lost" commits).
Git documentation ↗ Pro Git book ↗ Checked Jul 2026Minor changeUndo or park changes
git restore <file> # discard unstaged edits to a file git restore --staged <file> # unstage git stash # park work in progress git stash pop # bring it back git revert <commit> # safe undo by new commit
git restore <file> permanently discards uncommitted edits.
Restore and revert are the safe ways to undo. Avoid reset --hard on shared branches.
SafeFind the commit that broke something
git bisect start
git bisect bad # current commit is broken
git bisect good <commit> # last known good
# test, then mark good/bad until it names the commit
git bisect resetBinary-searches history to locate the commit that introduced a bug.
git bisect ↗ Pro Git book ↗ Git documentation ↗ Checked Jul 2026A change broke the app
- Use
git logandgit diffto see recent changes. - Use
git bisectto find the exact commit. - Revert it with
git revertand test.
Manuals, Howtos & Tutorials
ProcessManuals/Howtos/Tutorials — Shell/Command line
- pure-bash-bible ↗ — is a collection of pure bash alternatives to external processes
- pure-sh-bible ↗ — is a collection of pure POSIX sh alternatives to external processes
- bash-guide ↗ — is a guide to learn bash
- bash-handbook ↗ — for those who wanna learn Bash
- The Bash Hackers Wiki ↗ — hold documentation of any kind about GNU Bash
- Shell & Utilities ↗ — describes the commands offered to application programs by POSIX-conformant systems
- the-art-of-command-line ↗ — master the command line, in one page
- Shell Style Guide ↗ — a shell style guide for Google-originated open-source projects
Section "Shell/Command line" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ pure-bash-bible ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Text Editors
- Vim Cheat Sheet ↗ — great multi language vim guide
Section "Text Editors" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ Vim Cheat Sheet ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Python
- Awesome Python ↗ — a curated list of awesome Python frameworks, libraries, software and resources
- python-cheatsheet ↗ — comprehensive Python cheatsheet
- pythoncheatsheet.org ↗ — basic reference for beginner and advanced developers
Section "Python" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ Awesome Python ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Sed & Awk & Other
- F’Awk Yeah! ↗ — advanced sed and awk usage (Parsing for Pentesters 3)
Section "Sed & Awk & Other" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ F’Awk Yeah! ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — *nix & Network
- nixCraft ↗ — linux and unix tutorials for new and seasoned sysadmin
- TecMint ↗ — the ideal Linux blog for Sysadmins & Geeks
- Omnisecu ↗ — free Networking, System Administration and Security tutorials
- linux-cheat ↗ — Linux tutorials and cheatsheets. Minimal examples. Mostly user-land CLI utilities
- linuxupskillchallenge ↗ — learn the skills required to sysadmin
- Unix Toolbox ↗ — Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users
- Linux Kernel Teaching ↗ — is a collection of lectures and labs Linux kernel topics
- htop explained ↗ — explanation of everything you can see in htop/top on Linux
- Linux Guide and Hints ↗ — tutorials on system administration in Fedora and CentOS
- strace-little-book ↗ — a little book which introduces strace
- linux-tracing-workshop ↗ — examples and hands-on labs for Linux tracing tools workshops
- http2-explained ↗ — a detailed document explaining and documenting HTTP/2
- http3-explained ↗ — a document describing the HTTP/3 and QUIC protocols
- HTTP/2 in Action ↗ — an excellent introduction to the new HTTP/2 standard
- Let's code a TCP/IP stack ↗ — great stuff to learn network and system programming at a deeper level
- Nginx Admin's Handbook ↗ — how to improve NGINX performance, security and other important things
- nginxconfig.io ↗ — NGINX config generator on steroids
- openssh guideline ↗ — is to help operational teams with the configuration of OpenSSH server and client
- SSH Handshake Explained ↗ — is a relatively brief description of the SSH handshake
- ISC's Knowledgebase ↗ — you'll find some general information about BIND 9, ISC DHCP, and Kea DHCP
- PacketLife.net ↗ — a place to record notes while studying for Cisco's CCNP certification
Section "*nix & Network" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ nixCraft ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Microsoft
- AD-Attack-Defense ↗ — attack and defend active directory using modern post exploitation activity
Section "Microsoft" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ AD-Attack-Defense ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Large-scale systems
- The System Design Primer ↗ — learn how to design large-scale systems
- Awesome Scalability ↗ — best practices in building High Scalability, High Availability, High Stability, and more
- Web Architecture 101 ↗ — the basic architecture concepts
Section "Large-scale systems" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ The System Design Primer ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — System hardening
- CIS Benchmarks ↗ — secure configuration settings for over 100 technologies, available as a free PDF
- Security Harden CentOS 7 ↗ — this walks you through the steps required to security harden CentOS
- CentOS 7 Server Hardening Guide ↗ — great guide for hardening CentOS; familiar with OpenSCAP
- awesome-security-hardening ↗ — is a collection of security hardening guides, tools and other resources
- The Practical Linux Hardening Guide ↗ — provides a high-level overview of hardening GNU/Linux systems
- Linux Hardening Guide ↗ — how to harden Linux as much as possible for security and privacy
Section "System hardening" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ CIS Benchmarks ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Security & Privacy
- Hacking Articles ↗ — LRaj Chandel's Security & Hacking Blog
- AWS security tools ↗ — make your AWS cloud environment more secure
- Rawsec's CyberSecurity Inventory ↗ — an inventory of tools and resources about CyberSecurity
- The Illustrated TLS Connection ↗ — every byte of a TLS connection explained and reproduced
- SSL Research ↗ — SSL and TLS Deployment Best Practices by SSL Labs
- SELinux Game ↗ — learn SELinux by doing. Solve Puzzles, show skillz
- Certificates and PKI ↗ — everything you should know about certificates and PKI but are too afraid to ask
- The Art of Subdomain Enumeration ↗ — a reference for subdomain enumeration techniques
- Quitting Google ↗ — the comprehensive guide to quitting Google
Section "Security & Privacy" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ Hacking Articles ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Web Apps
- OWASP ↗ — worldwide not-for-profit charitable organization focused on improving the security of software
- OWASP ASVS 3.0.1 ↗ — OWASP Application Security Verification Standard Project
- OWASP ASVS 3.0.1 Web App ↗ — simple web app that helps developers understand the ASVS requirements
- OWASP ASVS 4.0 ↗ — is a list of application security requirements or tests
- OWASP Testing Guide v4 ↗ — includes a "best practice" penetration testing framework
- OWASP Dev Guide ↗ — this is the development version of the OWASP Developer Guide
- OWASP WSTG ↗ — is a comprehensive open source guide to testing the security of web apps
- OWASP API Security Project ↗ — focuses specifically on the top ten vulnerabilities in API security
- Mozilla Web Security ↗ — help operational teams with creating secure web applications
- security-bulletins ↗ — security bulletins that relate to Netflix Open Source
- API-Security-Checklist ↗ — security countermeasures when designing, testing, and releasing your API
- Enable CORS ↗ — enable cross-origin resource sharing
- Application Security Wiki ↗ — is an initiative to provide all application security related resources at one place
- Weird Proxies ↗ — reverse proxy related attacks; it is a result of analysis of various proxies
- Webshells ↗ — great series about malicious payloads
- Practical Web Cache Poisoning ↗ — show you how to compromise websites by using esoteric web features
- Hidden directories and files ↗ — as a source of sensitive information about web application
- Explosive blog ↗ — great blog about cybersec and pentests
- Security Cookies ↗ — this paper will take a close look at cookie security
- APISecurityBestPractices ↗ — help you keep secrets (API keys, db credentials, certificates) out of source code
Section "Web Apps" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ OWASP ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — All-in-one
- LZone Cheat Sheets ↗ — all cheat sheets
- Dan’s Cheat Sheets’s ↗ — massive cheat sheets documentation
- Rico's cheatsheets ↗ — this is a modest collection of cheatsheets
- DevDocs API ↗ — combines multiple API documentations in a fast, organized, and searchable interface
- cheat.sh ↗ — the only cheat sheet you need
- gnulinux.guru ↗ — collection of cheat sheets about bash, vim and networking
- Web Skills ↗ — visual overview of useful skills to learn as a web developer
Section "All-in-one" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ LZone Cheat Sheets ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Ebooks
- free-programming-books ↗ — list of free learning resources in many languages
Section "Ebooks" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ free-programming-books ↗ Checked Jul 2026ProcessManuals/Howtos/Tutorials — Other
- CTF Series : Vulnerable Machines ↗ — the steps below could be followed to find vulnerabilities and exploits
- 50M_CTF_Writeup ↗ — $50 million CTF from Hackerone - writeup
- ctf-tasks ↗ — an archive of low-level CTF challenges developed over the years
- How to start RE/malware analysis? ↗ — collection of some hints and useful links for the beginners
- The C10K problem ↗ — it's time for web servers to handle ten thousand clients simultaneously, don't you think?
- How 1500 bytes became the MTU of the internet ↗ — great story about the Maximum Transmission Unit
- poor man's profiler ↗ — like dtrace's don't really provide methods to see what programs are blocking on
- HTTPS on Stack Overflow ↗ — this is the story of a long journey regarding the implementation of SSL
- Julia's Drawings ↗ — some drawings about programming and unix world, zines about systems & debugging tools
- Hash collisions ↗ — this great repository is focused on hash collisions exploitation
- sha256-animation ↗ — animation of the SHA-256 hash function in your terminal
- sha256algorithm ↗ — sha256 algorithm explained online step by step visually
- BGP Meets Cat ↗ — after 3072 hours of manipulating BGP, Job Snijders has succeeded in drawing a Nyancat
- bgp-battleships ↗ — playing battleships over BGP
- What happens when... ↗ — you type google.com into your browser and press enter?
- how-web-works ↗ — based on the 'What happens when...' repository
- HTTPS in the real world ↗ — great tutorial explain how HTTPS works in the real world
- Gitlab and NFS bug ↗ — how we spent two weeks hunting an NFS bug in the Linux kernel
- Gitlab melts down ↗ — postmortem on the database outage of January 31 2017 with the lessons we learned
- How To Become A Hacker ↗ — if you want to be a hacker, keep reading
- Operation Costs in CPU ↗ — should help to estimate costs of certain operations in CPU clocks
- Let's Build a Simple Database ↗ — writing a sqlite clone from scratch in C
- simple-computer ↗ — great resource to understand how computers work under the hood
- The story of "Have I been pwned?" ↗ — working with 154 million records on Azure Table Storage
- TOP500 Supercomputers ↗ — shows the 500 most powerful commercially available computer systems
- How to build a 8 GPU password cracker ↗ — hours of frustration like desktop components do
- CERN Data Centre ↗ — 3D visualizations of the CERN computing environments (and more)
- How fucked is my database ↗ — evaluate how fucked your database is with this handy website
- Linux Troubleshooting 101 , 2016 Edition ↗ — everything is a DNS Problem
- Five Whys ↗ — you know what the problem is, but you cannot solve it?
- Maersk, me & notPetya ↗ — how did ransomware successfully hijack hundreds of domain controllers?
- howhttps.works ↗ — how HTTPS works ...in a comic!
- howdns.works ↗ — a fun and colorful explanation of how DNS works
- POSTGRESQLCO.NF ↗ — your postgresql.conf documentation and recommendations
Section "Other" of the "Manuals/Howtos/Tutorials" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Manuals/Howtos/Tutorials chapter ↗ Source list — GitHub ↗ CTF Series : Vulnerable Machines ↗ Checked Jul 2026Find a tool in the "Manuals/Howtos/Tutorials" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Other Cheat Sheets
ProcessOther Cheat Sheets — Build your own DNS Servers
- Unbound DNS Tutorial ↗ — a validating, recursive, and caching DNS server
- Knot Resolver on Fedora ↗ — how to get faster and more secure DNS resolution with Knot Resolver on Fedora
- DNS-over-HTTPS ↗ — tutorial to setup your own DNS-over-HTTPS (DoH) server
- dns-over-https ↗ — a cartoon intro to DNS over HTTPS
- DNS-over-TLS ↗ — following to your DoH server, setup your DNS-over-TLS (DoT) server
- DNS Servers ↗ — how (and why) i run my own DNS Servers
Section "Build your own DNS Servers" of the "Other Cheat Sheets" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ Unbound DNS Tutorial ↗ Checked Jul 2026ProcessOther Cheat Sheets — Build your own Certificate Authority
- OpenSSL Certificate Authority ↗ — build your own certificate authority (CA) using the OpenSSL tools
- step-ca Certificate Authority ↗ — build your own certificate authority (CA) using open source step-ca
Section "Build your own Certificate Authority" of the "Other Cheat Sheets" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ OpenSSL Certificate Authority ↗ Checked Jul 2026ProcessOther Cheat Sheets — Build your own System/Virtual Machine
- os-tutorial ↗ — how to create an OS from scratch
- Write your Own Virtual Machine ↗ — how to write your own virtual machine (VM)
- x86 Bare Metal Examples ↗ — dozens of minimal operating systems to learn x86 system programming
- simple-computer ↗ — the scott CPU from "But How Do It Know?" by J. Clark Scott
- littleosbook ↗ — the little book about OS development
Section "Build your own System/Virtual Machine" of the "Other Cheat Sheets" chapter in the trimstray curated list of tools, manuals, and cheat sheets.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ os-tutorial ↗ Checked Jul 2026ProcessOther Cheat Sheets — DNS Servers list (privacy)
- 84.200.69.80 — dns.watch
- 94.247.43.254 — opennic.org
- 64.6.64.6 — verisign.com
- 89.233.43.71 — censurfridns.dk
- 1.1.1.1 — cloudflare.com
- 94.130.110.185 — dnsprivacy.at
"DNS Servers list (privacy)" list from the Other Cheat Sheets chapter.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ Checked Jul 2026ProcessOther Cheat Sheets — TOP Browser extensions
- IPvFoo — Display the server IP address and HTTPS information across all page elements.
- FoxyProxy — Simplifies configuring browsers to access proxy-servers.
- HTTPS Everywhere — Automatically use HTTPS security on many sites.
- uMatrix — Point & click to forbid/allow any class of requests made by your browser.
- uBlock Origin — An efficient blocker: easy on memory and CPU footprint.
- Session Buddy — Manage browser tabs and bookmarks with ease.
- SuperSorter — Sort bookmarks recursively, delete duplicates, merge folders, and more.
- Clear Cache — Clear your cache and browsing data.
- d3coder — Encoding/Decoding plugin for various types of encoding.
- Web Developer — Adds a toolbar button with various web developer tools.
- ThreatPinch Lookup — Add threat intelligence hover tool tips.
"TOP Browser extensions" list from the Other Cheat Sheets chapter.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ Checked Jul 2026ProcessOther Cheat Sheets — TOP Burp extensions
- Active Scan++ — Extends Burp's active and passive scanning capabilities.
- Autorize — Automatically detects authorization enforcement.
- AuthMatrix — A simple matrix grid to define the desired levels of access privilege.
- Logger++ — Logs requests and responses for all Burp tools in a sortable table.
- Bypass WAF — Adds headers useful for bypassing some WAF devices.
- JSON Beautifier — Beautifies JSON content in the HTTP message viewer.
- JSON Web Tokens — Enables Burp to decode and manipulate JSON web tokens.
- CSP Auditor — Displays CSP headers for responses, and passively reports CSP weaknesses.
- CSP-Bypass — Passively scans for CSP headers that contain known bypasses.
- Hackvertor — Converts data using a tag-based configuration to apply various encoding.
- HTML5 Auditor — Scans for usage of risky HTML5 features.
- Software Vulnerability Scanner — Vulnerability scanner based on vulners.com audit API.
- Turbo Intruder — Is a powerful bruteforcing tool.
- Upload Scanner — Upload a number of different file types, laced with different forms of payload.
Offensive-security tools: use only on systems you own or have written permission to test.
"TOP Burp extensions" list from the Other Cheat Sheets chapter.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ Checked Jul 2026ProcessOther Cheat Sheets — Hack Mozilla Firefox address bar
^— for matches in your browsing history*— for matches in your bookmarks.%— for matches in your currently open tabs.#— for matches in page titles.@— for matches in web addresses.
"Hack Mozilla Firefox address bar" list from the Other Cheat Sheets chapter.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ Checked Jul 2026ProcessOther Cheat Sheets — Chrome hidden commands
chrome://chrome-urls— list of all commandschrome://flags— enable experiments and development featureschrome://interstitials— errors and warningschrome://net-internals— network internals (events, dns, cache)chrome://network-errors— network errorschrome://net-export— start logging future network activity to a filechrome://safe-browsing— safe browsing optionschrome://user-actions— record all user actionschrome://restart— restart chromechrome://dino— ERR_INTERNET_DISCONNECTED...cache:<website-address>— view the cached version of the web page
"Chrome hidden commands" list from the Other Cheat Sheets chapter.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ Checked Jul 2026ProcessOther Cheat Sheets — Hashing, encryption and encoding
- Hashing: plaintext to hash; one-way, cannot be reversed.
- Symmetric encryption: one shared key encrypts and decrypts.
- Asymmetric encryption: public key encrypts, private key decrypts.
- Encoding: reversible format change with no key (not security).
Plain-English summary of the "Hashing, encryption and encoding" diagram by Michal Špaček in the Other Cheat Sheets chapter.
Other Cheat Sheets chapter ↗ Source list — GitHub ↗ Checked Jul 2026Find a tool in the "Other Cheat Sheets" chapter
- Open the matching section below.
- Open the tool link and read its README or manual.
- Test it on a lab or non-production system first.
- Record what you used in the ticket or change note.
Shell One-liners
ProcessShell one-liners — terminal
- Reload shell without exit
- Close shell keeping all subprocess running
- Exit without saving shell history
- Perform a branching conditional
- Pipe stdout and stderr to separate commands
- Redirect stdout and stderr each to separate files and print both to the screen
- List of commands you use most often
- Sterilize bash history
- Quickly backup a file
- Empty a file (truncate to 0 size)
- Delete all files in a folder that don't match a certain file extension
- Pass multi-line string to a file
- Edit a file on a remote host using vim
- Create a directory and change into it at the same time
- Convert uppercase files to lowercase files
- Print a row of characters across the terminal
- Show shell history without line numbers
- Run command(s) after exit session
- Generate a sequence of numbers
- Simple Bash filewatching
One-liner titles for terminal from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ terminal reference ↗ Checked Jul 2026ProcessShell one-liners — busybox
- Static HTTP web server
One-liner titles for busybox from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ busybox reference ↗ Checked Jul 2026ProcessShell one-liners — mount
- Mount a temporary ram partition
- Remount a filesystem as read/write
One-liner titles for mount from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ mount reference ↗ Checked Jul 2026ProcessShell one-liners — fuser
- Show which processes use the files/directories
- Kills a process that is locking a file
- Kills a process that is locking a file with specific signal
- Show what PID is listening on specific port
- Show all processes using the named filesystems or block device
One-liner titles for fuser from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ fuser reference ↗ Checked Jul 2026ProcessShell one-liners — lsof
- Show process that use internet connection at the moment
- Show process that use specific port number
- Lists all listening ports together with the PID of the associated process
- List all open ports and their owning executables
- Show all open ports
- Show open ports (LISTEN)
- List all files opened by a particular command
- View user activity per directory
- Show 10 largest open files
- Show current working directory of a process
One-liner titles for lsof from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ lsof reference ↗ Checked Jul 2026ProcessShell one-liners — ps
- Show a 4-way scrollable process tree with full details
- Processes per user counter
- Show all processes by name with main header
One-liner titles for ps from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ ps reference ↗ Checked Jul 2026ProcessShell one-liners — find
- Find files that have been modified on your system in the past 60 minutes
- Find all files larger than 20M
- Find duplicate files (based on MD5 hash)
- Change permission only for files
- Change permission only for directories
- Find files and directories for specific user/group
- Find files and directories for all without specific user/group
- Looking for files/directories that only have certain permission
- Delete older files than 60 days
- Recursively remove all empty sub-directories from a directory
- How to find all hard links to a file
- Recursively find the latest modified files
- Recursively find/replace of a string with sed
- Recursively find/replace of a string in directories and file names
- Recursively find suid executables
One-liner titles for find from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ find reference ↗ Checked Jul 2026ProcessShell one-liners — top
- Use top to monitor only all processes with the specific string
One-liner titles for top from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ top reference ↗ Checked Jul 2026ProcessShell one-liners — vmstat
- Show current system utilization (fields in kilobytes)
- Show current system utilization will get refreshed every 5 seconds
- Display report a summary of disk operations
- Display report of event counters and memory stats
- Display report about kernel objects stored in slab layer cache
One-liner titles for vmstat from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ vmstat reference ↗ Checked Jul 2026ProcessShell one-liners — iostat
- Show information about the CPU usage, and I/O statistics about all the partitions
- Show information only about the CPU utilization
- Show information only about the disk utilization
- Show information only about the LVM utilization
One-liner titles for iostat from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ iostat reference ↗ Checked Jul 2026ProcessShell one-liners — strace
- Track with child processes
- Track process with 30 seconds limit
- Track processes and redirect output to a file
- Track with print time spent in each syscall and limit length of print strings
- Track the open request of a network port
- Track the open request of a network port (show TCP/UDP)
One-liner titles for strace from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ strace reference ↗ Checked Jul 2026ProcessShell one-liners — kill
- Kill a process running on port
One-liner titles for kill from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ kill reference ↗ Checked Jul 2026ProcessShell one-liners — diff
- Compare two directory trees
- Compare output of two commands
One-liner titles for diff from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ diff reference ↗ Checked Jul 2026ProcessShell one-liners — vimdiff
- Highlight the exact differences, based on characters and words
- Compare two JSON files
- Compare Hex dump
- diffchar
One-liner titles for vimdiff from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ vimdiff reference ↗ Checked Jul 2026ProcessShell one-liners — tail
- Annotate tail -f with timestamps
- Analyse an Apache access log for the most common IP addresses
- Analyse web server log and show only 5xx http codes
One-liner titles for tail from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ tail reference ↗ Checked Jul 2026ProcessShell one-liners — tar
- System backup with exclude specific directories
- System backup with exclude specific directories (pigz)
One-liner titles for tar from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ tar reference ↗ Checked Jul 2026ProcessShell one-liners — dump
- System backup to file
- Restore system from lzo file
One-liner titles for dump from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ dump reference ↗ Checked Jul 2026ProcessShell one-liners — cpulimit
- Limit the cpu usage of a process
One-liner titles for cpulimit from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ cpulimit reference ↗ Checked Jul 2026ProcessShell one-liners — pwdx
- Show current working directory of a process
One-liner titles for pwdx from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ pwdx reference ↗ Checked Jul 2026ProcessShell one-liners — taskset
- Start a command on only one CPU core
One-liner titles for taskset from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ taskset reference ↗ Checked Jul 2026ProcessShell one-liners — tr
- Show directories in the PATH, one per line
One-liner titles for tr from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ tr reference ↗ Checked Jul 2026ProcessShell one-liners — chmod
- Remove executable bit from all files in the current directory
- Restore permission for /bin/chmod
One-liner titles for chmod from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ chmod reference ↗ Checked Jul 2026ProcessShell one-liners — who
- Find last reboot time
- Detect a user sudo-su'd into the current shell
One-liner titles for who from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ who reference ↗ Checked Jul 2026ProcessShell one-liners — last
- Was the last reboot a panic?
One-liner titles for last from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ last reference ↗ Checked Jul 2026ProcessShell one-liners — screen
- Start screen in detached mode
- Attach to an existing screen session
One-liner titles for screen from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ screen reference ↗ Checked Jul 2026ProcessShell one-liners — script
- Record and replay terminal session
One-liner titles for script from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ script reference ↗ Checked Jul 2026ProcessShell one-liners — du
- Show 20 biggest directories with 'K M G'
One-liner titles for du from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ du reference ↗ Checked Jul 2026ProcessShell one-liners — inotifywait
- Init tool everytime a file in a directory is modified
One-liner titles for inotifywait from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ inotifywait reference ↗ Checked Jul 2026ProcessShell one-liners — openssl
- Testing connection to the remote host
- Testing connection to the remote host (debug mode)
- Testing connection to the remote host (with SNI support)
- Testing connection to the remote host with specific ssl version
- Testing connection to the remote host with specific ssl cipher
- Verify 0-RTT
- Generate private key without passphrase
- Generate private key with passphrase
- Remove passphrase from private key
- Encrypt existing private key with a passphrase
- Check private key
- Get public key from private key
- Generate private key and CSR
- Generate CSR
- Generate CSR (metadata from existing certificate)
- Generate CSR with -config param
- List available EC curves
- Print ECDSA private and public keys
- Generate ECDSA private key
- Generate private key and CSR (ECC)
- Generate self-signed certificate
- Generate self-signed certificate from existing private key
- Generate self-signed certificate from existing private key and csr
- Generate DH public parameters
- Display DH public parameters
- Extract private key from pfx
- Extract private key and certs from pfx
- Extract certs from p7b
- Convert DER to PEM
- Convert PEM to DER
- Verification of the private key
- Verification of the public key
- Verification of the certificate
- Verification of the CSR
- Check the private key and the certificate are match
- Check the private key and the CSR are match
One-liner titles for openssl from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ openssl reference ↗ Checked Jul 2026ProcessShell one-liners — secure-delete
- Secure delete with shred
- Secure delete with scrub
- Secure delete with badblocks
- Secure delete with secure-delete
One-liner titles for secure-delete from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ secure-delete reference ↗ Checked Jul 2026ProcessShell one-liners — dd
- Show dd status every so often
- Redirect output to a file with dd
One-liner titles for dd from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ dd reference ↗ Checked Jul 2026ProcessShell one-liners — gpg
- Export public key
- Encrypt file
- Decrypt file
- Search recipient
- List all of the packets in an encrypted file
One-liner titles for gpg from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ gpg reference ↗ Checked Jul 2026ProcessShell one-liners — system-other
- Reboot system from init
- Init system from single user mode
- Show current working directory of a process
- Show actual pathname of the executed command
One-liner titles for system-other from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ system-other reference ↗ Checked Jul 2026ProcessShell one-liners — curl
- Find your external IP address (external services)
- Repeat URL request
- Check DNS and HTTP trace with headers for specific domains
One-liner titles for curl from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ curl reference ↗ Checked Jul 2026ProcessShell one-liners — ssh
- Escape Sequence
- Compare a remote file with a local file
- SSH connection through host in the middle
- Run command over SSH on remote host
- Get public key from private key
- Get all fingerprints
- SSH authentication with user password
- SSH authentication with publickey
- Simple recording SSH session
- Using Keychain for SSH logins
- SSH login without processing any login scripts
- SSH local port forwarding
- SSH remote port forwarding
One-liner titles for ssh from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ ssh reference ↗ Checked Jul 2026ProcessShell one-liners — linux-dev
- Testing remote connection to port
- Read and write to TCP or UDP sockets with common bash tools
One-liner titles for linux-dev from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ linux-dev reference ↗ Checked Jul 2026ProcessShell one-liners — tcpdump
- Filter incoming (on interface) traffic (specific <ip:port>)
- Filter incoming (on interface) traffic (specific <ip:port>) and write to a file
- Capture all ICMP packets
- Check protocol used (TCP or UDP) for service
- Display ASCII text (to parse the output using grep or other)
- Grab everything between two keywords
- Grab user and pass ever plain http
- Extract HTTP User Agent from HTTP request header
- Capture only HTTP GET and POST packets
- Rotate capture files
- Top hosts by packets
- Excludes any RFC 1918 private address
One-liner titles for tcpdump from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ tcpdump reference ↗ Checked Jul 2026ProcessShell one-liners — tcpick
- Analyse packets in real-time
One-liner titles for tcpick from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ tcpick reference ↗ Checked Jul 2026ProcessShell one-liners — nmap
- Ping scans the network
- Show only open ports
- Full TCP port scan using with service version detection
- Nmap scan and pass output to Nikto
- Recon specific ip:service with Nmap NSE scripts stack
One-liner titles for nmap from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ nmap reference ↗ Checked Jul 2026ProcessShell one-liners — netcat
- Transfer data file (archive)
- Launch remote shell
- Simple file server
- Simple minimal HTTP Server
- Simple HTTP Server
- Simple HTTP Proxy (single connection)
- Create a single-use TCP or UDP proxy
One-liner titles for netcat from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ netcat reference ↗ Checked Jul 2026ProcessShell one-liners — gnutls-cli
- Testing connection to remote host (with SNI support)
- Testing connection to remote host (without SNI support)
One-liner titles for gnutls-cli from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ gnutls-cli reference ↗ Checked Jul 2026ProcessShell one-liners — socat
- Testing remote connection to port
- Redirecting TCP-traffic to a UNIX domain socket under Linux
One-liner titles for socat from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ socat reference ↗ Checked Jul 2026ProcessShell one-liners — p0f
- Set iface in promiscuous mode and dump traffic to the log file
One-liner titles for p0f from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ p0f reference ↗ Checked Jul 2026ProcessShell one-liners — netstat
- Graph # of connections for each hosts
- Monitor open connections for specific port including listen, count and sort it per IP
- Grab banners from local IPv4 listening ports
One-liner titles for netstat from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ netstat reference ↗ Checked Jul 2026ProcessShell one-liners — rsync
- Rsync remote data as root using sudo
One-liner titles for rsync from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ rsync reference ↗ Checked Jul 2026ProcessShell one-liners — host
- Resolves the domain name (using external dns server)
- Checks the domain administrator (SOA record)
One-liner titles for host from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ host reference ↗ Checked Jul 2026ProcessShell one-liners — dig
- Resolves the domain name (short output)
- Lookup NS record for specific domain
- Query only answer section
- Query ALL DNS Records
- DNS Reverse Look-up
One-liner titles for dig from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ dig reference ↗ Checked Jul 2026ProcessShell one-liners — certbot
- Generate multidomain certificate
- Generate wildcard certificate
- Generate certificate with 4096 bit private key
One-liner titles for certbot from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ certbot reference ↗ Checked Jul 2026ProcessShell one-liners — network-other
- Get all subnets for specific AS (Autonomous system)
- Resolves domain name from dns.google.com with curl and jq
One-liner titles for network-other from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ network-other reference ↗ Checked Jul 2026ProcessShell one-liners — git
- Log alias for a decent view of your repo
One-liner titles for git from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ git reference ↗ Checked Jul 2026ProcessShell one-liners — python
- Static HTTP web server
- Static HTTP web server with SSL support
- Encode base64
- Decode base64
One-liner titles for python from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ python reference ↗ Checked Jul 2026ProcessShell one-liners — awk
- Search for matching lines
- Search non matching lines
- Print matching lines with numbers
- Print the last column
- Find all the lines longer than 80 characters
- Print only lines of less than 80 characters
- Print double new lines a file
- Print line numbers
- Print line numbers for only non-blank lines
- Print the line and the next two (i=5) lines after the line matching regexp
- Print the lines starting at the line matching 'server {' until the line matching '}'
- Print multiple columns with separators
- Remove empty lines
- Delete trailing white space (spaces, tabs)
- Delete leading white space
- Remove duplicate consecutive lines
- Remove duplicate entries in a file without sorting
- Exclude multiple columns
- Substitute foo for bar on lines matching regexp
- Add some characters at the beginning of matching lines
- Get the last hour of Apache logs
One-liner titles for awk from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ awk reference ↗ Checked Jul 2026ProcessShell one-liners — sed
- Print a specific line from a file
- Remove a specific line from a file
- Remove a range of lines from a file
- Replace newline(s) with a space
- Delete string +N next lines
One-liner titles for sed from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ sed reference ↗ Checked Jul 2026ProcessShell one-liners — grep
- Search for a "pattern" inside all files in the current directory
- Show only for multiple patterns
- Except multiple patterns
- Show data from file without comments
- Show data from file without comments and new lines
- Show strings with a dash/hyphen
- Remove blank lines from a file and save output to new file
One-liner titles for grep from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ grep reference ↗ Checked Jul 2026ProcessShell one-liners — perl
- Search and replace (in place)
- Edit of `*.conf` files changing all foo to bar (and backup original)
- Prints the first 20 lines from `*.conf` files
- Search lines 10 to 20
- Delete first 10 lines (and backup original)
- Delete all but lines between foo and bar (and backup original)
- Reduce multiple blank lines to a single line
- Convert tabs to spaces (1t = 2sp)
- Read input from a file and report number of lines and characters
One-liner titles for perl from the Shell One-liners chapter; open the chapter for the exact commands.
Shell One-liners chapter ↗ Source list — GitHub ↗ perl reference ↗ Checked Jul 2026Use a one-liner safely
- Find the tool in the list below.
- Open the chapter for the exact command.
- Read what each part does before running it.
- Run it on a test system or with a read-only option first.
Shell Tricks & Functions
ProcessShell tricks — get a clean interactive shell
- script /dev/null -c bash
- Ctrl-Z (to send it to background)
- stty raw -echo; fg (returns the shell to foreground)
- reset (to reset terminal)
- xterm (when asked for terminal type)
- export TERM=xterm; export SHELL=bash
Steps from the Shell Tricks chapter for cleaning up a raw shell session (script, stty, reset, TERM).
Shell Tricks chapter ↗ Source list — GitHub ↗ stty — GNU coreutils ↗ Checked Jul 2026ProcessShell functions — Domain resolve and Get ASN
- Domain resolve
- Get ASN
Reusable bash functions from the Shell Functions chapter (they need curl and jq).
Shell functions chapter ↗ Source list — GitHub ↗ jq manual ↗ Checked Jul 2026Use a trick or function
- Open the chapter for the full text.
- Check dependencies (curl, jq).
- Test in a scratch shell.
- Save useful ones in your own profile or script library.
Software Development Lifecycle (SDLC)
ProcessSDLC phases at a glance
- Plan: define goals, scope, and requirements.
- Design: architecture, data model, and interfaces.
- Build: write and review code.
- Test: unit, integration, and user acceptance testing.
- Deploy: release with a rollback plan.
- Maintain: monitor, fix bugs, and improve.
Waterfall runs the phases in order; Agile (Scrum, Kanban) repeats them in short cycles.
NIST Secure Software Development Framework ↗ Agile Manifesto ↗ Scrum Guide ↗ Checked Jul 2026ProcessReport a bug so a developer can fix it
- What you did (exact steps).
- What you expected vs what happened.
- Exact error text or screenshot, and time it occurred.
- Environment: app version, server, user.
- Logs or job output attached.
- How often it happens and the business impact.
A complete bug report saves a round of questions.
Pro Git book ↗ NIST SSDF ↗ Agile Manifesto ↗ Checked Jul 2026Support finds a software bug
- Reproduce it and capture the details.
- Check whether it is known.
- Log it with the bug-report details.
- Follow up on status.
Software Engineering — Advanced Practices
ProcessCI/CD pipeline (data flow)
- Every change triggers an automated build and test run.
- Scans check dependencies, secrets, and code for known problems.
- A versioned artifact (package or image) is stored once and promoted through environments unchanged.
- Staging is tested, then a person approves production if your process requires it.
- After release, monitor and be ready to roll back.
The standard automated path from commit to production.
GitHub Actions docs ↗ Azure Pipelines — Microsoft Learn ↗ NIST Secure Software Development Framework ↗ Checked Jul 2026ProcessBlue-green and canary deployments
- Blue-green: run the new version beside the old one, test it, then switch all traffic at once; switch back to roll back.
- Canary: send a small percentage to the new version first and watch errors and speed before increasing.
- Both need identical environments and a database change plan that works with old and new code.
- Use health checks and clear rollback triggers (error rate, latency).
Ways to release with less risk.
Blue-green deployment — Martin Fowler ↗ Canary release — Martin Fowler ↗ Cloud deployment patterns — Microsoft Learn ↗ Checked Jul 2026ProcessDesign patterns every developer meets
- Creational: Factory, Builder, Singleton — how objects get created.
- Structural: Adapter, Decorator, Facade — how pieces connect.
- Behavioral: Observer, Strategy, Command — how pieces communicate.
- Architectural: MVC, layered, event-driven, microservices, CQRS.
- Use a pattern when it solves a real problem, not to look advanced.
A vocabulary for describing solutions.
Design patterns — Refactoring Guru ↗ SOLID principles — Wikipedia ↗ Azure architecture patterns — Microsoft Learn ↗ Checked Jul 2026ProcessSOLID principles in plain English
- Single responsibility: a class or function has one reason to change.
- Open/closed: add behavior by extending, not rewriting.
- Liskov substitution: a subtype can be used anywhere its parent is expected.
- Interface segregation: many small interfaces beat one large one.
- Dependency inversion: depend on abstractions, so parts can be swapped and tested.
Five guidelines for maintainable object-oriented code.
SOLID principles — Wikipedia ↗ Design patterns — Refactoring Guru ↗ Refactoring catalog — Martin Fowler ↗ Checked Jul 2026ProcessMonolith vs microservices
- A monolith is simpler to build, test, and run; start here for most projects.
- Microservices split the system so teams can deploy independently, at the cost of network calls, tracing, and data consistency work.
- Split along clear business boundaries, not technical layers.
- Each service owns its data; others ask through its API or events.
- Use a queue for work that does not need an instant answer.
The architecture trade-off in one picture.
Microservices — Martin Fowler ↗ Cloud deployment patterns — Microsoft Learn ↗ The Twelve-Factor App ↗ Checked Jul 2026ProcessThe Twelve-Factor App (cloud-ready apps)
- One codebase in version control, many deploys.
- Declare dependencies explicitly.
- Store configuration in the environment, not in code.
- Treat databases and queues as attached resources.
- Separate build, release, and run.
- Run as stateless processes; keep state in a backing service.
- Export services by port, scale by running more processes.
- Make processes disposable: fast start, clean stop.
- Keep development and production as similar as possible.
- Treat logs as event streams.
- Run admin tasks as one-off processes.
A checklist for apps that run well in the cloud and in containers.
The Twelve-Factor App ↗ Dockerfile best practices ↗ Cloud deployment patterns — Microsoft Learn ↗ Checked Jul 2026ProcessObservability: logs, metrics, and traces
- Logs: what happened, with context (structured, with correlation IDs).
- Metrics: numbers over time (requests, errors, latency, CPU) used for dashboards and alerts.
- Traces: one request followed across services to find the slow hop.
- Alert on symptoms users feel (errors, slow responses), not only on CPU.
- Use one standard such as OpenTelemetry to collect all three.
The three signals you need to run production systems.
OpenTelemetry documentation ↗ Azure Monitor — Microsoft Learn ↗ Google SRE book ↗ Checked Jul 2026ProcessDatabase practices for developers
- Add indexes for columns used in WHERE, JOIN, and ORDER BY; check the execution plan.
- Use migrations (versioned scripts) for schema changes, tested before production.
- Use transactions for multi-step changes.
- Avoid SELECT * and unbounded queries; page large results.
- Use parameterized queries; keep least-privilege database accounts.
- Back up and test restores.
The habits that prevent slow and broken data code.
SQL Server indexes — Microsoft Learn ↗ OWASP Top 10 ↗ Use The Index, Luke ↗ Checked Jul 2026ProcessDependency and supply-chain management
- Pin versions and commit the lock file.
- Use only needed packages from trusted sources; check for typos in names (typosquatting).
- Scan dependencies for known vulnerabilities in the pipeline.
- Generate a software bill of materials (SBOM) for releases.
- Update on a schedule and test before merging updates.
Most apps are mostly other people's code, so manage it deliberately.
SBOM — CISA ↗ NIST Secure Software Development Framework ↗ OWASP Top 10 ↗ Checked Jul 2026ProcessFeature flags and semantic versioning
- Feature flags let you merge unfinished work turned off, and enable it for a small group first.
- Remove flags once a feature is fully released.
- Semantic versioning: MAJOR.MINOR.PATCH — major for breaking changes, minor for new features, patch for fixes.
- Write a changelog for every release.
Tools for releasing gradually and communicating change.
Semantic Versioning ↗ Trunk-based development ↗ Keep a Changelog ↗ Checked Jul 2026SafeGit — advanced commands
git log --oneline --graph --decorate --all git diff main...feature # changes on feature since it branched git stash push -m "wip" && git stash pop git restore --staged <file> # unstage git restore <file> # discard local changes to a file git cherry-pick <commit> git rebase main # replay your branch on top of main git rebase -i HEAD~5 # tidy local commits (only unpushed ones) git reflog # find lost commits git bisect start && git bisect bad && git bisect good <commit> git blame <file> git tag -a v1.2.0 -m "Release 1.2.0"
Read-only or local commands, but rebase and restore change your working copy; commit or stash first.
Commands for investigating history and cleaning up work. Rebase only commits you have not pushed.
Git documentation ↗ Pro Git book ↗ Comparing Git workflows — Atlassian ↗ Checked Jul 2026Safekubectl — everyday commands
kubectl config get-contexts kubectl get pods -A kubectl get deploy,svc,ing -n <namespace> kubectl describe pod <pod> -n <namespace> kubectl logs <pod> -n <namespace> --tail=100 -f kubectl exec -it <pod> -n <namespace> -- sh kubectl rollout status deploy/<name> -n <namespace> kubectl rollout undo deploy/<name> -n <namespace> # rolls back (changes the cluster) kubectl top pods -n <namespace>
rollout undo changes the cluster; all others are read-only.
Read the context first (get-contexts) so you do not run commands against the wrong cluster.
Prepare a service for production
- Add structured logging, metrics, and health checks.
- Put configuration in the environment and secrets in a vault.
- Build a pipeline: test, scan, deploy to staging.
- Plan rollout (canary or blue-green) and a rollback.
Software Engineering — Common Practices
ProcessClean code habits that matter most
- Use clear names for variables, functions, and files; a good name removes the need for a comment.
- Keep functions short and focused on one job.
- Avoid repeating yourself: move shared logic into one function.
- Handle errors on purpose; do not swallow exceptions.
- Use comments to explain why, not what.
- Format with an automatic formatter and check with a linter so style is never debated.
The basics that make code easy to read, change, and debug.
Clean Code summary — Wikipedia ↗ Refactoring catalog — Martin Fowler ↗ Code review developer guide — Google ↗ Checked Jul 2026ProcessGit branch, pull request, and merge flow
- Create a short-lived branch from the main branch for one change.
- Commit small, logical steps with clear messages.
- Push and open a pull request describing what and why.
- Automated checks and a reviewer approve (or request changes).
- Merge, delete the branch, and let the pipeline deploy.
The everyday team workflow for changing code safely.
Comparing Git workflows — Atlassian ↗ Pro Git book ↗ Git documentation ↗ Checked Jul 2026ProcessBranching strategies: trunk-based vs Git flow
- Trunk-based: everyone merges small changes to main often; use feature flags for unfinished work. Best with strong automated tests.
- Git flow: long-lived develop and release branches. Suits scheduled releases but adds merge work.
- GitHub flow: branch, pull request, merge to main, deploy. Simple and common.
- Choose the simplest model that fits your release process and test coverage.
How teams organize branches and where each fits.
Trunk-based development ↗ Comparing Git workflows — Atlassian ↗ GitHub flow ↗ Checked Jul 2026ProcessWrite good commit messages and pull requests
- First line: short summary in the imperative (for example "Fix null check in login").
- Blank line, then why the change was made and anything reviewers should know.
- One logical change per commit and per pull request.
- Link the ticket or issue.
- Include how you tested it.
Good history makes bugs easier to find and reviews faster.
Conventional Commits ↗ Code review developer guide — Google ↗ Pro Git book ↗ Checked Jul 2026ProcessCode review checklist
- Does it do what the ticket asks, and is anything missing?
- Is it easy to read and consistent with the codebase?
- Are errors, empty inputs, and edge cases handled?
- Are there tests, and do they check behavior?
- Any security issues: input validation, secrets, permissions?
- Any performance concern: loops, queries, large data?
- Is documentation or a config change needed?
A short list for reviewers and authors.
Code review developer guide — Google ↗ OWASP Top 10 ↗ NIST Secure Software Development Framework ↗ Checked Jul 2026ProcessTest pyramid
- Unit tests check one function or class quickly; write many.
- Integration tests check that parts work together (code with the database or an API).
- End-to-end tests drive the whole system like a user; keep these few because they are slow and brittle.
- Run unit tests on every commit and the rest in the pipeline.
- Write a failing test for each bug before you fix it.
Where to put testing effort for fast, reliable feedback.
The practical test pyramid — Martin Fowler ↗ pytest documentation ↗ Testing — Microsoft Learn ↗ Checked Jul 2026SafeRun tests and linters (Python, JavaScript)
# Python python -m venv .venv . .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1 pip install -r requirements.txt pytest -q pytest -k login -x # run matching tests, stop at first failure ruff check . # lint black --check . # format check # JavaScript / TypeScript npm ci npm test npx eslint . npx prettier --check .
Run these before every pull request; the same commands should run in the pipeline.
pytest documentation ↗ ESLint ↗ Ruff ↗ Checked Jul 2026ProcessREST API design basics
- Use nouns for resources (
/tickets/42) and HTTP methods for actions: GET read, POST create, PUT/PATCH update, DELETE remove. - Return correct status codes: 200, 201, 204, 400, 401, 403, 404, 409, 429, 500.
- Use JSON with consistent field names and error format.
- Version the API (
/v1/) and avoid breaking changes. - Support pagination, filtering, and sorting for lists.
- Authenticate every call and validate every input.
- Document with OpenAPI.
Conventions that make an API predictable.
Azure API design — Microsoft Learn ↗ HTTP methods — MDN ↗ HTTP status codes — MDN ↗ Checked Jul 2026ProcessError handling and logging
- Catch specific errors, add context, and re-raise or return a clear error.
- Log at levels: debug, info, warning, error; log one structured line per event.
- Include a request or correlation ID in every log line.
- Never log passwords, tokens, or PHI.
- Make failures visible: alerts for errors, not just log files.
- Fail safely: on error, do not leave data half-changed (use transactions).
Good logs turn a mystery failure into a five-minute fix.
OpenTelemetry documentation ↗ Python logging ↗ The Twelve-Factor App ↗ Checked Jul 2026ProcessSecure coding checklist
- Validate and sanitize all input; use parameterized queries to stop SQL injection.
- Encode output to prevent cross-site scripting.
- Store secrets in a vault or environment variables, never in code or Git.
- Use well-tested libraries for authentication and encryption.
- Apply least privilege to accounts, tokens, and services.
- Keep dependencies updated and scan them for known vulnerabilities.
- Review the OWASP Top 10 for each project.
Core habits that prevent the most common vulnerabilities.
OWASP Top 10 ↗ NIST Secure Software Development Framework ↗ OWASP Cheat Sheet Series ↗ Checked Jul 2026ProcessDocumentation developers actually keep up
- README: what it is, how to run it, how to test it, how to deploy it.
- Architecture notes and a diagram of the main data flows.
- Decision records (ADRs): why a choice was made, in one page.
- Runbook: how to operate it and fix common failures.
- Keep docs in the repository and update them in the same pull request as the change.
Short, close-to-the-code documentation stays accurate.
Architecture decision records ↗ Write the Docs ↗ The Twelve-Factor App ↗ Checked Jul 2026SafeDocker: everyday commands
docker version docker ps -a # containers (running and stopped) docker images docker build -t myapp:1.0 . docker run --rm -p 8080:80 myapp:1.0 docker run -d --name web -p 8080:80 nginx docker logs -f web docker exec -it web sh docker stop web && docker rm web docker compose up -d docker compose logs -f docker compose down
The commands used daily to build and run containers.
Docker CLI reference ↗ Dockerfile best practices ↗ Docker Compose ↗ Checked Jul 2026Ship a small change safely
- Create a branch and make one focused change.
- Add or update a test and run it.
- Open a pull request and get a review.
- Merge after checks pass and watch the deployment.
08 Languages & DatabasesPython, PowerShell, shell, SQL, Db2, HTML, CSS, Java, and C++
C++ — Fundamentals
SafeVariables & basic I/O
#include <iostream>
using namespace std;
int main() {
int count = 5;
string name = "Server01";
cout << name << " has " << count << " users" << endl;
return 0;
}Every C++ program needs a main() function — it's the entry point the compiler looks for.
cout/cin are the standard console input/output streams — the C++ equivalent of Python's print() or PowerShell's Write-Host.
std::cin — cppreference ↗ cppreference ↗ Standard C++ Foundation ↗ Checked Jul 2026SafeFunctions
int addNumbers(int a, int b) {
return a + b;
}
int main() {
int result = addNumbers(3, 4);
cout << result << endl;
}A function must be declared (or defined) before it's used — C++ reads top to bottom, unlike Python where a function can be called before its definition appears later in some contexts.
Function signatures in C++ require explicit return and parameter types — the compiler enforces this at build time, not at runtime.
Functions — cppreference ↗ cppreference ↗ Standard C++ Foundation ↗ Checked Jul 2026SafePointers & references
int x = 10; int* ptr = &x; // ptr holds the memory address of x cout << *ptr << endl; // dereference: prints 10 int& ref = x; // ref is an alias for x ref = 20; // this also changes x
A pointer stores an address and can be reassigned to point elsewhere; a reference is permanently bound to one variable at creation — that distinction trips up almost everyone learning C++.
Direct memory access is what makes C++ powerful for systems-level and performance-critical work, and also where most beginner bugs (and security issues) come from.
Pointer declaration — cppreference ↗ cppreference ↗ Standard C++ Foundation ↗ Checked Jul 2026SafeCompiling a program
g++ -o myprogram myprogram.cpp ./myprogram
Unlike Python (interpreted line by line) or Java (compiled to bytecode for the JVM), C++ compiles straight to a native executable for your specific OS and architecture.
You have to explicitly recompile after every code change — there's no "just re-run it" the way there is with an interpreted language.
GCC/G++ documentation ↗ cppreference ↗ Standard C++ Foundation ↗ Checked Jul 2026Program will not compile or crashes
- Fix the first compiler error first; later ones are often side effects.
- Check pointers and array bounds.
- Compile with warnings on (
-Wall).
CSS — Fundamentals
SafeSelectors & specificity
#header { color: blue; } /* ID selector — highest specificity */
.card { padding: 10px; } /* class selector */
p { font-size: 14px; } /* element selector — lowest specificity */Inline styles beat all of these, and !important overrides everything — use both sparingly, since they make later overrides harder.
Specificity conflicts are the single most common source of "why isn't my CSS applying" confusion — knowing the hierarchy (inline > ID > class > element) resolves most of them.
CSS selectors — MDN Web Docs ↗ MDN CSS guide ↗ web.dev Learn CSS ↗ Checked Jul 2026SafeThe box model
.box {
width: 200px;
padding: 10px;
border: 1px solid #333;
margin: 20px;
box-sizing: border-box;
}box-sizing: border-box makes width include padding and border — without it, padding/border add on top of the width you set, which surprises almost everyone at first.
Every visible element on a page is a box made of content, padding, border, and margin — understanding this stack explains most layout confusion.
The box model — MDN Web Docs ↗ MDN CSS guide ↗ web.dev Learn CSS ↗ Checked Jul 2026SafeFlexbox basics
.container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}justify-content controls the main axis (horizontal by default), align-items controls the cross axis — mixing those two up is the most common flexbox confusion.
Flexbox is the standard modern approach for arranging items in a row or column without falling back to floats or manual positioning.
Flexbox basics — MDN Web Docs ↗ MDN CSS guide ↗ web.dev Learn CSS ↗ Checked Jul 2026SafeCommon properties
body {
font-family: Arial, sans-serif;
color: #222;
background-color: #f5f5f5;
}Always list a generic fallback font family (sans-serif, serif, monospace) last, in case the specific font isn't available on the user's device.
Font, color, and background are the three properties you'll touch on almost every element — worth knowing cold before moving to layout work.
CSS reference — MDN Web Docs ↗ MDN CSS guide ↗ web.dev Learn CSS ↗ Checked Jul 2026Style is not applying
- Inspect the element in developer tools.
- Check selector specificity and order.
- Look for a typo in the property or a missing semicolon.
HTML — Fundamentals
SafeBasic document structure
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a paragraph.</p>
</body>
</html><!DOCTYPE html> tells the browser to render in standards mode — always include it, even in a quick test page.
Every HTML document follows this same skeleton — head for metadata the page needs, body for what actually renders on screen.
HTML — MDN Web Docs ↗ MDN HTML guide ↗ HTML Living Standard ↗ Checked Jul 2026SafeCommon tags & semantic elements
<header>...</header> <nav>...</nav> <main>...</main> <section>...</section> <article>...</article> <footer>...</footer>
Semantic tags describe the meaning of content, not just its appearance — a <div> works visually too, but tells a screen reader or search engine nothing.
Using the right semantic element instead of a generic <div> everywhere is one of the cheapest accessibility and SEO wins available.
HTML semantics — MDN Web Docs ↗ MDN HTML guide ↗ HTML Living Standard ↗ Checked Jul 2026SafeForms & input types
<form action="/submit" method="post"> <label for="email">Email:</label> <input type="email" id="email" name="email" required> <button type="submit">Send</button> </form>
Always pair a <label> with its input via the for/id attributes — screen readers depend on that link to announce what the field is for.
Using the correct input type (email, tel, number, date) gets you free browser-side validation and the right on-screen keyboard on mobile.
HTML forms guide — MDN Web Docs ↗ MDN HTML guide ↗ HTML Living Standard ↗ Checked Jul 2026SafeLinks, images & tables
<a href="https://example.com">Visit site</a> <img src="logo.png" alt="Company logo"> <table> <tr><th>Name</th><th>Status</th></tr> <tr><td>Server01</td><td>Online</td></tr> </table>
The alt attribute on <img> isn't optional — it's what screen readers announce, and what shows if the image fails to load.
These three elements cover the majority of static content pages — navigation, visuals, and tabular data.
img element — MDN Web Docs ↗ MDN HTML guide ↗ HTML Living Standard ↗ Checked Jul 2026Page looks broken
- Validate the HTML for unclosed tags.
- Open browser developer tools (F12) and inspect the element.
- Check the console for errors.
IBM Db2 (AIX / Unix)
SafeIBM Db2Connect and look around (Db2 command line)
db2 connect to DBNAME db2 "values current timestamp" db2 list applications db2 list tablespaces show detail db2 "select tabname from syscat.tables where tabschema = 'MYSCHEMA'" db2 describe table MYSCHEMA.MYTABLE db2 terminate
Quick checks from the Db2 command line processor: connection, running applications, space, and table definitions.
db2pd command — IBM ↗ Db2 documentation — IBM ↗ GET SNAPSHOT — IBM ↗ Checked Jul 2026SafeIBM Db2Find locks and who holds them
db2pd -db DBNAME -locks db2pd -db DBNAME -applications db2 get snapshot for locks on DBNAME
Shows lock holders and waiters. db2pd reads memory directly and is low impact.
db2pd command — IBM ↗ GET SNAPSHOT command — IBM ↗ Db2 documentation — IBM ↗ Checked Jul 2026SafeIBM Db2Look up an SQLCODE and capture an explain plan
db2 "? SQL0204N" # message text for SQL0204N db2 set current explain mode explain db2 -tvf query.sql # compile only, not run db2 set current explain mode no db2exfmt -d DBNAME -1 -o plan.txt
Explain tables must exist first (see the EXPLAIN.DDL file in sqllib/misc).
db2 "? SQLnnnnN" shows the explanation and fix for an error. db2exfmt formats the access plan from the explain tables.
ProcessIBM Db2Common Db2 SQLCODEs
- -104: syntax error — check the token the message points to.
- -204: object not found — wrong name, schema, or missing table.
- -206: column not found in the table.
- -407: NULL inserted into a NOT NULL column.
- -551: not authorized — missing privilege.
- -803: duplicate key on unique index.
- -805: package not found — bind issue.
- -911 / -913: deadlock or lock timeout; the unit of work was rolled back — retry.
- +100: no rows found.
The most frequent codes seen when debugging Db2 batch jobs and queries.
Monitoring and troubleshooting with db2pd — IBM ↗ Db2 documentation — IBM ↗ db2pd command — IBM ↗ Checked Jul 2026SafeIBM Db2Deadlocks and lock timeouts (Db2)
db2 get db cfg for DBNAME | grep -i -E "LOCKTIMEOUT|DLCHKTIME|LOCKLIST|MAXLOCKS"
db2pd -db DBNAME -locks wait
db2 "select * from sysibmadm.mon_lock_waits"
db2 list applications show detail
# Look for SQL0911N (reason code 2 = deadlock, 68 = timeout) in the db2diag.logDLCHKTIME is how often Db2 checks for deadlocks and LOCKTIMEOUT is how long a lock wait may last. The waiting and holding applications are shown by the lock-wait views.
db2pd command — IBM ↗ Monitoring with db2pd — IBM ↗ Db2 documentation — IBM ↗ Checked Jul 2026Big changeIBM Db2Force off a blocking application (Db2)
db2 list applications # note the application handle db2 "force application (123)" # replace 123 with the handle
Interrupts a running batch job — notify the owner first.
Disconnects the application and rolls back its work. Use only after confirming what it is doing.
db2pd command — IBM ↗ Db2 documentation — IBM ↗ GET SNAPSHOT command — IBM ↗ Checked Jul 2026SafeIBM Db2Version, instances, and configuration
db2level db2ilist db2 get instance db2 get dbm cfg | more db2 get db cfg for DBNAME | more db2 list db directory
Shows the Db2 version, instances on the server, and configuration parameters.
Db2 documentation — IBM ↗ db2pd command — IBM ↗ Monitoring and troubleshooting Db2 — IBM ↗ Checked Jul 2026SafeIBM Db2Read the Db2 diagnostic log
db2diag -H 1d # entries from the last day
db2diag -l Error,Severe -H 4h # errors only, last 4 hours
db2diag -g 'db=DBNAME'
# default location: ~/sqllib/db2dump/db2diag.logFirst place to look for crashes, lock escalation, log full, and storage problems.
Monitoring and troubleshooting Db2 — IBM ↗ Db2 documentation — IBM ↗ db2pd command — IBM ↗ Checked Jul 2026SafeIBM Db2Tablespaces and space
db2 list tablespaces show detail db2 list tablespace containers for <tbsp-id> show detail db2 "select tbsp_name, tbsp_utilization_percent from sysibmadm.tbsp_utilization" df -g
Full tablespaces cause failed loads and inserts (SQL0289N, SQL0968C). Check both Db2 and the filesystem under it.
Db2 documentation — IBM ↗ Monitoring and troubleshooting Db2 — IBM ↗ db2pd command — IBM ↗ Checked Jul 2026Minor changeIBM Db2Backup history and taking a backup
db2 list history backup all for DBNAME
db2 backup database DBNAME to /backup compress
# online backup requires archive logging:
db2 backup database DBNAME online to /backup compressRestore is a Big change — never run it without approval.
Always confirm the last good backup before any risky change. Backups use I/O, so follow the approved window.
Db2 documentation — IBM ↗ Monitoring and troubleshooting Db2 — IBM ↗ db2pd command — IBM ↗ Checked Jul 2026Minor changeIBM Db2RUNSTATS and REORG
db2 reorgchk update statistics on table all db2 runstats on table MYSCHEMA.MYTABLE with distribution and detailed indexes all db2 reorg table MYSCHEMA.MYTABLE db2 runstats on table MYSCHEMA.MYTABLE with distribution and detailed indexes all
REORG locks the table — run in a quiet window.
Fresh statistics help the optimizer choose good plans; REORG reclaims space and fixes fragmentation. Run REORG, then RUNSTATS again.
Db2 documentation — IBM ↗ Monitoring and troubleshooting Db2 — IBM ↗ db2pd command — IBM ↗ Checked Jul 2026SafeIBM Db2Export data and extract table DDL
db2 "export to /tmp/out.csv of del select * from MYSCHEMA.MYTABLE where load_date = current date" db2look -d DBNAME -e -t MYSCHEMA.MYTABLE -o /tmp/mytable.ddl db2 describe table MYSCHEMA.MYTABLE db2 describe indexes for table MYSCHEMA.MYTABLE show detail
Exports can contain PHI — store and send them only through approved, secured paths.
Pulls a sample of data or the structure of a table for troubleshooting without changing anything.
Db2 documentation — IBM ↗ Monitoring and troubleshooting Db2 — IBM ↗ db2pd command — IBM ↗ Checked Jul 2026Big changeIBM Db2Start and stop an instance
db2 list applications # who is connected? db2stop # stop the instance db2start
Only with approval and a maintenance window. db2stop force disconnects everyone.
db2stop fails if applications are connected unless forced. Needed after some configuration changes.
ProcessIBM Db2Load failed or rejected rows — what to check
- Read the job log and the Db2 message (SQLCODE) for the first error.
- Check the reject/exception file for the rows and the reason.
- Common causes: duplicate key (-803), value too long (-302/-433), invalid date, NOT NULL violated (-407), tablespace full (-289), lock timeout (-911/-913).
- Confirm the source file is complete and not truncated.
- Compare source row count to table row count after correction.
- Rerun only the failed portion and document what was fixed.
A repeatable way to work through a failed data load.
Db2 documentation — IBM ↗ Monitoring and troubleshooting Db2 — IBM ↗ db2pd command — IBM ↗ Checked Jul 2026Batch job fails with an SQLCODE
- Find the SQLCODE in the job log.
- Look it up with
db2 "? SQLxxxxN". - For -911/-913 check locks with
db2pd -locks. - For -204/-551 confirm object name and privileges.
Java — Fundamentals
SafeVariables & data types
int count = 5; double price = 19.99; String name = "Server01"; boolean isActive = true; System.out.println(name + " has " + count + " users");
Java is statically typed — you declare the type up front, unlike Python or JavaScript where the type is inferred from the value.
Declaring types explicitly catches a class of bugs at compile time that dynamically-typed languages only catch at runtime.
Java tutorial: variables — Oracle ↗ Dev.java learn ↗ Java SE documentation — Oracle ↗ Checked Jul 2026SafeClasses & objects
public class Device {
String hostname;
boolean online;
Device(String hostname, boolean online) {
this.hostname = hostname;
this.online = online;
}
}
Device d = new Device("Server01", true);Every Java program needs at least one class, and the .java filename must match the public class name exactly.
Java is fully object-oriented — everything lives inside a class, which is a bigger structural commitment than scripting languages require up front.
Java tutorial: classes — Oracle ↗ Dev.java learn ↗ Java SE documentation — Oracle ↗ Checked Jul 2026SafeControl flow
for (int i = 0; i < 5; i++) {
System.out.println(i);
}
if (count > 0) {
System.out.println("Active");
} else {
System.out.println("Idle");
}Java's for loop uses the classic init/condition/increment form — closer to C++ than to Python's for-in style.
This C-style for loop pattern shows up in Java, C++, and C# almost identically — learning it once transfers directly across all three.
Java tutorial: control flow — Oracle ↗ Dev.java learn ↗ Java SE documentation — Oracle ↗ Checked Jul 2026SafeMethods
public int addNumbers(int a, int b) {
return a + b;
}A method's return type must be declared and must match what it actually returns — use void if it doesn't return anything.
Java's term for what Python calls a "function" — the same concept, but always attached to a class rather than standing alone.
Java tutorial: methods — Oracle ↗ Dev.java learn ↗ Java SE documentation — Oracle ↗ Checked Jul 2026Compile or runtime error
- Read the first error line and file/line number.
- Check for missing semicolons, braces, or imports.
- Read the stack trace from the top for the cause.
PowerShell — Basics & Setup
SafeVersion, discovery, help
$PSVersionTable.PSVersion Get-Command *Mailbox* Get-Help Get-Process -Examples
PSVersionTable and Get-Command/Get-Help are the fastest way to confirm what's installed before troubleshooting module or syntax differences.
Get-Command — Microsoft Learn ↗ about_Execution_Policies — Microsoft Learn ↗ Install-Module — Microsoft Learn ↗ Checked Jul 2026SafeModules — list / load
Get-Module -ListAvailable Import-Module ActiveDirectory
Get-Module/Import-Module surface which modules (AD, Exchange, Graph) are available or need loading before a cmdlet will work.
Import-Module — Microsoft Learn ↗ about_Execution_Policies — Microsoft Learn ↗ Install-Module — Microsoft Learn ↗ Checked Jul 2026Minor changeInstall / update modules
Install-Module ExchangeOnlineManagement -Scope CurrentUser Update-Module ExchangeOnlineManagement
Needs internet/admin depending on policy.
Installs or refreshes a PowerShell module from the gallery. Scope CurrentUser avoids needing local admin.
Install-Module — Microsoft Learn ↗ about_Execution_Policies — Microsoft Learn ↗ PowerShell 7 vs Windows PowerShell — Microsoft Learn ↗ Checked Jul 2026SafeSession transcript for ticket evidence
$log="$env:USERPROFILE\Desktop\PS-Log-$(Get-Date -f yyyyMMdd-HHmm).txt"
Start-Transcript $log
# ...work...
Stop-TranscriptCaptures every command and its output to a text file — the standard way to attach proof of work to a ticket.
Start-Transcript — Microsoft Learn ↗ about_Execution_Policies — Microsoft Learn ↗ Install-Module — Microsoft Learn ↗ Checked Jul 2026SafeOutput shaping for tickets
Get-Service | Out-GridView Get-Process | Export-Csv "$env:USERPROFILE\Desktop\processes.csv" -NoTypeInformation Get-ComputerInfo | select CsName,OsName,OsVersion
Out-GridView gives an interactive filterable table; Export-Csv is the standard way to hand off results as ticket evidence.
Export-Csv — Microsoft Learn ↗ about_Execution_Policies — Microsoft Learn ↗ Install-Module — Microsoft Learn ↗ Checked Jul 2026Script blocked by execution policy
- Check the current policy:
Get-ExecutionPolicy -List. - If it's blocking a trusted script, scope a fix to the current user:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned. - For a one-off run instead of a policy change:
powershell -ExecutionPolicy Bypass -File script.ps1. - Re-run and confirm the "cannot be loaded" error is gone.
Module cmdlets not found after install
- Confirm it actually installed:
Get-Module -ListAvailable ModuleName. - Import it explicitly:
Import-Module ModuleName. - Check PowerShell 7 vs Windows PowerShell 5.1 — some modules are edition-specific.
- Re-run
Get-Command *Keyword*to confirm the cmdlets are visible.
Python — APIs & Error Handling
SafeMaking an HTTP request
import requests
response = requests.get("https://api.example.com/status")
print(response.status_code)
print(response.json())requests isn't in the standard library — install it first with pip install requests.
The go-to library for calling REST APIs from Python — the same kind of calls this guide makes with Invoke-RestMethod in PowerShell.
Requests documentation ↗ Errors and exceptions — Python docs ↗ Requests documentation ↗ Checked Jul 2026Safetry / except error handling
try:
value = int(user_input)
except ValueError:
print("That wasn't a valid number.")
finally:
print("Done processing input.")Catch the specific exception type (ValueError, FileNotFoundError, etc.) rather than a bare except — a bare except can silently hide real bugs.
Error handling is what turns a fragile one-off script into something safe to run unattended or on a schedule.
Python tutorial: handling exceptions ↗ Errors and exceptions — Python docs ↗ Requests documentation ↗ Checked Jul 2026SafeReading environment variables / secrets safely
import os
api_key = os.environ.get("API_KEY")
if not api_key:
raise RuntimeError("API_KEY environment variable is not set")Never hardcode API keys or passwords directly in a script — environment variables keep secrets out of source code and version control.
This is the same principle behind $cwAuthHeaders-style variables elsewhere in this guide — keep credentials out of the script body itself.
os.environ — Python Docs ↗ Errors and exceptions — Python docs ↗ Requests documentation ↗ Checked Jul 2026API call fails
- Print the status code and response text.
- Check the URL, headers, and auth token.
- Wrap the call in try/except and log the error.
Python — File I/O & Automation
Minor changeReading & writing text files
with open("servers.txt", "r") as f:
lines = f.readlines()
with open("output.txt", "w") as f:
f.write("Job completed successfully\n")The "with" statement automatically closes the file even if an error occurs — always prefer it over manual open()/close() pairs.
File reads/writes are the backbone of most simple automation scripts — pulling a list of hosts to process, or logging a job's results.
Reading and writing files — Python Docs ↗ subprocess — Python docs ↗ csv — Python docs ↗ Checked Jul 2026SafeWorking with CSV files
import csv
with open("devices.csv", newline="") as f:
reader = csv.DictReader(f)
for row in reader:
print(row["Hostname"], row["IPAddress"])DictReader uses the first row as column headers automatically — no manual index tracking needed.
CSV is the most common hand-off format between spreadsheets, exported reports, and scripts — this pattern covers the vast majority of "process this list of devices/users" tasks.
csv — Python Docs ↗ Reading and writing files — Python docs ↗ subprocess — Python docs ↗ Checked Jul 2026Minor changeRunning a shell command from Python
import subprocess result = subprocess.run(["ipconfig", "/all"], capture_output=True, text=True) print(result.stdout)
Pass the command as a list of arguments (not one big string) — it avoids shell-injection issues if any part of the command comes from user input.
Lets a Python script drive existing command-line tools (ipconfig, ping, PowerShell itself) instead of reimplementing that logic natively.
subprocess — Python Docs ↗ Reading and writing files — Python docs ↗ csv — Python docs ↗ Checked Jul 2026SafeWalking a directory tree
import os
for root, dirs, files in os.walk("C:\\Logs"):
for name in files:
if name.endswith(".log"):
print(os.path.join(root, name))os.walk visits every subfolder automatically — no manual recursion needed.
The standard way to find every file matching a pattern (logs, configs, old backups) across an entire folder structure.
os.walk — Python Docs ↗ Reading and writing files — Python docs ↗ subprocess — Python docs ↗ Checked Jul 2026Script cannot read or write a file
- Check the path and current working directory.
- Check permissions.
- Use
with open(...)so the file closes.
Python — Functions & Data Structures
SafeFunctions & variable scope
x = "awesome"
def myfunc():
global x
x = "fantastic" # without 'global', this would create a separate local x instead
myfunc()
print("Python is " + x) # prints "Python is fantastic"A variable created inside a function is local to that function by default — the global keyword is what lets a function modify a variable defined outside it.
This scoping rule trips up a lot of people coming from scripting languages with looser scope rules — forgetting global is a common source of "why isn't my variable updating" bugs.
Python tutorial: defining functions ↗ Data structures — Python docs ↗ Real Python ↗ Checked Jul 2026SafeData types & type casting
animals = ["Cat","Dog","Bird"] print(type(animals)) # <class 'list'> x = int(1) # forces integer: 1 y = int(2.8) # forces integer: 2 (truncated, not rounded)
Common types: str (text), int/float/complex (numbers), list/tuple/range (sequences), dict (key-value pairs), set, bool, and None.
type() is the fastest way to debug a script that's throwing a type-related error — confirming what a variable actually holds instead of assuming.
Python built-in types — Python Docs ↗ Python tutorial — functions ↗ Data structures — Python docs ↗ Checked Jul 2026SafeDictionaries (key-value pairs)
user = {"name": "Jesse", "role": "Technical Support", "active": True}
print(user["name"])
user["role"] = "SOC Analyst" # update a value
for key, value in user.items():
print(key, "=", value)Use user.get("role") instead of user["role"] when a key might not exist — .get() returns None instead of raising a KeyError.
Dictionaries are the Python equivalent of a PowerShell hashtable — the standard structure for anything you'd otherwise track as name/value pairs.
Python tutorial: dictionaries ↗ Python tutorial — functions ↗ Data structures — Python docs ↗ Checked Jul 2026SafeUseful built-ins: len() & random
a = "Hello, World!" print(len(a)) # character length of a string import random print(random.randrange(1, 10)) # random integer, 1-9
len() works on strings, lists, and most other sequence types — not just strings.
The random module is handy for scripts that need test data, sampling, or randomized delays (e.g. staggering a bulk operation to avoid rate limits).
random — Python Docs ↗ Python tutorial — functions ↗ Data structures — Python docs ↗ Checked Jul 2026Function returns the wrong thing
- Print the inputs and outputs.
- Check for variables changed inside the function.
- Check the return value type.
Python — Fundamentals
SafeVariables & basic math
x = 1
y = 5
z = x + y
print("z =", z)No declaration keyword needed — assigning a value with = creates the variable on the spot.
Python infers the type from the value you assign, unlike PowerShell where you'll sometimes see explicit typing — this is the most basic building block everything else sits on top of.
Python tutorial: variables & expressions ↗ Python tutorial ↗ PEP 8 style guide ↗ Checked Jul 2026SafeStrings & multiple assignment
name = 'John' # single or double quotes both work x, y, z = "Orange", "Banana", "Cherry" # assign 3 variables in one line print(name, x, y, z)
Multiple assignment in one line is a common Python shorthand — PowerShell doesn't have a direct equivalent.
Useful for scripts that pull several related values at once (e.g. splitting a CSV row) without writing a separate assignment line for each.
Python tutorial: strings ↗ Python tutorial ↗ PEP 8 style guide ↗ Checked Jul 2026SafeLists & unpacking
animals = ["Cat","Dog","Bird","Deer","Fox","Bear"]
print("List:", animals)
fruits = ["apple", "banana", "cherry"]
a, b, c = fruits # unpacking — a='apple', b='banana', c='cherry'Lists are the Python equivalent of a PowerShell array — square brackets, comma-separated, and indexed from 0.
Unpacking a list straight into named variables is a common pattern for making script output readable instead of referencing animals[0], animals[1], etc.
Python tutorial: data structures ↗ Python tutorial ↗ PEP 8 style guide ↗ Checked Jul 2026SafeConditionals (if statements)
if 5 > 2:
print("Five is greater than two!")Indentation is not optional in Python — it's how the language knows what belongs inside the if block, unlike PowerShell's curly braces.
Mixing tabs and spaces for indentation is one of the most common beginner errors and will throw an IndentationError — pick one and stay consistent.
Python tutorial: if statements ↗ Python tutorial ↗ PEP 8 style guide ↗ Checked Jul 2026SafeLoops — for & while
for i in range(5):
print(i) # prints 0,1,2,3,4 — not 5
fruits = ["apple", "banana", "cherry"]
for fruit in fruits:
print(fruit)
count = 0
while count < 3:
print(count)
count += 1range(5) generates 0 through 4, not 0 through 5 — a very common off-by-one trip-up.
Python's for loop iterates directly over items in a collection — no manual index or counter needed, unlike the classic C-style for loop in Java or C++.
Python tutorial: for statements ↗ Python tutorial ↗ PEP 8 style guide ↗ Checked Jul 2026A script will not run
- Read the traceback from the bottom up.
- Check indentation and typos on the named line.
- Print variables to see their values.
Learning a new concept
- Try it in the Python prompt.
- Change one thing at a time.
- Read the matching docs page.
Shell Scripting (ksh / bash)
SafeLinux / Unix / AIXDebug a shell script
bash -n script.sh # syntax check only bash -x script.sh # trace every command set -x # turn tracing on inside a script set -e # stop on first error set -u # error on unset variables trap 'echo failed at line $LINENO' ERR shellcheck script.sh # lint (if installed)
Tracing and strict modes show where a script goes wrong. ksh on AIX supports set -x and trap too.
SafeLinux / Unix / AIXExit codes, logging, and common patterns
command; echo "exit code: $?"
./job.sh >> /var/log/job.log 2>&1 # append stdout+stderr to a log
tail -f /var/log/job.log # follow the log
grep -i error /var/log/job.log | tail -20
awk '{print $1,$NF}' file # first and last column
sed -n '10,20p' file # print lines 10-20Exit code 0 means success. Scripts run by cron/schedulers should always redirect output to a log.
GNU Bash manual ↗ ShellCheck ↗ crontab(5) — man7 ↗ Checked Jul 2026ProcessLinux / Unix / AIXScript works by hand but fails under cron or a scheduler
- Use full paths for every command and file; cron has a minimal PATH.
- Set needed variables inside the script (or source the profile).
- Redirect output to a log so errors are visible.
- Check file permissions and that the script is executable.
- Confirm the scheduler's user has access to everything the script touches.
- Test with
env -i /path/script.shto mimic a clean environment.
Most "works for me" failures are environment differences.
cron — Linux man page ↗ GNU Bash manual ↗ ShellCheck ↗ Checked Jul 2026Script fails only in production
- Run with
bash -xand log the output. - Compare PATH and user between manual and scheduled runs.
- Fix paths and permissions, then rerun.
SQL — Date & Data Checks
SafeDate range filters (avoid the BETWEEN trap)
-- Good: half-open range, works for date, datetime and datetime2, and can use an index SELECT * FROM orders WHERE order_date >= '2026-11-01' AND order_date < '2026-12-01'; -- Yesterday only (SQL Server) WHERE order_date >= CAST(DATEADD(day,-1,GETDATE()) AS date) AND order_date < CAST(GETDATE() AS date); -- Avoid: BETWEEN '2026-11-01' AND '2026-11-30' drops rows after midnight on the 30th -- Avoid: WHERE YEAR(order_date) = 2026 (function on the column = no index use)
Use >= start and < next-day-start so time-of-day values are never lost. Wrapping the column in a function forces a scan.
DATEADD — Microsoft Learn ↗ Date and time functions — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Checked Jul 2026SafeCurrent date and date math (SQL Server vs Db2)
-- SQL Server
SELECT GETDATE(), SYSDATETIME(), CAST(GETDATE() AS date);
SELECT DATEADD(day,-7,GETDATE());
SELECT DATEDIFF(day,'2026-11-01',GETDATE());
SELECT EOMONTH(GETDATE());
-- IBM Db2
VALUES CURRENT DATE;
VALUES CURRENT TIMESTAMP;
VALUES CURRENT DATE - 7 DAYS;
VALUES DAYS(CURRENT DATE) - DAYS(DATE('2026-11-01'));The two engines use different functions for the same ideas. Db2 uses special registers and labeled durations such as - 7 DAYS.
SafeCheck data freshness (latest record and gaps)
-- When was the newest row written? SELECT MAX(created_at) AS newest FROM tbl; -- Rows per day for the last 14 days (missing days = gaps) SELECT CAST(created_at AS date) AS day, COUNT(*) AS rows_in_day FROM tbl WHERE created_at >= DATEADD(day,-14,CAST(GETDATE() AS date)) GROUP BY CAST(created_at AS date) ORDER BY day;
The first check to run when a report or feed looks stale: has data actually arrived, and when did it stop?
GROUP BY — Microsoft Learn ↗ Date and time functions — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Checked Jul 2026SafeFind bad or suspicious dates
-- Future dates, defaults and NULLs
SELECT * FROM tbl WHERE created_at > GETDATE();
SELECT * FROM tbl WHERE created_at IN ('1900-01-01','1753-01-01','9999-12-31');
SELECT * FROM tbl WHERE created_at IS NULL;
-- End before start
SELECT * FROM tbl WHERE end_date < start_date;Placeholder dates (1900-01-01, 9999-12-31) and reversed ranges are common causes of wrong totals and failed batch jobs.
Date and time functions — Microsoft Learn ↗ CAST and CONVERT — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Checked Jul 2026SafeDate format and conversion errors
-- SQL Server
SELECT ISDATE('2026-13-45'); -- 0 = not a valid date
SELECT TRY_CONVERT(date,'11/19/2026',101); -- NULL instead of an error
SELECT CONVERT(varchar(10), GETDATE(), 23); -- yyyy-mm-dd (safest format)
SET DATEFORMAT mdy;
-- IBM Db2
VALUES TO_DATE('2026-11-19','YYYY-MM-DD');
VALUES VARCHAR_FORMAT(CURRENT TIMESTAMP,'YYYY-MM-DD HH24:MI:SS');Use ISO yyyy-mm-dd wherever possible. "Conversion failed when converting date" usually means a text value in a different order (dd/mm vs mm/dd).
CAST and CONVERT — Microsoft Learn ↗ TRY_CONVERT — Microsoft Learn ↗ Db2 documentation — IBM ↗ Checked Jul 2026SafeSQL ServerTime zones and UTC
SELECT SYSUTCDATETIME(); -- UTC now
SELECT SYSDATETIMEOFFSET(); -- local time with offset
SELECT created_at AT TIME ZONE 'UTC'
AT TIME ZONE 'Eastern Standard Time' FROM tbl;Many systems store UTC. Convert to local time before comparing against a report window, or the cutoff will be off by hours.
AT TIME ZONE — Microsoft Learn ↗ Date and time functions — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Checked Jul 2026SafeSQL ServerLast backup and job run dates (SQL Server)
-- Last backup per database SELECT database_name, type, MAX(backup_finish_date) AS last_backup FROM msdb.dbo.backupset GROUP BY database_name, type ORDER BY database_name; -- D=full, I=diff, L=log -- Failed SQL Agent job steps in the last 3 days SELECT j.name, h.step_name, h.run_date, h.run_time, h.message FROM msdb.dbo.sysjobhistory h JOIN msdb.dbo.sysjobs j ON j.job_id = h.job_id WHERE h.run_status = 0 AND h.run_date >= CONVERT(int, CONVERT(char(8), DATEADD(day,-3,GETDATE()), 112)) ORDER BY h.run_date DESC, h.run_time DESC;
Confirms backups are current and shows which scheduled jobs failed and why. run_status: 0 failed, 1 succeeded, 2 retry, 3 canceled.
backupset — Microsoft Learn ↗ sysjobhistory — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Checked Jul 2026SafeRow counts, space, and orphan rows
EXEC sp_spaceused 'dbo.TableName'; -- rows and size SELECT COUNT(*) FROM dbo.TableName; -- Child rows with no parent SELECT c.* FROM child c LEFT JOIN parent p ON p.id = c.parent_id WHERE p.id IS NULL;
Quick sanity checks before and after a load or fix. Orphan rows point to a failed delete or a load run in the wrong order.
sp_spaceused — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Db2 documentation — IBM ↗ Checked Jul 2026Report or feed looks stale
- Run
MAX(created_at)to see when data last arrived. - Check rows per day to find where it stopped.
- Check the last backup and the job history for failures.
- Check time zone and date range filters before blaming the data.
Date filter returns the wrong rows
- Replace BETWEEN with
>= start AND < next day. - Remove functions from the filtered column.
- Check for placeholder, NULL, and future dates.
- Confirm UTC vs local time.
SQL — Debugging Queries
ProcessDebug a query that errors or returns wrong data
- Read the full error: note the number, line, and object name.
- Run the query in pieces: start with the inner SELECT or one table, then add joins one at a time.
- Replace the column list with
COUNT(*)after each join to spot row multiplication. - Check join keys: duplicates on the "one" side multiply rows; NULL keys never match.
- Check data types and implicit conversions (text vs number vs date).
- Check WHERE vs ON with LEFT JOIN: a WHERE filter on the right table turns it into an inner join.
- Compare a few rows by hand against the source system.
- Fix, rerun, and keep the query that proved the fix.
Building a query up one step at a time finds the exact step where the results go wrong.
SELECT — Microsoft Learn ↗ Joins — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ SQL Server documentation — Microsoft Learn ↗ Checked Jul 2026SafeFind duplicates and row multiplication
-- duplicate keys SELECT col, COUNT(*) AS n FROM tbl GROUP BY col HAVING COUNT(*) > 1; -- row counts before and after a join SELECT COUNT(*) FROM a; SELECT COUNT(*) FROM a JOIN b ON a.id = b.a_id; -- rows in A with no match in B SELECT a.* FROM a LEFT JOIN b ON a.id = b.a_id WHERE b.a_id IS NULL;
Duplicates on the joined side are the most common reason a query returns too many rows.
GROUP BY — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ SQL Server documentation — Microsoft Learn ↗ Checked Jul 2026SafeNULL and data type gotchas
-- NULL is never equal to anything, use IS NULL WHERE col IS NULL -- replace NULLs SELECT COALESCE(col, 'n/a') FROM tbl; -- check conversions before they fail SELECT TRY_CAST(col AS INT) FROM tbl WHERE TRY_CAST(col AS INT) IS NULL AND col IS NOT NULL; -- trailing spaces / case SELECT col FROM tbl WHERE LTRIM(RTRIM(col)) <> col;
= NULL returns nothing. TRY_CAST (SQL Server) finds values that would break a conversion. Db2 uses COALESCE and CAST the same way.
Minor changeTest a data change safely
-- 1. Preview exactly what will change SELECT * FROM tbl WHERE <same WHERE as the update>; -- 2. Run inside a transaction BEGIN TRAN; UPDATE tbl SET col = 'x' WHERE <condition>; SELECT @@ROWCOUNT; -- does it match the preview? -- 3. Looks right? COMMIT; otherwise: ROLLBACK;
Open transactions hold locks — finish with COMMIT or ROLLBACK quickly.
Previewing with a SELECT, then checking the row count inside a transaction, prevents most bad UPDATE/DELETE mistakes. In Db2 use db2 +c (autocommit off), then db2 commit or db2 rollback.
SafeSQL ServerCapture error details with TRY...CATCH
BEGIN TRY
-- statement to test
SELECT 1/0;
END TRY
BEGIN CATCH
SELECT ERROR_NUMBER() AS num, ERROR_SEVERITY() AS sev,
ERROR_LINE() AS line, ERROR_PROCEDURE() AS proc,
ERROR_MESSAGE() AS msg;
END CATCH;Returns the number, line, and message of the failing statement so it can be logged or reported.
TRY...CATCH — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ SQL Server documentation — Microsoft Learn ↗ Checked Jul 2026ProcessRetry-safe error codes to recognize
- SQL Server 1205: chosen as deadlock victim — retry the transaction.
- SQL Server 1222: lock request timeout — find the blocker.
- SQL Server 2627 / 2601: duplicate key.
- SQL Server 515: NULL inserted into a NOT NULL column.
- SQL Server 8115 / 245 / 8114: arithmetic overflow or conversion failure — check types and dates.
- Db2 SQL0911N / SQL0913N: deadlock or timeout — retry.
- Db2 SQL0803N: duplicate key.
Know which errors are safe to retry (deadlock, timeout) and which need a data or code fix.
Database engine errors — Microsoft Learn ↗ Deadlocks guide — Microsoft Learn ↗ Db2 documentation — IBM ↗ Checked Jul 2026Query returns the wrong rows
- Run each table by itself and note counts.
- Add joins one at a time and watch the count.
- Look for duplicate keys, NULLs, and type mismatches.
- Fix the join/filter and compare to a known good result.
A data update touched too many rows
- Stop and ROLLBACK if still open.
- If committed, restore from backup or the audit trail.
- Next time preview with SELECT and check @@ROWCOUNT first.
SQL — Performance & Blocking
SafeSQL ServerSee running queries and who is blocking whom (SQL Server)
SELECT r.session_id, r.status, r.blocking_session_id, r.wait_type,
r.wait_time, r.cpu_time, r.total_elapsed_time, t.text AS sql_text
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) t
WHERE r.session_id <> @@SPID
ORDER BY r.total_elapsed_time DESC;
EXEC sp_who2;A non-zero blocking_session_id shows the session holding the lock. The head of the chain (blocking others but not blocked) is the one to investigate.
Big changeSQL ServerKill a blocking session
KILL 57 -- replace 57 with the session_id at the head of the blocking chain
Confirm what the session is doing and with the owner first. A rollback can lock things longer.
Ends a session and rolls back its open transaction, which can take a while for large changes.
KILL — Microsoft Learn ↗ Monitor and tune performance — Microsoft Learn ↗ Execution plans — Microsoft Learn ↗ Checked Jul 2026SafeSQL ServerRead execution time and I/O for a query
SET STATISTICS IO ON; SET STATISTICS TIME ON; -- run the query here SELECT ...; -- In SSMS: Ctrl+M shows the actual execution plan
High logical reads or a scan on a large table in the plan usually means a missing index or non-sargable filter (functions on the column).
SET STATISTICS IO — Microsoft Learn ↗ Execution plans — Microsoft Learn ↗ Monitor and tune performance — Microsoft Learn ↗ Deadlocks guide — Microsoft Learn ↗ Checked Jul 2026Minor changeSQL ServerRefresh statistics and check indexes
UPDATE STATISTICS dbo.TableName; -- fragmentation SELECT OBJECT_NAME(object_id) AS tbl, index_id, avg_fragmentation_in_percent FROM sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, 'LIMITED') WHERE avg_fragmentation_in_percent > 30;
Stale statistics cause bad plans. Updating them is low risk but uses I/O, so avoid peak hours on busy tables.
UPDATE STATISTICS — Microsoft Learn ↗ Monitor and tune performance — Microsoft Learn ↗ Execution plans — Microsoft Learn ↗ Checked Jul 2026SafeSQL ServerCheck for recent deadlocks
SELECT CAST(target_data AS XML) AS deadlock_xml FROM sys.dm_xe_session_targets st JOIN sys.dm_xe_sessions s ON s.address = st.event_session_address WHERE s.name = 'system_health' AND st.target_name = 'ring_buffer';
The built-in system_health session records deadlock graphs showing both queries involved.
Deadlocks guide — Microsoft Learn ↗ Monitor and tune performance — Microsoft Learn ↗ Execution plans — Microsoft Learn ↗ Checked Jul 2026ProcessSlow query checklist
- Get the actual query text and parameters.
- Check what changed: data volume, new code, stats, or schema.
- Look at the plan: scans vs seeks, big row estimates that are wrong.
- Check blocking and waits at the time of the slowdown.
- Avoid functions on filtered columns and
SELECT *. - Test an index or rewrite in a non-production copy first.
- Document before/after times.
A repeatable order for tackling slowness without guessing.
Query performance — Microsoft Learn ↗ Monitor and tune performance — Microsoft Learn ↗ Execution plans — Microsoft Learn ↗ Checked Jul 2026ProcessDeadlocks: read the graph and prevent repeats
- Capture the deadlock graph (system_health session above, or Extended Events).
- Identify the two victims and the resources each held and wanted.
- Look at the order each query touches tables; make every query touch them in the same order.
- Keep transactions short: no user input or long work inside BEGIN TRAN.
- Add or fix an index so queries lock fewer rows.
- Consider RCSI (read committed snapshot) so readers do not block writers.
- Make the application retry once on error 1205 (chosen as deadlock victim).
- Retest under load and watch for repeats.
A deadlock is two sessions each holding a lock the other needs. The engine kills one (error 1205). Fixing the lock order and transaction length removes most of them.
Deadlocks guide — Microsoft Learn ↗ Deadlock graph — Microsoft Learn ↗ Isolation levels — Microsoft Learn ↗ Checked Jul 2026SafeSQL ServerOpen transactions and log use
DBCC OPENTRAN; -- oldest active transaction in this database DBCC SQLPERF(LOGSPACE); -- log size and % used for every database SELECT s.session_id, s.login_name, s.host_name, t.transaction_begin_time FROM sys.dm_tran_active_transactions t JOIN sys.dm_tran_session_transactions st ON st.transaction_id = t.transaction_id JOIN sys.dm_exec_sessions s ON s.session_id = st.session_id ORDER BY t.transaction_begin_time;
A transaction left open for hours holds locks and stops the log from clearing. Find the owner before anything is killed.
DBCC OPENTRAN — Microsoft Learn ↗ Deadlocks guide — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Checked Jul 2026Minor changeSQL ServerCheck database integrity
DBCC CHECKDB ('DatabaseName') WITH NO_INFOMSGS;Do not use repair options without a backup and a decision from the DBA.
Scans the database for corruption. It is I/O heavy, so run it off-hours or on a restored copy for large databases.
DBCC CHECKDB — Microsoft Learn ↗ Transact-SQL reference — Microsoft Learn ↗ Deadlocks guide — Microsoft Learn ↗ Checked Jul 2026Report or job is suddenly slow
- Check whether it is blocked or just slow.
- Capture the plan and I/O stats.
- Update statistics, then retest.
- If still slow, review indexes and recent changes.
09 AI & AutomationClaude, Gemini, OpenAI/Azure, Copilot, Thread, Pia, MCP, RAG, SDKs and API calls, ITSM automation recipes, governance, and change management
AI Assistants — Safe Use & Prompting
ProcessWrite a prompt that gets a useful answer
- State the role and goal: "You are helping an IT support tech troubleshoot...".
- Give context: product, version, exact error text, what you already tried.
- Say the format you want: numbered steps, a table, or a command with an explanation.
- Set limits: "read-only commands first", "no registry edits".
- Ask it to list assumptions and what could go wrong.
- Paste only what is needed — remove names, IDs, passwords, and PHI.
- Check the answer against the vendor docs before acting on it.
Specific prompts with context and constraints give far better results than short questions.
Prompt engineering overview — Anthropic ↗ NIST AI Risk Management Framework ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026SafePrompt templates for IT work
# Log or error analysis Here is an error from <product/version> (names and IDs removed): <paste>. List the three most likely causes in order, how to confirm each with a read-only check, then the fix. # Script review Review this PowerShell script for bugs and safety. Point out anything that changes data, lacks error handling, or exposes secrets. Do not rewrite it yet. # Ticket summary Summarize this ticket thread in 5 bullets: problem, steps tried, current status, next step, who owns it. # Knowledge base article Turn these resolution notes into a short KB article: symptoms, cause, steps, how to verify, rollback. # Explain a command Explain what this command does line by line and say if it changes anything: <command>
Reusable prompts for the work you do most. Edit the placeholders and strip sensitive data first.
Prompt engineering overview — Anthropic ↗ NIST AI Risk Management Framework ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026ProcessCheck AI answers before you run anything
- Read every command and ask: does it read, or change something?
- Look up unfamiliar commands or flags in the official documentation.
- Run it first in a lab or on a test device, or add
-WhatIf/ a dry-run option. - Back up or snapshot before changes.
- Watch for invented commands, parameters, or links — AI can make them up.
- Get approval through change management for anything that touches production.
- Record what you ran and the result in the ticket.
AI is a fast first draft, not an authority. You are responsible for what you run.
OWASP Top 10 for LLM applications ↗ NIST AI Risk Management Framework ↗ Change management — Atlassian ↗ Checked Jul 2026ProcessWhat never to paste into an AI tool
- Passwords, API keys, tokens, private keys, or recovery codes.
- PHI or customer personal data (names, member IDs, claims, diagnoses).
- Internal IP plans, firewall rules, or full config exports without approval.
- Contract or confidential business details.
- Anything your policy or a customer agreement forbids sharing.
- Use only company-approved AI tools, and only tools with a signed business associate agreement for any PHI.
The safest data is the data that is never shared. Replace real values with placeholders such as <server> and <user>.
HIPAA Security Rule — HHS ↗ Business associate agreements — HHS ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026Using AI to troubleshoot an error
- Remove names, IDs, and secrets from the error text.
- Use the troubleshooting prompt template.
- Verify each suggested command in the docs.
- Test safely, then document what worked.
Drafting a KB article from a ticket
- Remove customer details.
- Use the KB article template prompt.
- Check steps against what you actually did.
- Publish through your review process.
AI Automation Recipes (ITSM Standard Processes)
ProcessAuto-triage tickets with AI (industry-standard pattern)
- Trigger: a new ticket arrives from email, portal, or chat.
- Redact names, IDs, and secrets before sending text to a model.
- Ask the model for JSON: category, priority, affected service, confidence, and a short summary.
- Validate the JSON; if confidence is below your threshold or the ticket mentions security or PHI, send it to a person.
- Write the category and priority back to the PSA and add the summary as an internal note.
- Optionally draft a reply for a technician to approve.
- Measure accuracy weekly against technician corrections and adjust.
The most common AI use in service desks. Keep a person in the loop for low confidence and sensitive cases.
ITIL incident management — Atlassian ↗ Claude API overview — Anthropic ↗ Gemini structured output — Google ↗ Checked Jul 2026SafePython: classify a ticket and return JSON
import json, anthropic
client = anthropic.Anthropic()
SYSTEM = ("You triage IT tickets. Return ONLY JSON: "
'{"category":"Password|Email|Network|Hardware|Software|Security|Other",'
'"priority":"P1|P2|P3|P4","confidence":0.0-1.0,"summary":"..."}')
def triage(ticket_text):
msg = client.messages.create(model="claude-haiku-5-5", max_tokens=300, system=SYSTEM,
messages=[{"role":"user","content":ticket_text}])
data = json.loads(msg.content[0].text)
if data["confidence"] < 0.8 or data["category"] == "Security":
data["route"] = "human"
return dataUse a small, fast model for classification and confirm model names on the models page.
A small, testable triage function. The same approach works with any provider. Redact the text first and keep a human route for low confidence and security tickets.
Claude API overview — Anthropic ↗ anthropic-sdk-python — GitHub ↗ JSON Schema ↗ Checked Jul 2026ProcessEnrich and summarize security alerts
- Trigger: a new alert from the SIEM or EDR.
- Collect context automatically: user, device, recent sign-ins, related alerts, and threat-intel lookups.
- Send the redacted facts to an AI model to produce a short summary: what happened, how serious, and suggested next steps.
- Show it to the analyst; do not let it close or contain anything on its own.
- Allow one-click, approved actions (isolate device, reset session) through a playbook.
- Log the summary, the analyst decision, and the outcome.
Saves time on the first look. The analyst decides.
Sentinel playbooks — Microsoft Learn ↗ Automated investigation — Microsoft Learn ↗ Microsoft Security Copilot — Microsoft Learn ↗ Checked Jul 2026ProcessSummarize logs and errors
- Pull the relevant slice (time window and host), not the whole log.
- Remove secrets, usernames, and PHI.
- Ask for: likely cause, evidence lines, and read-only checks to confirm.
- Verify the evidence lines actually exist in the log.
- Record the confirmed cause in the ticket.
Fast for long logs. Always check the cited lines yourself.
Prompt engineering — Anthropic ↗ OWASP Top 10 for LLM applications ↗ Event log queries — Microsoft Learn ↗ Checked Jul 2026ProcessGenerate knowledge base articles from resolved tickets
- Select tickets resolved by a technician with clear notes.
- Remove customer details and PHI.
- Ask the model for: symptoms, cause, steps, how to verify, and rollback.
- A technician reviews and corrects the draft.
- Publish through the normal KB review and tag it for search.
- Retire or update older duplicates.
Turns solved problems into reusable answers with little extra effort.
ITIL incident management — Atlassian ↗ Prompt engineering — Anthropic ↗ Gemini API docs — Google ↗ Checked Jul 2026ProcessUser onboarding automation
- Trigger: approved new-hire request from HR or a manager.
- Create the account in AD/Entra with naming standards and a temporary password or temporary access pass.
- Assign licenses, groups, and distribution lists by role.
- Create mailbox, Teams, and phone assignments; order hardware.
- Send welcome and setup instructions to the manager.
- Log every step in the ticket and require approval for privileged access.
- Verify the account and close the ticket.
A standard ITSM automation. Use Graph PowerShell, Power Automate, or your PSA automation platform.
Microsoft Graph PowerShell — Microsoft Learn ↗ Power Automate — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessUser offboarding automation
- Trigger: approved offboarding request with the effective date and time.
- Disable sign-in and revoke sessions and refresh tokens.
- Reset or remove MFA methods and app passwords as policy requires.
- Convert the mailbox to shared or set a hold and forwarding per policy; keep data for retention.
- Remove licenses after the retention steps; remove from groups and shared resources.
- Recover hardware and wipe or reassign devices.
- Log and have the manager confirm; keep approval for deletes.
Offboarding is high-risk, so keep human approval and a detailed audit trail.
Microsoft Graph PowerShell — Microsoft Learn ↗ Power Automate — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessSelf-service password reset with safe verification
- Prefer built-in self-service password reset (SSPR) with MFA registration.
- If a bot or agent handles requests, verify identity first (MFA prompt, manager approval, or call-back to a number on file).
- Never reset based on chat text alone.
- Issue a temporary password or temporary access pass and force change at next sign-in.
- Log who requested, who verified, and when.
- Alert on unusual numbers of reset requests.
A frequent target for social engineering — automate the process, not the trust.
Self-service password reset — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026ProcessPatch management automation
- Define rings: pilot, early adopters, broad, and critical servers.
- Set maintenance windows and deadlines per ring.
- Use Intune update rings, Windows Update for Business, WSUS, or your RMM to deploy.
- Monitor compliance and failures; auto-open tickets for failed devices.
- Hold or roll back a ring if issues appear.
- Report compliance weekly.
Staged rollout with monitoring is the industry norm.
Windows Update for Business — Microsoft Learn ↗ Change management — Atlassian ↗ Intune update rings — Microsoft Learn ↗ Checked Jul 2026SafeFind certificates expiring soon (PowerShell)
$days = 30
Get-ChildItem Cert:\LocalMachine\My |
Where-Object { $_.NotAfter -lt (Get-Date).AddDays($days) } |
Select-Object Subject, Thumbprint, NotAfter |
Sort-Object NotAfter
# Send to a monitoring job and open a ticket when any result is returnedCertificate expiry is a classic outage cause and an easy thing to automate. Run it on a schedule from every server that holds certificates.
Cert provider — Microsoft Learn ↗ Get-ChildItem — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026SafeFind unused licenses to reclaim (Graph PowerShell)
Connect-MgGraph -Scopes User.Read.All,AuditLog.Read.All
Get-MgUser -All -Property DisplayName,UserPrincipalName,SignInActivity,AssignedLicenses |
Where-Object { $_.AssignedLicenses.Count -gt 0 -and
($_.SignInActivity.LastSignInDateTime -lt (Get-Date).AddDays(-90) -or -not $_.SignInActivity.LastSignInDateTime) } |
Select-Object DisplayName,UserPrincipalName,@{n='LastSignIn';e={$_.SignInActivity.LastSignInDateTime}}Check for shared mailboxes, service accounts, and leave of absence before reclaiming.
Lists licensed users with no sign-in for 90 days. Review with managers before removing anything.
Microsoft Graph PowerShell — Microsoft Learn ↗ Get-MgUser — Microsoft Learn ↗ ITIL incident management — Atlassian ↗ Checked Jul 2026ProcessDisk-space alert with safe auto-remediation
- Trigger: monitoring alert for low disk space.
- Run read-only checks first: largest folders, temp files, and logs.
- Auto-clean only items on an approved list (temp, old logs) and log the freed space.
- Never delete user or application data automatically.
- Open a ticket if space is still low after cleanup.
- Report trends so capacity can be added before it becomes an alert.
A safe, standard remediation pattern: check, clean approved items only, escalate the rest.
ITIL incident management — Atlassian ↗ Change management — Atlassian ↗ Storage troubleshooting — Microsoft Learn ↗ Checked Jul 2026ProcessSLA breach alerting and escalation flow
- Trigger: a ticket nears or passes its SLA target.
- Notify the assigned technician, then the team lead if no action in a set time.
- Add an internal note and raise priority per policy.
- Page the on-call person for P1 outages.
- Send the customer a status update.
- Review breaches weekly to fix root causes.
Keeps tickets from stalling silently. Works in PSA automation, Power Automate, or Thread/Pia flows.
ITIL incident management — Atlassian ↗ Power Automate — Microsoft Learn ↗ Thread overview — Thread docs ↗ Checked Jul 2026ProcessWeekly operations report automation
- Export tickets, SLA, backup, and patch data on a schedule (API or scheduled query).
- Calculate the numbers in code or a spreadsheet — not with the AI.
- Optionally ask the AI to write the narrative from those verified numbers.
- Review before sending; compare the narrative against the data.
- Email or post the report to the agreed channel.
Let code do the math and AI do the wording.
Power Automate — Microsoft Learn ↗ Claude API overview — Anthropic ↗ Gemini API docs — Google ↗ Checked Jul 2026ProcessBackup verification automation
- Trigger: scheduled daily after backup windows.
- Query the backup tool or logs for each job's last result and age.
- Flag failures, missing jobs, and unusual size changes.
- Open a ticket for each failure with the job name and error.
- Run a scheduled test restore on a sample and record the result.
- Report coverage and failures.
Confirms backups really ran and can be restored.
ITIL incident management — Atlassian ↗ Back up and restore SQL Server — Microsoft Learn ↗ Change management — Atlassian ↗ Checked Jul 2026ProcessData flow — AI ticket triage with human fallback
- Remove sensitive data before sending text to a model.
- Ask for JSON with category, priority, and confidence.
- Validate every field; send low-confidence, security, and PHI tickets to a person.
- Write the result back to the PSA as a suggestion or an internal note.
- Compare against technician corrections weekly to measure accuracy.
The standard shape of an AI ticket workflow with safety checks.
ITIL incident management — Atlassian ↗ Claude API overview — Anthropic ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026Auto-triage new tickets
- Redact the ticket text.
- Ask for JSON triage with confidence.
- Validate and apply above-threshold results.
- Route the rest to a person and measure accuracy.
Automate onboarding safely
- Start from the approved request.
- Create account, licenses, and groups.
- Require approval for privileged access.
- Log each step and verify before closing.
AI Evaluation, Cost & Monitoring
ProcessTest an AI workflow before trusting it
- Collect 30-100 real, redacted examples with the correct answer decided by a person.
- Run the workflow on them and score the results (exact match for categories, human review for text).
- Look at the errors, not just the average — which cases fail and why?
- Improve the prompt, examples, or model and re-run the same set.
- Set a threshold: only automate cases above it; send the rest to a person.
- Re-test whenever you change the prompt, model, or data.
A small test set turns "seems good" into a measurable result.
Develop tests — Anthropic ↗ NIST AI Risk Management Framework ↗ Prompt engineering — Anthropic ↗ Checked Jul 2026ProcessControl AI cost and usage
- Choose the smallest model that passes your test set.
- Send only the needed text; trim logs and attachments.
- Use prompt caching for long, repeated instructions where available.
- Use batch processing for non-urgent bulk work.
- Set a maximum output length and a step limit for agents.
- Set budgets, alerts, and per-key limits in the provider console.
- Review usage by workflow monthly.
Costs grow with tokens and volume, so measure and cap them.
Claude API overview — Anthropic ↗ Gemini API docs — Google ↗ OpenAI platform docs ↗ Checked Jul 2026ProcessMonitor AI workflows in production
- Log request time, model, token counts, latency, status, and a request ID — not the sensitive content itself.
- Track error rate, retries, and rate-limit hits.
- Track business measures: accuracy, human override rate, and time saved.
- Alert on spikes in errors, cost, or unusual outputs.
- Pin the model version where possible and test before changing it.
- Review a sample of outputs regularly.
You monitor an AI workflow like any other production service, plus output quality.
NIST AI Risk Management Framework ↗ OWASP Top 10 for LLM applications ↗ Develop tests — Anthropic ↗ Checked Jul 2026ProcessWhen the AI answer is wrong
- Capture the input, output, model, and time (redacted).
- Check whether the prompt, data, or retrieval caused it.
- Add the case to your test set.
- Fix the instructions or data and re-run the test set.
- Add a rule or approval step if the mistake would be costly.
- Tell users how to report bad answers.
Every wrong answer is a free test case.
Develop tests — Anthropic ↗ NIST AI Risk Management Framework ↗ Prompt engineering — Anthropic ↗ Checked Jul 2026A new prompt or model is proposed
- Run the existing test set on it.
- Compare accuracy and cost.
- Roll out to a small group first.
- Monitor errors and overrides.
AI Governance & Security
ProcessVet an AI tool before using it at work
- Where does the data go, and is it stored, logged, or used to train models?
- Can you turn off training on your data and set retention?
- Is there a signed business associate agreement (BAA) if PHI might be involved?
- Security evidence: SOC 2 / ISO 27001, encryption, access controls, audit logs.
- Single sign-on, role-based access, and admin controls?
- Which systems does it connect to and with what permissions?
- Who approves it, and is it listed in the approved tools register?
A short checklist that avoids most data-exposure surprises.
NIST AI Risk Management Framework ↗ Business associate agreements — HHS ↗ HIPAA Security Rule — HHS ↗ Checked Jul 2026ProcessPrompt injection and AI-specific risks
- Prompt injection: text in a ticket, email, or web page can contain hidden instructions that steer an AI agent.
- Data leakage: an AI with broad access can reveal documents a user should not see.
- Over-permissioned agents: an AI that can act (reset passwords, change tickets) can do damage if tricked.
- Hallucination: confident but wrong answers or commands.
- Controls: least privilege, human approval for changes, input filtering, audit logging, and testing with adversarial examples.
Treat any content an AI reads as untrusted input, and limit what it can do without a person approving.
OWASP Top 10 for LLM applications ↗ NIST AI Risk Management Framework ↗ OWASP LLM prompt injection ↗ Checked Jul 2026ProcessApproval and audit controls for AI actions
- Require one-tap or ticket approval for any action that changes data or access.
- Give each AI connector or agent the minimum permissions, ideally per user, not a shared admin account.
- Turn on audit logs and review them on a schedule.
- Keep a kill switch: a way to disable the agent or connector quickly.
- Test in a sandbox or on a test client first.
- Review incidents and tune the rules.
Guardrails that keep an agent helpful and safe.
NIST AI Risk Management Framework ↗ OWASP Top 10 for LLM applications ↗ Change management — Atlassian ↗ Checked Jul 2026ProcessAI acceptable-use checklist for a team
- Approved tools list and who can use them.
- Data rules: what can and cannot be entered.
- Review rules: a person checks AI output before use.
- Logging and monitoring expectations.
- How to report a mistake or exposure.
- Training for new staff.
A one-page policy outline you can adapt.
NIST AI Risk Management Framework ↗ HIPAA Security Rule — HHS ↗ Business associate agreements — HHS ↗ Checked Jul 2026ProcessNIST AI RMF in four steps
- Govern: assign owners, policies, and accountability for AI use.
- Map: list each AI use, its purpose, data, users, and risks.
- Measure: test accuracy, bias, security, and reliability with real metrics.
- Manage: apply controls, monitor, respond to incidents, and improve.
- Keep this as a simple register: system, owner, data, risk level, controls, and review date.
A lightweight way to organize AI risk without a large program.
NIST AI Risk Management Framework ↗ ISO/IEC 42001 AI management systems ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026ProcessAI and regulated data (HIPAA and similar)
- Only use AI services that are approved for regulated data and covered by a signed business associate agreement.
- Keep PHI out of consumer chat tools and personal accounts.
- Use de-identified or synthetic data for development and testing.
- Check data residency, retention, and whether prompts are used for training.
- Log access and keep audit evidence.
- Involve compliance before moving any AI workflow to production.
The rules for PHI do not change because a tool uses AI.
HIPAA Security Rule — HHS ↗ Business associate agreements — HHS ↗ ISO/IEC 42001 AI management systems ↗ Checked Jul 2026ProcessHuman-in-the-loop decision guide
- Fully automatic is acceptable for: low-impact, reversible tasks (tagging, summaries, routing suggestions).
- Needs approval: anything that changes access, data, money, or customer communication.
- Never automatic: deleting data, privileged access changes, and actions affecting PHI without review.
- Define the confidence threshold and who reviews below it.
- Review automatic decisions on a sample basis.
A simple way to decide how much autonomy an AI workflow gets.
NIST AI Risk Management Framework ↗ OWASP Top 10 for LLM applications ↗ Change management — Atlassian ↗ Checked Jul 2026A tech wants to use a new AI tool
- Run the vetting checklist.
- Get written approval and BAA if PHI is possible.
- Configure retention and access.
- Add it to the approved tools list.
AI Languages, SDKs & API Calls
ProcessAI languages and SDKs at a glance
- Python: the main language for AI work. Official SDKs for Anthropic, Google (google-genai), OpenAI, and Azure; also LangChain, LlamaIndex, and notebooks.
- TypeScript / JavaScript (Node): SDKs for Anthropic, Google, and OpenAI; best for web apps, Teams/Slack bots, and serverless functions.
- PowerShell: no SDK needed — call the REST APIs with Invoke-RestMethod from admin scripts, runbooks, and Intune/Graph automation.
- C# / .NET: Azure OpenAI client libraries and Semantic Kernel for enterprise and Windows apps.
- Java and Go: official or community SDKs for services and tooling.
- Bash + curl: quickest way to test any API and glue small jobs together.
- SQL: used with vector extensions (such as pgvector) and to feed data to and from AI jobs.
- JSON / JSON Schema: how you get predictable, machine-readable output from a model.
- YAML: configuration for workflows, pipelines, Ansible, and agents.
- Rule: pick the language your team already supports; every provider works over HTTPS + JSON.
You do not need a new language to automate with AI — any language that can send an HTTPS request works.
Claude API overview — Anthropic ↗ Gemini API docs — Google ↗ OpenAI platform docs ↗ Checked Jul 2026SafeCall Claude (Anthropic) — Python, TypeScript, REST
# Python (pip install anthropic; key in ANTHROPIC_API_KEY) import anthropic client = anthropic.Anthropic() msg = client.messages.create( model="claude-sonnet-5-5", # check the models page for current names max_tokens=1024, system="You are an IT support assistant. Give read-only checks first.", messages=[{"role": "user", "content": "Explain Event ID 4625 in two sentences."}], ) print(msg.content[0].text) # TypeScript (npm i @anthropic-ai/sdk) import Anthropic from "@anthropic-ai/sdk"; const client = new Anthropic(); const msg = await client.messages.create({ model: "claude-sonnet-5-5", max_tokens: 1024, messages: [{ role: "user", content: "Explain Event ID 4625 in two sentences." }], }); console.log(msg.content[0].text); # REST (curl) curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{"model":"claude-sonnet-5-5","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'
Never put the API key in code or tickets. Use an environment variable or a secrets vault.
The Messages API takes a model, a token limit, an optional system prompt, and a list of messages. Model names change, so confirm the current one on the models page.
Claude API overview — Anthropic ↗ anthropic-sdk-python — GitHub ↗ anthropic-sdk-typescript — GitHub ↗ Checked Jul 2026SafeCall Gemini (Google) — Python and REST
# Python (pip install google-genai; key in GEMINI_API_KEY) from google import genai client = genai.Client() resp = client.models.generate_content( model="<gemini-model>", # e.g. a current Flash or Pro model — check the docs contents="Explain Event ID 4625 in two sentences.", ) print(resp.text) # REST (curl) curl "https://generativelanguage.googleapis.com/v1beta/models/<gemini-model>:generateContent" \ -H "x-goog-api-key: $GEMINI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"contents":[{"parts":[{"text":"Hello"}]}]}'
Replace <gemini-model> with a model name from the current docs.
Gemini is available through Google AI Studio (quick start with an API key) and Vertex AI (enterprise: IAM, regions, and governance).
Gemini API quickstart — Google ↗ Gemini API docs — Google ↗ Vertex AI generative AI — Google Cloud ↗ Checked Jul 2026SafeCall OpenAI / Azure OpenAI — Python and REST
# Python (pip install openai; key in OPENAI_API_KEY) from openai import OpenAI client = OpenAI() resp = client.responses.create(model="<model>", input="Explain Event ID 4625 in two sentences.") print(resp.output_text) # REST (curl) curl https://api.openai.com/v1/responses \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"<model>","input":"Hello"}' # Azure OpenAI uses your own endpoint and a deployment name: # https://<resource>.openai.azure.com/ + api-key header or Microsoft Entra ID sign-in
Replace <model> with the current model name from the docs.
OpenAI and Azure OpenAI use similar request shapes. In Azure you create a deployment of a model and call that deployment from your resource endpoint.
OpenAI platform docs ↗ Azure OpenAI — Microsoft Learn ↗ Azure AI Foundry — Microsoft Learn ↗ Checked Jul 2026SafeCall an AI API from PowerShell
$key = $env:ANTHROPIC_API_KEY
$body = @{
model = 'claude-sonnet-5-5'
max_tokens = 800
messages = @(@{ role = 'user'; content = 'Summarize this error in 3 bullets: <text with names removed>' })
} | ConvertTo-Json -Depth 5
$r = Invoke-RestMethod -Method Post -Uri 'https://api.anthropic.com/v1/messages' `
-Headers @{ 'x-api-key' = $key; 'anthropic-version' = '2023-06-01' } `
-ContentType 'application/json' -Body $body
$r.content[0].text
# Gemini: header 'x-goog-api-key', body {contents=@(@{parts=@(@{text='...'})})}
# OpenAI: header Authorization = "Bearer $env:OPENAI_API_KEY", URL https://api.openai.com/v1/responsesLets admin scripts, runbooks, and scheduled tasks use AI without installing anything. Always strip names, IDs, and secrets before sending.
Invoke-RestMethod — Microsoft Learn ↗ Claude API overview — Anthropic ↗ Gemini API docs — Google ↗ Checked Jul 2026SafeGet structured (JSON) output you can automate with
# Ask for JSON only and validate it before using it
SYSTEM = "Return ONLY valid JSON matching: {\"category\": string, \"priority\": \"P1\"|\"P2\"|\"P3\"|\"P4\", \"confidence\": number, \"summary\": string}"
import json
data = json.loads(msg.content[0].text) # fails loudly if not JSON
assert data["priority"] in ("P1","P2","P3","P4")
assert 0 <= data["confidence"] <= 1Automation needs predictable fields, not paragraphs. Ask for JSON, validate every field, and send anything that fails validation to a person. Providers also offer built-in structured output / schema features.
JSON Schema ↗ Gemini structured output — Google ↗ Prompt engineering — Anthropic ↗ Checked Jul 2026SafeRetry with backoff on rate limits and overload
import time, random
def call_with_retry(fn, tries=5):
for i in range(tries):
try:
return fn()
except Exception as e:
status = getattr(e, "status_code", None)
if status in (429, 500, 502, 503, 529) and i < tries - 1:
time.sleep((2 ** i) + random.random()) # 1s, 2s, 4s ... plus jitter
continue
raise429 means rate limited; 5xx/529 mean the service is busy. Waiting and retrying with growing delays is the standard fix. Do not retry 400/401/403 — those need a code or key fix.
HTTP status codes — MDN ↗ Claude API overview — Anthropic ↗ OpenAI platform docs ↗ Checked Jul 2026SafeTool use / function calling pattern
tools = [{
"name": "get_ticket",
"description": "Look up a ticket by ID (read-only).",
"input_schema": {"type":"object","properties":{"ticket_id":{"type":"string"}},"required":["ticket_id"]}
}]
msg = client.messages.create(model="claude-sonnet-5-5", max_tokens=1024, tools=tools,
messages=[{"role":"user","content":"What is the status of ticket T-1042?"}])
if msg.stop_reason == "tool_use":
call = next(b for b in msg.content if b.type == "tool_use")
result = get_ticket(call.input["ticket_id"]) # YOUR code runs, not the model
# send the result back as a tool_result message and let the model finish its answerExpose read-only tools first. Add write actions only with human approval.
The model never runs anything itself: it asks your code to call a tool, you run it with your own permissions, and you return the result. Gemini and OpenAI use the same idea (function calling).
Tool use — Anthropic ↗ Gemini function calling — Google ↗ OpenAI platform docs ↗ Checked Jul 2026Test a new AI API quickly
- Get an API key and store it in an environment variable.
- Send a one-line request with curl.
- Move the same request into Python, TypeScript, or PowerShell.
- Add JSON validation and retry handling.
Choosing a language for a new automation
- Use what your team already supports.
- Use PowerShell for Windows/M365 admin jobs.
- Use Python for data, scripts, and AI frameworks.
- Use TypeScript for bots and web services.
Anthropic Claude — API, Claude Code & MCP
ProcessClaude model family and how to choose
- Use the smallest model that does the job well: fast, low-cost models for classification, routing, and summaries; mid-tier for most drafting and analysis; the most capable models for hard reasoning, long or complex agent work, and difficult code.
- Check the models overview page for current names, context size, and features — they change.
- Start with a stronger model to prove the task works, then try a cheaper one and compare with a test set.
- Vision: Claude can read images and PDFs (screenshots, diagrams, forms).
- Long context: large documents and log bundles can be sent in one request, but cost and speed grow with size.
Model choice is a cost, speed, and quality trade-off you can test rather than guess.
Models overview — Anthropic ↗ Claude API overview — Anthropic ↗ Develop tests — Anthropic ↗ Checked Jul 2026ProcessClaude features used in automation
- Tool use: let the model request actions or lookups that your code runs.
- Structured output: JSON that follows a schema for reliable parsing.
- System prompts: fixed instructions and rules for every call.
- Prompt caching: reuse a long, unchanging prompt (runbooks, policies) to cut cost and time.
- Batch processing: send many non-urgent items (for example overnight ticket tagging) at lower cost.
- Citations and documents: ground answers in supplied files.
- Extended thinking: more reasoning time for hard problems.
- MCP: connect Claude to your tools through standard servers.
The features that matter most when you move from chatting to automating.
Claude API overview — Anthropic ↗ Tool use — Anthropic ↗ Model Context Protocol ↗ Checked Jul 2026ProcessClaude Code for admin and scripting work
- Claude Code is Anthropic's agentic coding tool that runs in your terminal and IDE: it reads your project, edits files, and runs commands with your permission.
- Install it and start it inside a project folder with
claude. - Add a CLAUDE.md file with your standards (naming, tests, safety rules) — Claude Code reads it every session.
- Review each proposed edit and command; approve only what you understand.
- Use it to write, explain, and test PowerShell, Python, and Bash scripts, and to refactor old ones.
- Connect tools with MCP (
claude mcp add ...) and keep write access narrow. - Test on non-production data and put the result through code review and change management.
Keep secrets out of the project folder and out of prompts.
Good for building and maintaining the scripts that support your environment. You stay responsible for what runs in production.
Claude Code overview — Anthropic ↗ Agent SDK — Anthropic ↗ Model Context Protocol ↗ Checked Jul 2026ProcessBuild an agent with the Claude Agent SDK
- Define the job and the boundaries: what it may read, what it may change, and when it must ask a person.
- Give it only the tools it needs (files, shell, web, or your MCP servers).
- Write clear instructions in the system prompt, including what to do when unsure.
- Run it on test data and log every tool call.
- Add approval for write actions and a kill switch.
- Measure success on a test set before expanding.
The same loop Claude Code uses is available as an SDK, so you can build your own agents for IT tasks.
Agent SDK — Anthropic ↗ Claude Code overview — Anthropic ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026ProcessCommon Claude automation uses in IT
- Ticket triage: classify type and priority, draft a first reply for a technician to approve.
- Log and alert summaries: turn long logs into a short cause-and-next-steps note.
- Runbook Q&A: answer from your own procedures, with citations to the source.
- Script help: explain, review, and test PowerShell, Python, and SQL.
- KB articles: turn resolution notes into a clean article.
- Meeting and ticket recaps for handoffs.
- Report drafting from exported data.
- Document extraction from PDFs and screenshots.
Ideas that fit well and can start read-only.
Claude API overview — Anthropic ↗ Prompt engineering — Anthropic ↗ Develop tests — Anthropic ↗ Checked Jul 2026ProcessClaude API errors and what they mean
- 400: bad request — fix the JSON, model name, or parameters.
- 401: bad or missing API key.
- 403: no permission for that model or feature.
- 404: wrong endpoint or model name.
- 413: request too large — shorten or split the input.
- 429: rate limit — back off and retry; request higher limits if needed.
- 500/529: service busy — retry with backoff.
- Always log the request ID from the response for support.
Quick lookup for the failures you will see most.
Claude API overview — Anthropic ↗ HTTP status codes — MDN ↗ Rate limits — Anthropic ↗ Checked Jul 2026Add Claude to a ticket workflow
- Store the API key in a vault.
- Send a redacted ticket and ask for JSON triage.
- Validate the JSON and use a confidence threshold.
- Route low-confidence items to a person.
- Log results and measure accuracy.
Use Claude Code on a script project
- Open the project folder and run
claude. - Add a CLAUDE.md with standards and safety rules.
- Review each edit and command.
- Test on non-production data and submit for change review.
Automation Platforms (Power Automate & Azure Automation)
ProcessTroubleshoot a failed Power Automate flow
- Open the flow > Run history and select the failed run.
- Find the first red step and read the error message and status code.
- 401/403: the connection or account has expired or lacks permission — re-authenticate the connection.
- 404/400: bad input, a deleted item, or a changed field name.
- 429: rate limited — add a delay or reduce the trigger frequency.
- Check that the flow owner still has a license and is enabled.
- Resubmit the run after the fix, and add a failure notification step.
Most flow failures come from expired connections, changed data, or limits.
Fix flow failures — Microsoft Learn ↗ Power Automate documentation — Microsoft Learn ↗ Data loss prevention — Microsoft Learn ↗ Checked Jul 2026SafeCheck Azure Automation runbook jobs
Connect-AzAccount
Get-AzAutomationRunbook -ResourceGroupName <rg> -AutomationAccountName <account>
Get-AzAutomationJob -ResourceGroupName <rg> -AutomationAccountName <account> |
Sort-Object StartTime -Descending | Select-Object -First 10 RunbookName,Status,StartTime,EndTime
Get-AzAutomationJobOutput -ResourceGroupName <rg> -AutomationAccountName <account> -Id <jobId> -Stream ErrorLists recent runbook jobs and shows error output for a failed one.
Get-AzAutomationJob — Microsoft Learn ↗ Azure Automation overview — Microsoft Learn ↗ Az.Automation module — Microsoft Learn ↗ Checked Jul 2026SafeTest a webhook trigger
curl -i -X POST "https://example.com/webhook/<token>" \
-H "Content-Type: application/json" \
-d '{"ticket":"TEST-001","action":"ping"}'
# PowerShell
Invoke-RestMethod -Method Post -Uri "https://example.com/webhook/<token>" -ContentType 'application/json' -Body '{"ticket":"TEST-001","action":"ping"}'The URL contains a secret token — treat it like a password.
Sends a test payload to confirm an automation endpoint receives and acts on it. Use a test value, never real customer data.
curl documentation ↗ Invoke-RestMethod — Microsoft Learn ↗ HTTP status codes — MDN ↗ Checked Jul 2026ProcessBuild a safe automation: design checklist
- Define the trigger, the exact action, and what a successful run looks like.
- Use a dedicated service account with only the permissions the task needs.
- Store secrets in a vault, not in the flow or script.
- Add a dry-run or test mode and run it on test data first.
- Make it safe to run twice (idempotent) so reruns do not duplicate work.
- Add error handling, logging, and an alert on failure.
- Add an approval step for anything that changes access or deletes data.
- Document owner, purpose, schedule, and rollback.
A repeatable way to build automations that are safe to support.
Azure Automation overview — Microsoft Learn ↗ Change management — Atlassian ↗ NIST SP 800-128 configuration management ↗ Checked Jul 2026ProcessData flow — Azure Automation with a Hybrid Runbook Worker
- A schedule or webhook starts the runbook in the Automation account.
- Cloud tasks run in Azure using a managed identity (no stored passwords).
- Tasks that must reach on-prem systems run on a Hybrid Runbook Worker installed on a server in your network.
- The worker needs outbound HTTPS to Azure only; no inbound ports.
- Keep job output and failures in a monitored log and alert on failed jobs.
Lets one automation platform manage both cloud and on-prem systems.
Hybrid Runbook Worker — Microsoft Learn ↗ Azure Automation overview — Microsoft Learn ↗ Managed identities — Microsoft Learn ↗ Checked Jul 2026An automation stopped working
- Open the run history and find the first failing step.
- Check connection, credentials, and permissions.
- Check for changed data or hitting rate limits.
- Fix, resubmit, and add an alert.
GitHub Copilot, Copilot Studio & Security Copilot
ProcessThe Copilot family — which one is which
- Microsoft 365 Copilot: AI in Word, Excel, PowerPoint, Outlook, Teams, and Microsoft 365 Chat, grounded in your work data.
- GitHub Copilot: code completion, chat, and agent features in IDEs and GitHub.
- Copilot Studio: build your own agents and connect them to data and actions (Power Platform connectors), published to Teams, web, and more.
- Microsoft Security Copilot: AI assistant for security operations, working with Defender, Sentinel, Intune, and Entra.
- Copilot in Azure / Intune / Entra / Windows: assistive features inside those admin tools.
- Each is licensed and governed separately.
Same brand, different products. Know which one a request is about before troubleshooting.
Microsoft 365 Copilot — Microsoft Learn ↗ GitHub Copilot docs ↗ Copilot Studio — Microsoft Learn ↗ Checked Jul 2026ProcessGitHub Copilot setup and team settings
- Assign seats to users or teams in the organization's Copilot settings.
- Set policies: allowed features, public-code matching, and which models are available.
- Add content exclusions for repositories or paths that must never be sent.
- Add repository custom instructions (for example
.github/copilot-instructions.md) to set coding standards. - Train users to review suggestions — treat them like code from a junior developer.
- Use code review and security scanning on all merged code.
Gives developers help while keeping control of data and quality.
GitHub Copilot docs ↗ GitHub Copilot custom instructions ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026ProcessBuild an agent in Copilot Studio
- Create the agent and describe its purpose and tone.
- Add knowledge sources (SharePoint, files, websites) so it answers from your content.
- Add topics or actions for tasks (for example create a ticket) using Power Platform connectors.
- Set authentication so it acts with the user's permissions.
- Apply data loss prevention policies to control which connectors can be used.
- Test in the built-in test pane and review transcripts.
- Publish to Teams or a website and monitor analytics.
Copilot Studio is the low-code route for internal helpdesk, HR, and IT agents.
Copilot Studio — Microsoft Learn ↗ Power Automate — Microsoft Learn ↗ Data loss prevention — Microsoft Learn ↗ Checked Jul 2026ProcessCopilot Studio agent gives wrong or no answers
- Check the knowledge source is published, shared with the right users, and indexed.
- Check the user has permission to the underlying content.
- Review the topic triggers and phrases.
- Check the connection or authentication for the action that failed.
- Read the conversation transcript and analytics.
- Tighten instructions and add examples, then retest.
Most problems are missing knowledge, permissions, or unclear instructions.
Copilot Studio — Microsoft Learn ↗ Power Automate — Microsoft Learn ↗ AI Builder — Microsoft Learn ↗ Checked Jul 2026ProcessSecurity Copilot: what it helps with
- Summarize an incident and its related alerts.
- Explain a suspicious script or command line.
- Draft a KQL query from plain English for Defender or Sentinel.
- Suggest next steps and containment actions for an analyst to approve.
- Pull in Intune and Entra context for a device or user.
- Uses capacity units and integrations (plugins) you configure; analysts review every action.
An assistant for SOC and endpoint security work, not an unattended responder.
Microsoft Security Copilot — Microsoft Learn ↗ Sentinel playbooks — Microsoft Learn ↗ Automated investigation — Microsoft Learn ↗ Checked Jul 2026ProcessAI Builder in Power Automate
- AI Builder adds prebuilt and custom AI steps to flows: document processing, text classification, entity extraction, sentiment, and prompts.
- Add the AI Builder action to a flow (for example extract invoice fields from a PDF).
- Check confidence scores and send low-confidence results to a person.
- Review licensing and credits before rolling out widely.
- Apply DLP policies and test with sample files.
No-code document and text AI inside flows.
AI Builder — Microsoft Learn ↗ Power Automate — Microsoft Learn ↗ Data loss prevention — Microsoft Learn ↗ Checked Jul 2026Roll out GitHub Copilot to developers
- Assign seats and set policies.
- Add content exclusions and custom instructions.
- Require code review.
- Collect feedback and adjust.
Build an IT helpdesk agent in Copilot Studio
- Add knowledge sources.
- Add a ticket-creation action.
- Set authentication and DLP.
- Test, publish to Teams, review transcripts.
Google Gemini — API, Vertex AI & Workspace
ProcessGemini options: AI Studio, Vertex AI, and Workspace
- Google AI Studio and the Gemini API: quick start with an API key; good for prototypes and small automations.
- Vertex AI: the enterprise path — Google Cloud IAM, regions, logging, and governance controls.
- Gemini in Google Workspace: assistant features inside Gmail, Docs, Sheets, Meet, and Drive for end users.
- Gemini CLI: an open-source command-line agent for working with files and code.
- Models are grouped by speed vs capability (for example Flash vs Pro tiers) — check the docs for current names and limits.
Pick the path by who is using it and how much governance you need.
Gemini API docs — Google ↗ Vertex AI generative AI — Google Cloud ↗ Gemini for Google Workspace ↗ Checked Jul 2026ProcessGemini features used in automation
- Multimodal input: text, images, audio, video, and PDFs.
- Function calling: the model asks your code to run a tool.
- Structured output: JSON that matches a schema.
- Grounding with Google Search for current information.
- Long context for large documents and logs.
- Context caching for repeated large inputs.
- Batch processing for large non-urgent jobs.
Features that matter when you move from chat to automation.
Gemini API docs — Google ↗ Gemini function calling — Google ↗ Gemini structured output — Google ↗ Checked Jul 2026ProcessAutomate Google Workspace with Gemini and Apps Script
- Open Apps Script from a Sheet or Doc (Extensions > Apps Script).
- Store the API key in Script Properties, not in the code.
- Use
UrlFetchApp.fetch()to call the Gemini API with the cell or document text. - Write the response back to a cell, doc, or email draft.
- Add a time-driven trigger for scheduled runs.
- Keep a person in the loop for anything sent to customers.
Useful for Google Workspace shops that want summaries, classifications, or drafts inside Sheets and Docs.
Apps Script — Google ↗ Gemini API docs — Google ↗ Gemini for Google Workspace ↗ Checked Jul 2026ProcessUse Gemini CLI for admin and code tasks
- Install Node.js, then install Gemini CLI (see the project page).
- Sign in or set GEMINI_API_KEY.
- Run it in a project folder and ask it to explain or write scripts.
- Review each proposed command and file change before approving.
- Use project instruction files to set standards and safety rules.
A terminal agent for Google-based workflows, similar in idea to other coding agents.
Gemini CLI — GitHub ↗ Gemini API docs — Google ↗ Vertex AI generative AI — Google Cloud ↗ Checked Jul 2026ProcessDeploy Gemini on Vertex AI securely
- Create a Google Cloud project and enable the Vertex AI API.
- Use a service account with least privilege (Vertex AI User) instead of API keys.
- Choose the region to meet data-location requirements.
- Turn on audit logging for model calls.
- Use VPC Service Controls and private access where required.
- Review data-use and retention terms, and sign the required agreements before sending regulated data.
For PHI, confirm a signed business associate agreement and approved services first.
Vertex AI adds the identity, network, and audit controls a production workload needs.
Vertex AI generative AI — Google Cloud ↗ Gemini API docs — Google ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026Add Gemini to a Google Sheet
- Open Apps Script from the Sheet.
- Store the key in Script Properties.
- Call the Gemini API with UrlFetchApp.
- Write the result to a cell and add a trigger.
Move a prototype to Vertex AI
- Create a project and service account.
- Choose the region and enable logging.
- Switch from API key to service-account auth.
- Review data terms and approve for production.
MCP & Connecting AI to Tools
ProcessWhat MCP is and how AI tools connect to systems
- MCP (Model Context Protocol) is an open standard that lets an AI app call tools and read data from other systems through small servers.
- A server exposes tools (actions) and resources (data); the AI client discovers and calls them.
- Examples: ticketing, documentation, calendar, files, and device-management tools.
- Access is only as safe as the permissions you give the server and the user behind it.
- Review what tools a server offers before enabling it.
The reason one AI assistant can work with many tools without custom code for each.
Model Context Protocol ↗ MCP introduction ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026ProcessConnect a tool safely
- Use only servers from trusted vendors or reviewed internal code.
- Give each user or agent their own scoped access token, not a shared admin one.
- Limit to read-only first; add write actions only where needed and with approval.
- Store tokens in a secure place and rotate them.
- Turn on logging of tool calls and review them.
- Remove access when a person leaves or the tool is no longer needed.
Least privilege and per-user access limit the damage if something goes wrong.
Model Context Protocol ↗ OWASP Top 10 for LLM applications ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026ProcessTroubleshoot an AI connector that stopped working
- Check the connector status and whether the token or sign-in expired.
- Check the account still has access to the underlying system.
- Check the vendor status page and any API rate limits.
- Test the underlying API or tool directly with a read-only call.
- Reconnect or reissue the token if needed.
- Check the audit log for errors and note the time.
Most connector failures are expired tokens, removed permissions, or rate limits.
MCP introduction ↗ Model Context Protocol ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026ProcessData flow — Model Context Protocol (MCP)
- The AI application (host) decides it needs a tool and asks its MCP client.
- The client sends a standard request to the MCP server for that tool.
- The server calls the real system (ticket tool, database, file store) with its own credentials and returns the result.
- The user approves sensitive calls; read-only tools can be pre-approved.
- Give each server the least access it needs and log its calls.
How AI tools connect to your systems through a standard interface.
Model Context Protocol ↗ Claude Code overview — Anthropic ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026Adding a new connector
- Review the vendor and the tools it exposes.
- Create a scoped read-only token.
- Enable it for a test user.
- Review logs, then widen carefully.
Microsoft 365 Copilot
ProcessPrepare a tenant for Microsoft 365 Copilot
- Confirm licensing (Copilot add-on plus an eligible Microsoft 365 plan).
- Review SharePoint, OneDrive, and Teams permissions — Copilot can surface anything a user can already open, so fix oversharing first.
- Apply sensitivity labels and retention to confidential data.
- Review conditional access, MFA, and device compliance.
- Decide who gets licenses first (pilot group) and assign them.
- Review data-protection and compliance settings and document them.
- Train the pilot group and gather feedback before expanding.
Copilot respects existing permissions, so cleaning up access is the most important preparation.
Microsoft 365 Copilot overview — Microsoft Learn ↗ Set up Microsoft 365 Copilot — Microsoft Learn ↗ Copilot privacy — Microsoft Learn ↗ Checked Jul 2026ProcessCopilot is missing or not working for a user
- Confirm the license is assigned and has had time to apply.
- Check the user is signed in with the work account and apps are on the current channel.
- Check admin settings and any policy that blocks it.
- Test in the web version (Microsoft 365 app) to rule out the desktop client.
- Check service health.
- Collect the exact message and time for support.
Most missing-Copilot cases are licensing, sign-in, or app version.
Set up Microsoft 365 Copilot — Microsoft Learn ↗ Microsoft 365 Copilot overview — Microsoft Learn ↗ Microsoft 365 troubleshooting — Microsoft Learn ↗ Checked Jul 2026SafeCheck Copilot license assignment (Microsoft Graph PowerShell)
Connect-MgGraph -Scopes User.Read.All,Organization.Read.All Get-MgSubscribedSku | Select SkuPartNumber,SkuId,ConsumedUnits Get-MgUserLicenseDetail -UserId user@domain.com | Select SkuPartNumber
Lists license SKUs and what a user has. Look for the Copilot SKU in the results.
Get-MgUserLicenseDetail — Microsoft Learn ↗ Get-MgSubscribedSku — Microsoft Learn ↗ Microsoft Graph PowerShell — Microsoft Learn ↗ Checked Jul 2026Rolling Copilot out to a pilot group
- Fix oversharing in SharePoint and Teams.
- Label sensitive data.
- Assign licenses to the pilot.
- Train and gather feedback.
OpenAI & Azure OpenAI / AI Foundry
ProcessOpenAI and Azure OpenAI: which to use
- OpenAI API: direct from OpenAI; fastest access to new features.
- Azure OpenAI / Azure AI Foundry: the same model families inside your Azure tenant, with Microsoft Entra ID sign-in, private networking, regional deployments, and Azure compliance and logging.
- Choose Azure when you need tenant control, private endpoints, or existing Microsoft agreements; choose direct for quick prototypes.
- Both support tool calling, structured output, embeddings, and vision.
Same ideas as other providers; the main difference is where the service runs and how access is controlled.
OpenAI platform docs ↗ Azure OpenAI — Microsoft Learn ↗ Azure AI Foundry — Microsoft Learn ↗ Checked Jul 2026ProcessDeploy a model in Azure OpenAI / AI Foundry
- Create an Azure AI Foundry (or Azure OpenAI) resource in an approved region.
- Deploy a model and give the deployment a name — your code calls the deployment name.
- Set the quota (tokens per minute) for the deployment.
- Use Microsoft Entra ID roles (for example Cognitive Services OpenAI User) instead of shared keys where possible.
- Configure content filters and diagnostic logging.
- Restrict network access with private endpoints if required.
- Test from a script and record endpoint, deployment, owner, and costs.
Most Azure OpenAI problems trace back to the deployment name, region, quota, or permissions.
Azure OpenAI — Microsoft Learn ↗ Azure AI Foundry — Microsoft Learn ↗ Azure OpenAI quotas — Microsoft Learn ↗ Checked Jul 2026ProcessAzure OpenAI call fails — what to check
- 401/403: wrong key, expired token, or missing role.
- 404: wrong endpoint, API version, or deployment name.
- 429: quota (tokens per minute) exceeded — retry or raise quota.
- Content filter error: the prompt or reply triggered a filter — review the input.
- Timeouts: check network path, private endpoint DNS, and request size.
- Check the resource's diagnostic logs for the request.
The common failure causes in order of frequency.
Azure OpenAI — Microsoft Learn ↗ HTTP status codes — MDN ↗ Azure AI Foundry — Microsoft Learn ↗ Checked Jul 2026ProcessEmbeddings and similarity search in plain English
- An embedding turns text into a list of numbers that captures meaning.
- Similar text has nearby numbers, so you can search by meaning, not just keywords.
- Store embeddings with the original text in a vector-capable store (Azure AI Search, pgvector, or a vector database).
- To search, embed the question and return the closest chunks.
- This is the foundation of retrieval-augmented generation (RAG).
The idea behind searching your own knowledge base with AI.
Azure AI Search — Microsoft Learn ↗ pgvector — GitHub ↗ OpenAI platform docs ↗ Checked Jul 2026Stand up Azure OpenAI for a team
- Create the resource and deploy a model.
- Assign Entra roles instead of sharing keys.
- Set quota and logging.
- Test from a script and document owner and cost.
Pia — MSP Service Desk Automation
ProcessWhat Pia does
- Pia is an AI-powered service delivery platform for MSPs that automates service desk work directly inside the PSA.
- Client self-service: SmartForms and Pia Chat.
- AI ticket triage: classify, prioritize, and route tickets.
- Pre-built automations: an Automations Catalog (60+ ready-to-run tasks) and PiaPacks (curated bundles of automations, AI insights, and vendor workflows).
- Custom development for workflows that are not in the catalog.
- Examples named by Pia: password resets, staff onboarding, staff offboarding.
A quick summary of the platform based on Pia's public pages. Check the current catalog for the full list.
Pia pre-built automations ↗ About Pia ↗ Pia launches automation for MSPs — PR Newswire ↗ Checked Jul 2026ProcessDeployment models: cloud, on-prem, hybrid
- Pia lists four environment types: Cloud Hybrid, Cloud Only, On-Prem Only, and Semi Hybrid.
- The Automations Catalog shows which environments each automation supports — check it before choosing one.
- On-prem and hybrid automations act on local systems such as Active Directory, so they need the connection and permissions to reach them.
- Cloud-only automations act on cloud services such as Microsoft 365 and Entra ID.
- Match the automation to where each client's identity and mailboxes actually live.
Pick automations that fit each client's environment. Details are in the catalog.
Pia pre-built automations ↗ Pia Automation 8.0 release ↗ NIST SP 800-128 configuration management ↗ Checked Jul 2026ProcessConfigure an automation: approval or zero-touch
- Connect Pia to the PSA and the client environment (credentials and permissions for the task).
- Pick the automation from the Catalog or a PiaPack in the Automation Hub.
- Choose how it runs: immediately (zero-touch) or after approval.
- Set the approver — approvals route to the designated approver inside the PSA.
- Adjust per client for naming conventions, groups, licenses, and workflow.
- Test with a test user or client and review the result and the audit entry.
- Enable for production and monitor.
Approval can be set per automation and per client environment, so risky tasks can need sign-off while simple ones run automatically.
Pia pre-built automations ↗ Pia launches automation for MSPs — PR Newswire ↗ Pia Automation 8.0 release ↗ Checked Jul 2026ProcessWhich tasks need approval and which can be zero-touch
- Usually require sign-off: offboarding, access changes, license removal, anything deleting data, and anything involving privileged accounts.
- Often safe as zero-touch after testing: simple lookups, adding a user to a standard group, ticket categorization, and standard notifications.
- Password reset: verify the user's identity first, either in the workflow or through the PSA approval.
- Start with approval required, review results, and relax only where it is proven safe.
A starting point for deciding which tasks run automatically. Adjust for your own risk rules and contracts.
Pia pre-built automations ↗ Pia launches automation for MSPs — PR Newswire ↗ Password guidance — NIST ↗ Checked Jul 2026ProcessReview the audit trail
- Every automation run is logged against the approving engineer.
- Filter by client, automation, and date.
- Check failures and retries and fix the cause.
- Confirm approved actions match the ticket.
- Keep the log for audit and customer questions.
The audit trail shows who approved what and what the automation actually did.
Pia pre-built automations ↗ Pia launches automation for MSPs — PR Newswire ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026ProcessAutomation fails or does not trigger
- Check the PSA connection and credentials are still valid.
- Check the automation is enabled for that client environment.
- Check whether it is waiting for approval and who the approver is.
- Check the client environment connection (AD sync, tenant permissions, agent online if on-prem).
- Read the run log for the first error.
- Re-run with a test case after the fix, and contact Pia support if it is a platform issue.
Most failures are connection, permission, or approval-state problems.
Pia pre-built automations ↗ About Pia ↗ Pia Automation 8.0 release ↗ Checked Jul 2026Roll out password reset automation
- Connect Pia to the PSA and the client environment.
- Enable the password reset automation in approval mode.
- Test with a test user and confirm identity verification.
- Review the audit entry.
- Consider zero-touch only after it runs cleanly.
Offboarding automation
- Keep approval required.
- Confirm the HR/manager request in the ticket.
- Run on a test user first.
- Review the audit trail and confirm access removed.
RAG, Local Models & AI Frameworks
ProcessRetrieval-augmented generation (RAG) for runbooks and KB
- Collect the documents: runbooks, KB articles, policies, and resolved-ticket notes.
- Clean them: remove outdated and duplicate content, and anything that should not be searchable.
- Split into chunks (a few paragraphs each) and keep source name and link with each chunk.
- Create embeddings and store them in a vector-capable store.
- At question time, embed the question, fetch the top matches, and send them to the model with the question.
- Instruct the model to answer only from the supplied text and cite the source; say "not found" otherwise.
- Respect permissions: only retrieve what that user may see.
- Test with real questions and review wrong answers; update documents, not just prompts.
RAG lets an AI answer from your own documents without retraining. Document quality decides answer quality.
Azure AI Search — Microsoft Learn ↗ pgvector — GitHub ↗ RAG concepts — LangChain ↗ Checked Jul 2026ProcessRun a local model with Ollama
- Install Ollama from the project site.
- Pull a model, for example
ollama pull <model>. - Chat with
ollama run <model>or call the local API at http://localhost:11434. - Use it for private experiments, offline summarization, and testing prompts without sending data out.
- Check the machine has enough RAM/VRAM; smaller models run on modest hardware.
- Local models are usually less capable than the large hosted ones — test before relying on them.
Local models keep data on your own machine, which is useful for sensitive experiments.
Ollama ↗ Ollama API docs — GitHub ↗ Ollama models ↗ Checked Jul 2026SafeCall a local Ollama model from PowerShell or curl
# curl curl http://localhost:11434/api/generate -d '{"model":"<model>","prompt":"Summarize: ...","stream":false}' # PowerShell $body = @{ model='<model>'; prompt='Summarize: ...'; stream=$false } | ConvertTo-Json (Invoke-RestMethod -Method Post -Uri http://localhost:11434/api/generate -Body $body -ContentType 'application/json').response
The local API uses simple JSON over HTTP, so any script can use it.
Ollama API docs — GitHub ↗ Ollama ↗ Invoke-RestMethod — Microsoft Learn ↗ Checked Jul 2026ProcessFrameworks: LangChain, LlamaIndex, Semantic Kernel
- LangChain: Python/JS toolkit for chains, tools, and agents across many providers.
- LlamaIndex: focused on connecting models to your data (indexing and retrieval).
- Semantic Kernel: Microsoft's SDK for C#, Python, and Java to build agents and plugins on Azure and other models.
- Use a framework when you need many integrations or complex flows; use the plain API for simple jobs.
- Frameworks change quickly — pin versions and read the release notes before upgrading.
Frameworks save time for complex projects but add dependencies to maintain.
LangChain docs ↗ LlamaIndex docs ↗ Semantic Kernel — Microsoft Learn ↗ Checked Jul 2026ProcessSimple agent loop (think, act, observe)
- Give the model a goal, instructions, and a list of tools.
- The model replies with an answer or a request to use a tool.
- Your code runs the tool (read-only first) and sends the result back.
- Repeat until done or a step limit is reached.
- Log every step and tool call.
- Require a person to approve writes and risky actions.
- Add a hard limit on steps, time, and cost.
Every agent framework is a version of this loop. Limits and approvals keep it safe.
Tool use — Anthropic ↗ Agent SDK — Anthropic ↗ OWASP Top 10 for LLM applications ↗ Checked Jul 2026ProcessData flow — retrieval-augmented generation (RAG)
- Indexing (offline): split documents into chunks, create embeddings, store them with the source name and link.
- Query (live): embed the question and fetch the closest chunks the user is allowed to see.
- Send the question plus those chunks to the model and tell it to answer only from them and cite the source.
- Show the sources so the user can verify the answer.
- Re-index when documents change, and review wrong answers to fix the documents.
The two halves of RAG: building the index and answering with retrieved text.
Azure AI Search — Microsoft Learn ↗ RAG concepts — LangChain ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026Build a runbook Q&A assistant
- Gather and clean the runbooks.
- Chunk and embed them.
- Retrieve top matches per question and answer only from them.
- Test with real questions and fix the documents.
Thread — AI MSP Service Desk (Super Magic)
ProcessWhat Thread and Super Magic are
- Thread is an AI service desk platform for MSPs that connects customers, the service team, and the PSA with two-way sync.
- Magic AI: background automation (auto prioritization, categorization, title, recap, sentiment).
- Magic Agents: Triage Agent (auto responder, auto triage, approval workflows, auto resolve, intents) and Reminder Agent.
- Voice AI: inbound and outbound calling with transcription and on-call paging.
- Messenger: customer chat on the web, Microsoft Teams, and Slack.
- Thread Inbox: technician workspace with Planner, time logging, and auto-dispatch.
- Flows and Agent Builder: no-code automation and unattended agents.
- Super Magic: in-Inbox assistant that gathers context and prepares actions, which a technician confirms before they run.
An overview taken from Thread's public documentation. Check the docs for current features.
Thread product overview — Thread docs ↗ Introducing Super Magic — Thread ↗ Thread documentation ↗ Checked Jul 2026ProcessSuper Magic: how it works and its guardrails
- A technician gives one prompt, such as investigating a VPN issue; Super Magic runs the steps in order.
- It reads the ticket, pulls client documentation (for example from Hudu), checks related resolved tickets, and searches the web if needed.
- It can route tickets or open follow-ups, but actions such as closing a ticket, logging time, or sending an approval need the technician's one-tap confirmation.
- Admins choose which connectors are enabled across the organization.
- Technicians authorize their own access, so it acts as that technician, not a shared account.
- Built-in connectors listed at launch: Notion, Zapier, Liongard, Linear; custom connectors can be added through MCP.
Super Magic prepares work and a person approves it, which is the right pattern for any AI agent.
Introducing Super Magic — Thread ↗ Thread product overview — Thread docs ↗ Model Context Protocol ↗ Checked Jul 2026ProcessConfiguration walkthrough: connect the PSA
- Pick the PSA integration your company uses (Thread documents ConnectWise, Autotask, and HaloPSA).
- Create the API user or key in the PSA with the permissions Thread's setup guide specifies — least privilege.
- Enter the credentials in Thread and test the connection.
- Map statuses, priorities, boards, and ticket types so Thread and the PSA match.
- Run a test ticket both ways and confirm the two-way sync.
- Document the API user, owner, and renewal date.
Setup details and permissions are in Thread's documentation — follow those exactly for your PSA.
Thread documentation ↗ Thread product overview — Thread docs ↗ Least privilege — NIST glossary ↗ Checked Jul 2026ProcessConfiguration walkthrough: Triage Agent and intents
- Turn on Auto Prioritization and Auto Categorization and check results on a sample of tickets.
- Create the Triage Agent and define what it may do: auto respond, gather details, and when to hand off to a person.
- Create intents for common requests (password reset, new user, printer issue), each with the questions to ask and the next step.
- Set approval workflows for anything that changes access.
- Start in a mode where a technician reviews before the agent acts; widen after you trust the results.
- Review conversations and tune the intents weekly at first.
Intents give the agent a defined path for each request type, which keeps it predictable.
Thread product overview — Thread docs ↗ Thread documentation ↗ Introducing Super Magic — Thread ↗ Checked Jul 2026ProcessConfiguration walkthrough: Messenger, Teams, and Slack
- Decide where customers and staff will reach you: web widget, Teams, Slack, or all.
- Embed the Messenger widget on the support page or portal.
- Create and publish the Teams app or deploy the Slack service app, following Thread's guide.
- Install the Companion App for your technicians in Teams or Slack so they can reply and update tickets from chat.
- Test: a customer message creates or updates a PSA ticket and the tech can respond.
- Tell customers how to use it.
Messenger is customer-facing; the Companion App is for your own team. They are installed separately.
Thread Messenger ↗ Thread documentation ↗ Thread product overview — Thread docs ↗ Checked Jul 2026ProcessConfiguration walkthrough: Voice AI
- Choose a mode: Attendant (after hours or first line) or Overflow (when staff are busy).
- Set the greeting, hours, and what information to collect.
- Map callers to contacts and companies, and enable caller verification before sharing ticket details.
- Set a verified business caller ID for outbound calls.
- Configure on-call paging so calls cascade through the rotation.
- Decide on call recording and when to pause it for sensitive information.
- Test inbound and outbound calls and check that transcripts land on the ticket.
Verify callers before giving ticket details and pause recording when sensitive data is spoken.
Thread product overview — Thread docs ↗ Thread documentation ↗ Thread Messenger ↗ Checked Jul 2026ProcessConfiguration walkthrough: Flows and auto-dispatch
- Pick a trigger (new ticket, reply, status change, sentiment shift, SLA breach).
- Add filters by client, board, priority, or tag.
- Add actions: change status/priority/assignee, post to Teams or Slack, email, page on-call, or send a CSAT survey.
- Check the run log to confirm which conditions matched and what ran.
- For dispatch, choose pull (next thread) or push (auto-assign by workload, skills, and schedule) and set work schedules and profiles.
- Test with a sample ticket before enabling broadly.
Flows are Thread's no-code automation. Test each one on a sample before turning it on for everything.
Thread product overview — Thread docs ↗ Thread documentation ↗ Introducing Super Magic — Thread ↗ Checked Jul 2026ProcessConfiguration walkthrough: Super Magic admin and connectors
- Decide which connectors to allow (documentation, automation, and project tools).
- Enable them for the organization and set safety rules for allowed actions.
- Have each technician authorize their own access so actions use their identity.
- Issue MCP keys only to those who need them, with scoped access.
- Turn on auditing and review it.
- Pilot with a few technicians before everyone.
Keep connector permissions narrow and per person.
Introducing Super Magic — Thread ↗ Thread product overview — Thread docs ↗ Model Context Protocol ↗ Checked Jul 2026ProcessThread or Super Magic is not behaving as expected
- Check the PSA connection, API user, and that status mappings still match.
- Check the connector or token has not expired or lost access.
- Review the Flow run log or agent conversation to see what ran and why.
- Check the intent or rule that should have fired and its filters.
- Check the technician has authorized the connector.
- Test with a fresh test ticket and contact Thread support with the run details.
Most problems are expired connections, changed PSA settings, or filters that do not match.
Thread documentation ↗ Thread product overview — Thread docs ↗ Introducing Super Magic — Thread ↗ Checked Jul 2026Setting up Thread for a new MSP
- Connect the PSA with a least-privilege API user.
- Turn on Auto Prioritization and test.
- Configure the Triage Agent and intents.
- Add Messenger and the Companion App.
- Review results and widen gradually.
Safely enabling Super Magic
- Enable only the needed connectors.
- Have each tech authorize their own access.
- Keep confirmation on every action.
- Audit and adjust.
Vibe Coding & AI-Assisted Development
ProcessVibe coding workflow (data flow)
- Vibe coding means describing what you want in plain language and letting an AI write the code, then iterating on results.
- Start small: one feature per prompt, with the expected behavior and an example.
- Run it, give the AI the exact error or wrong result, and repeat.
- Read every change before you accept it; if you cannot explain it, do not ship it.
- Commit after each working step so you can roll back.
A fast way to prototype and learn. For anything used by others, add review, tests, and security checks.
Vibe coding — Wikipedia ↗ Claude Code overview — Anthropic ↗ GitHub Copilot docs ↗ Checked Jul 2026ProcessVibe coding rules that keep you safe
- Use a Git repository from the start and commit often.
- Never paste secrets, customer data, or PHI into a prompt; use environment variables and test data.
- Pin and review dependencies the AI adds; check each package is real and maintained.
- Ask for tests alongside code and run them.
- Review authentication, input handling, and file or network access by hand.
- Use a throwaway environment first; never run generated commands on production without review.
- Keep a human reviewer and change approval for anything that reaches production.
Vibe-coded code can contain bugs, insecure patterns, or invented packages. These rules reduce the risk.
OWASP Top 10 for LLM applications ↗ OWASP Top 10 ↗ NIST Secure Software Development Framework ↗ Checked Jul 2026ProcessWrite a good prompt for code
- State the goal and who uses it in one sentence.
- Give the language, framework, and versions.
- Describe inputs, outputs, and one or two examples.
- List constraints: no new dependencies, follow existing style, handle errors, no secrets in code.
- Ask the AI to explain its plan first, then write the code.
- Ask for tests and for edge cases it handled.
Specific prompts produce better code and fewer retries.
Prompt engineering — Anthropic ↗ Claude Code overview — Anthropic ↗ GitHub Copilot docs ↗ Checked Jul 2026ProcessSpec-first (plan, then build) with AI
- Write a short spec: purpose, users, inputs/outputs, rules, and what is out of scope.
- Ask the AI to turn it into a task list and review the list yourself.
- Build one task at a time, test it, and commit.
- Update the spec when behavior changes so the project stays understandable.
- Keep the spec in the repository next to the code.
A calmer alternative to open-ended vibe coding and the basis of most professional AI-assisted work.
Claude Code memory (CLAUDE.md) — Anthropic ↗ Architecture decision records ↗ Claude Code overview — Anthropic ↗ Checked Jul 2026ProcessDebug with an AI assistant
- Reproduce the problem and capture the exact error text and steps.
- Give the AI the error, the relevant code, and what you expected.
- Ask for likely causes ranked, and a check for each.
- Try the cheapest check first; do not apply several changes at once.
- Add a test that fails before the fix and passes after it.
- Commit the fix with a message explaining the cause.
AI is useful for reading errors and proposing causes; you still confirm with a test.
Debugging — MDN ↗ Claude Code overview — Anthropic ↗ pytest documentation ↗ Checked Jul 2026SafeClaude Code — everyday commands
claude # start in the current project folder
claude -p "explain this repo" # one-off, non-interactive
claude --continue # continue the last session in this folder
claude --resume # pick an earlier session
# inside a session
/help # list commands
/init # create a CLAUDE.md for the project
/clear # start a fresh conversation
/compact # summarize to free up context
/context # see how much context is used
/model # switch model
/plan # plan before editing
/diff # review changes in the working tree
/rewind # undo to an earlier point
/memory # edit CLAUDE.md and memory
/permissions # manage allow / deny rules
/mcp # manage MCP servers
/review # review code changes
/security-review # review the branch for vulnerabilities
/resume # reopen a session
/exit # leaveCommand availability varies by version and plan; the commands page is the source of truth.
Commonly used Claude Code commands. Run /help for the list in your version, as commands change.
ProcessClaude Code — project setup (CLAUDE.md, hooks, subagents, MCP)
- Run
/initin the project to create a CLAUDE.md with build commands, structure, and coding rules; edit it by hand. - Use
/memoryto open and edit memory files; keep them short and specific. - Set allowed and blocked actions with
/permissionsso routine safe commands do not prompt. - Add hooks for automatic checks (for example run a formatter or tests after edits).
- Add subagents for repeatable roles such as a reviewer or test writer.
- Add MCP servers (
claude mcp add) for ticket, database, or docs access with least privilege. - Commit the shared settings to the repository so the team uses the same setup.
Setting up a repeatable AI-assisted workflow for a team project.
Claude Code memory (CLAUDE.md) — Anthropic ↗ Claude Code hooks — Anthropic ↗ Claude Code subagents — Anthropic ↗ Checked Jul 2026ProcessOther AI coding tools and how they differ
- Claude Code: terminal and IDE agent that edits files and runs commands with your approval.
- GitHub Copilot: IDE completions, chat, and agent mode, tied to GitHub.
- Gemini CLI: Google's open-source terminal agent.
- Cursor and Windsurf: editors built around AI chat and agent edits.
- Replit, Lovable, v0, and Bolt: browser-based tools that generate and host apps from a prompt.
- Pick by where your code lives, what your security team approves, and whether data may leave your network.
The main options. Features change quickly, so check each vendor before standardizing.
GitHub Copilot docs ↗ Gemini CLI — GitHub ↗ Cursor ↗ Checked Jul 2026ProcessReview AI-generated code before merging
- Read the whole diff; reject changes you do not understand.
- Check for secrets, hard-coded paths, and debug leftovers.
- Check inputs are validated and queries are parameterized.
- Check new dependencies are real, maintained, and licensed acceptably.
- Run tests, linters, and a security scan.
- Ask a second person to review anything touching auth, data, or money.
AI code gets the same review as human code, and a bit more care.
Code review developer guide — Google ↗ OWASP Top 10 ↗ NIST Secure Software Development Framework ↗ Checked Jul 2026Build a small tool with AI
- Write a one-paragraph spec.
- Ask the AI for a plan, then build one step at a time.
- Run, test, and commit after each step.
- Review the final diff before sharing.
Workflow & Infrastructure Automation (n8n, Zapier, Make, Ansible, Terraform)
ProcessChoosing a workflow tool
- Power Automate: best inside Microsoft 365 — SharePoint, Teams, Outlook, Dataverse, and AI Builder.
- Zapier and Make: quick, wide app coverage for SaaS-to-SaaS automation with AI steps.
- n8n: open source and self-hostable with a visual editor and code nodes; good where data must stay in your environment.
- Azure Automation / Logic Apps: runbooks and workflows inside Azure.
- Ansible: agentless configuration management and task automation for servers and network devices.
- Terraform: infrastructure as code for cloud resources.
- Pick by where the data lives, who maintains it, and what your security team approves.
Most teams use several. The key questions are data location, ownership, and governance.
Power Automate — Microsoft Learn ↗ n8n docs ↗ Ansible documentation ↗ Checked Jul 2026ProcessBuild an AI step in n8n, Zapier, or Make
- Create a trigger: webhook, new ticket, new email, or schedule.
- Add an HTTP or built-in AI node that calls your provider with a prompt and the redacted input.
- Request JSON output and add a step that validates it.
- Add a branch: high confidence continues automatically; low confidence goes to a person for approval.
- Write the result to the PSA, chat, or spreadsheet.
- Store API keys in the tool's credential store.
- Turn on error notifications and check the run history after launch.
SafeLinux / Unix / AIXAnsible: check connectivity and dry-run a playbook
ansible all -i inventory.ini -m ping ansible-playbook -i inventory.ini site.yml --check --diff # dry run: shows changes without making them ansible-playbook -i inventory.ini site.yml --limit web01 # run on one host first ansible-playbook -i inventory.ini site.yml
--check --diff is the safe first step in any change. Test on one host, then widen.
SafeTerraform: plan before apply
terraform init
terraform fmt -check
terraform validate
terraform plan -out=tfplan
# review the plan, get approval, then:
terraform apply tfplanplan shows exactly what would change. Apply only a reviewed plan, ideally through a pipeline with approval.
ProcessKeep automations supportable
- Name each automation clearly and record owner, purpose, schedule, and systems touched.
- Store flow/script definitions in version control.
- Use service accounts with least privilege and rotate secrets.
- Send failure alerts to a monitored channel, not one person.
- Document how to disable it and how to roll back.
- Review all automations at least quarterly and retire unused ones.
Automations become production systems; treat them that way.
Change management — Atlassian ↗ NIST SP 800-128 configuration management ↗ NIST AI Risk Management Framework ↗ Checked Jul 2026Add an AI classification step to a workflow
- Add a webhook or ticket trigger.
- Call the AI with redacted input and ask for JSON.
- Validate and branch on confidence.
- Write the result back and enable error alerts.