| name | startup-it-troubleshooting |
| description | Practical IT troubleshooting playbooks for small teams without dedicated IT staff. |
| license | MIT |
| metadata | {"author":"devops-skills","version":"2.0"} |
Startup IT Troubleshooting
Runbooks for startups and small teams where engineers double as the IT department.
When to Use
You are the "accidental IT person." Nobody has IT in their title, but laptops freeze, Wi-Fi drops during investor demos, someone gets locked out of Google Workspace at midnight, and a new hire starts Monday with zero accounts. This skill gives you copy-paste commands to handle it all.
Priority triage: (1) Company-wide outages, (2) Executive/customer-facing blockers, (3) Team-wide degradations, (4) Individual workstation issues. Always ask: "How many people are affected?" and "Is revenue impacted?"
SSO / Identity Lockouts
Google Workspace via GAM
bash <(curl -s -S -L https://gam-shortn.appspot.com/gam-install)
gam oauth create
gam update user jane@company.com password "TempPass123!" changepassword on
gam update user jane@company.com suspended off
gam user jane@company.com signout
gam user jane@company.com update backupcodes
gam user jane@company.com turnoff2sv
Okta API
OKTA="company.okta.com"; T="your-api-token"; UID="00u1abcdef"
curl -X POST -H "Authorization: SSWS $T" "https://$OKTA/api/v1/users/$UID/lifecycle/unlock"
curl -X POST -H "Authorization: SSWS $T" "https://$OKTA/api/v1/users/$UID/lifecycle/reset_password?sendEmail=true"
curl -X POST -H "Authorization: SSWS $T" "https://$OKTA/api/v1/users/$UID/lifecycle/reset_factors"
curl -X DELETE -H "Authorization: SSWS $T" "https://$OKTA/api/v1/users/$UID/sessions"
MFA recovery flow: Verify identity via video call, generate backup codes or reset factors, have user re-enroll immediately, confirm old device is deregistered, log the incident.
Network Troubleshooting
Wi-Fi Debugging
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I
networksetup -setairportpower en0 off && sleep 2 && networksetup -setairportpower en0 on
sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder
nmcli device wifi list && nmcli connection show --active
nmcli device disconnect wlan0 && nmcli device connect wlan0
sudo systemd-resolve --flush-caches
netsh wlan show interfaces
netsh wlan disconnect; netsh wlan connect name="OfficeWiFi"
ipconfig /flushdns
netsh winsock reset # full stack reset, reboot after
DNS Issues
nslookup company.com 8.8.8.8
dig @1.1.1.1 company.com
sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4
$a = Get-NetAdapter | Where-Object {$_.Status -eq "Up"}
Set-DnsClientServerAddress -InterfaceIndex $a.ifIndex -ServerAddresses ("8.8.8.8","8.8.4.4")
VPN Not Connecting
nc -zv vpn.company.com 443
sudo wg show
sudo wg-quick down wg0 && sudo wg-quick up wg0
tailscale status && sudo tailscale up --reset
Slow Internet
speedtest-cli --simple
ping -c 50 8.8.8.8
networkQuality -s
Laptop Performance
Disk Space
df -h
du -sh ~/* | sort -rh | head -15
docker system df
docker system prune -a --volumes
brew cleanup --prune=all
Get-PSDrive -PSProvider FileSystem | Select Name,@{N='Free(GB)';E={[math]::Round($_.Free/1GB,2)}}
Get-ChildItem C:\ -Recurse -File -EA SilentlyContinue | Sort Length -Desc | Select -First 15 FullName,@{N='MB';E={[math]::Round($_.Length/1MB,2)}}
Memory Pressure and Runaway Processes
memory_pressure
top -o rsize -l 1 -n 10 -stats pid,command,rsize
pkill -f "Google Chrome Helper"
free -h && ps aux --sort=-%mem | head -11
sudo dmesg | grep -i "oom\|out of memory"
Get-Process | Sort WorkingSet64 -Desc | Select -First 10 Name,@{N='MB';E={[math]::Round($_.WorkingSet64/1MB,2)}}
Stop-Process -Name "Teams" -Force
Battery Health
system_profiler SPPowerDataType | grep -E "Cycle Count|Condition"
upower -i /org/freedesktop/UPower/devices/battery_BAT0
powercfg /batteryreport /output "$env:USERPROFILE\Desktop\battery.html"
macOS Administration
profiles status -type enrollment
sudo systemsetup -setremotelogin on
cat > Brewfile <<'EOF'
brew "git"; brew "node"; brew "python@3.12"; brew "awscli"; brew "jq"; brew "gh"
cask "google-chrome"; cask "slack"; cask "1password"; cask "visual-studio-code"; cask "docker"; cask "zoom"
EOF
brew bundle install --file=Brewfile
brew bundle dump --file=~/Brewfile --force
sudo fdesetup status && sudo fdesetup enable
softwareupdate -l && sudo softwareupdate -ia --restart
Windows Administration
gpresult /r; gpupdate /force # check and refresh Group Policy
# Windows Update
Install-Module PSWindowsUpdate -Force -Scope CurrentUser
Install-WindowsUpdate -AcceptAll -AutoReboot
# If stuck: reset update components
Stop-Service wuauserv,cryptSvc,bits,msiserver -Force
Remove-Item "C:\Windows\SoftwareDistribution" -Recurse -Force
Start-Service wuauserv,cryptSvc,bits,msiserver
# BitLocker
manage-bde -status C:
Enable-BitLocker -MountPoint "C:" -EncryptionMethod XtsAes256 -UsedSpaceOnly -TpmProtector
# Remote Desktop
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
Linux Desktop
sudo apt --fix-broken install && sudo dpkg --configure -a && sudo apt update && sudo apt upgrade -y
sudo dnf check && sudo dnf distro-sync && sudo dnf update -y
systemctl --failed
journalctl -p err -b
sudo ubuntu-drivers autoinstall
lspci | grep -i vga && sudo lshw -C display
sudo dmesg | grep -i firmware
xrandr --auto
xrandr --output HDMI-1 --mode 1920x1080 --rate 60
echo $XDG_SESSION_TYPE
Email / Calendar Issues
Google Workspace
gam user jane@company.com show forwarding
gam user jane@company.com delete forwarding
gam user jane@company.com show delegates
gam user jane@company.com show filters
Microsoft 365
Install-Module ExchangeOnlineManagement -Force -Scope CurrentUser
Connect-ExchangeOnline -UserPrincipalName admin@company.com
Get-MessageTrace -SenderAddress jane@company.com -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date)
Get-MailboxStatistics -Identity jane@company.com | Select DisplayName,TotalItemSize
Email Deliverability
dig TXT company.com | grep "v=spf1"
dig TXT google._domainkey.company.com
dig TXT _dmarc.company.com
Onboarding Checklist
gam create user newhire@company.com firstname "Jane" lastname "Smith" \
password "Welcome2Company!" changepassword on org "/Engineering"
gam update group engineering@company.com add member newhire@company.com
op user provision --email newhire@company.com --name "Jane Smith"
curl -X POST "https://slack.com/api/admin.users.invite" \
-H "Authorization: Bearer xoxp-your-admin-token" \
-d "email=newhire@company.com&channel_ids=C01GENERAL,C02ENGINEERING&team_id=T01YOURTEAM"
gh api orgs/your-company/invitations -f email="newhire@company.com" -f role="direct_member"
gh api orgs/your-company/teams/engineering/memberships/newhire-username -f role="member" -X PUT
tailscale up --authkey tskey-auth-abc123
First-Day Setup Script (macOS)
Give new hires this script. It installs Homebrew, your standard tools from a hosted Brewfile, configures Git, authenticates GitHub CLI, clones core repos, and enables FileVault.
#!/bin/bash
set -e
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
curl -sL https://internal.company.com/setup/Brewfile -o /tmp/Brewfile && brew bundle install --file=/tmp/Brewfile
read -p "Full name: " N; read -p "Email: " E
git config --global user.name "$N" && git config --global user.email "$E" && git config --global pull.rebase true
gh auth login && mkdir -p ~/src && cd ~/src && gh repo clone your-company/main-app
sudo fdesetup enable
Offboarding Checklist
Run these immediately when someone departs. Speed matters for security.
gam update user departed@company.com suspended on
gam user departed@company.com signout
gam user departed@company.com transfer drive manager@company.com
gam user departed@company.com add delegate manager@company.com
curl -X POST "https://slack.com/api/admin.users.remove" \
-H "Authorization: Bearer xoxp-your-admin-token" \
-d "user_id=U01DEPARTED&team_id=T01YOURTEAM"
gh api orgs/your-company/members/departed-username -X DELETE
op user suspend departed@company.com
aws iam delete-login-profile --user-name departed
aws iam list-access-keys --user-name departed
echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Offboarded departed@company.com" >> ~/offboarding-log.txt
Video Conferencing
lsof | grep "AppleCamera\|VDC"
pkill -f zoom.us && open -a zoom.us
tccutil reset Camera
pactl list short sources
pactl set-source-mute @DEFAULT_SOURCE@ 0
Get-CimInstance Win32_SoundDevice | Select Name, Status
Quick fixes: No audio = check OS mute + correct device. No video = close other conferencing apps. Echo = use headphones. Choppy = need 3+ Mbps upload.
Printer / Peripheral Issues
lpstat -p -d && cancel -a
sudo launchctl stop org.cups.cupsd && sudo launchctl start org.cups.cupsd
system_profiler SPUSBDataType
sudo systemctl restart cups
lsusb && dmesg | tail -20
Restart-Service Spooler -Force # restart print spooler
Get-PrintJob -PrinterName "OfficePrinter" | Remove-PrintJob # clear stuck jobs
Security Basics
Endpoint Protection
spctl --status
csrutil status
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
sudo ufw enable && sudo ufw default deny incoming && sudo ufw default allow outgoing
Get-MpComputerStatus | Select AntivirusEnabled, RealTimeProtectionEnabled
Start-MpScan -ScanType QuickScan
Get-NetFirewallProfile | Select Name, Enabled
Phishing Response
gam update user compromised@company.com password "$(openssl rand -base64 16)" changepassword on
gam user compromised@company.com signout
gam user compromised@company.com turnoff2sv
gam user compromised@company.com show tokens
gam user compromised@company.com show forwarding
Lost / Stolen Device Protocol
- Immediately -- Remote wipe via MDM or Find My Mac.
- Within 15 min -- Reset password and kill sessions (SSO commands above).
- Within 1 hour -- Rotate API keys and secrets:
gh auth refresh, delete AWS access keys.
- Within 24 hours -- Review access logs for suspicious activity.
Related Skills