\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{DiaVedu25} \pdfinfo{ /Title (web-server-management.pdf) /Creator (Cheatography) /Author (DiaVedu25) /Subject (Web Server Management Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{122E7A} \definecolor{LightBackground}{HTML}{F7F8FA} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Web Server Management Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{DiaVedu25} via \textcolor{DarkBackground}{\uline{cheatography.com/214308/cs/47001/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}DiaVedu25 \\ \uline{cheatography.com/diavedu25} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 8th September, 2025.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{x{3.92 cm} x{4.08 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{{\bf{1.Definitions}} \{\{fa-book\}\}}} \tn % Row 0 \SetRowColor{LightBackground} \{\{width=32\}\}Windows Server 2019 & Enterprise OS for AD DS, DNS, DHCP, File/Print, Web, Virtualization \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} Domain Controller (DC) & Server authenticating users, enforcing policies, replicating AD \tn % Row Count 8 (+ 4) % Row 2 \SetRowColor{LightBackground} Active Directory (AD DS) & Directory service for managing users, computers, policies \tn % Row Count 11 (+ 3) % Row 3 \SetRowColor{white} DNS & Resolves hostnames to IP addresses \tn % Row Count 13 (+ 2) % Row 4 \SetRowColor{LightBackground} DHCP & Automates IP address assignment \tn % Row Count 15 (+ 2) % Row 5 \SetRowColor{white} GPO & Group Policy Object – rules/settings applied to users/computers \tn % Row Count 19 (+ 4) % Row 6 \SetRowColor{LightBackground} PKI & Public Key Infrastructure – manages digital certificates \tn % Row Count 22 (+ 3) % Row 7 \SetRowColor{white} Windows Defender Antivirus & Built-in malware protection \tn % Row Count 24 (+ 2) % Row 8 \SetRowColor{LightBackground} Windows Firewall with Advanced Security & Stateful firewall with rule-based inbound/outbound filtering \tn % Row Count 27 (+ 3) % Row 9 \SetRowColor{white} Remote Toolsets \& Event Logs & MMC, RSAT, Event Viewer for monitoring and managing servers \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{3.92 cm} x{4.08 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{{\bf{1.Definitions}} \{\{fa-book\}\} (cont)}} \tn % Row 10 \SetRowColor{LightBackground} Server Core & Minimal installation with CLI/PowerShell interface \tn % Row Count 3 (+ 3) % Row 11 \SetRowColor{white} PowerShell & CLI + scripting environment for automation \tn % Row Count 6 (+ 3) % Row 12 \SetRowColor{LightBackground} Windows Admin Center & GUI for remote management of Server Core/GUI servers \tn % Row Count 9 (+ 3) % Row 13 \SetRowColor{white} Nano Server & Lightweight container host \tn % Row Count 11 (+ 2) % Row 14 \SetRowColor{LightBackground} Containers & Virtualized app environments: Windows Server or Hyper-V containers \tn % Row Count 15 (+ 4) % Row 15 \SetRowColor{white} Docker \& Kubernetes & Container deployment and orchestration tools \tn % Row Count 18 (+ 3) % Row 16 \SetRowColor{LightBackground} Shielded VMs & Protect VM data from tampering \tn % Row Count 20 (+ 2) % Row 17 \SetRowColor{white} NLB & Distributes network traffic across multiple servers \tn % Row Count 23 (+ 3) % Row 18 \SetRowColor{LightBackground} Failover Cluster & Ensures high availability for applications \tn % Row Count 26 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.32 cm} x{5.68 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{2. Quick Step-by-Step Tasks\{\{fa-list-ul\}\}}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Task}} & {\bf{Steps}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Install Server & GUI/Core → IP, hostname, domain join → Updates \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Create Domain & Install AD DS → Promote DC → Configure DNS \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} Create OU/User & ADUC → New OU → Add Users/Groups → Link GPO \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} DHCP Scope & DHCP → New Scope → Set IP range → Activate → Reservations/Failover \tn % Row Count 10 (+ 3) % Row 5 \SetRowColor{white} DNS Zone & Create Primary/Secondary → Add A, AAAA, CNAME, MX records \tn % Row Count 13 (+ 3) % Row 6 \SetRowColor{LightBackground} GPO & Create → Link OU → Configure policies → Update with `gpupdate /force` \tn % Row Count 16 (+ 3) % Row 7 \SetRowColor{white} Hyper-V VM & New VM Wizard → CPU/RAM → Virtual Switch → Install OS \tn % Row Count 19 (+ 3) % Row 8 \SetRowColor{LightBackground} Containers & Pull image → Run container → Configure app → Test connectivity \tn % Row Count 22 (+ 3) % Row 9 \SetRowColor{white} NLB & Install NLB → Add servers → Assign VIP → Test \tn % Row Count 24 (+ 2) % Row 10 \SetRowColor{LightBackground} Failover Cluster & Install feature → Validate → Create cluster → Add nodes \tn % Row Count 27 (+ 3) % Row 11 \SetRowColor{white} Security & Enable Defender, configure Firewall → BitLocker → VPN/DirectAccess → ATA monitoring \tn % Row Count 31 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{2.32 cm} x{5.68 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{2. Quick Step-by-Step Tasks\{\{fa-list-ul\}\} (cont)}} \tn % Row 12 \SetRowColor{LightBackground} Monitoring & Task Manager, Resource Monitor, Performance Monitor → Check CPU, memory, disk, network → Event Viewer for logs \tn % Row Count 5 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{4. Scenario-Based Tips\{\{fa-lightbulb-o\}\}}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{width=60\}\}{\bf{DC Failure:}} Verify replication → DNS → Restore DC.} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Slow Login / High CPU:}} Task Manager → Resource Monitor → Event Logs → Optimize processes.} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Web App HA:}} NLB or failover cluster → Test load distribution.} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Remote Branch Access:}} Configure VPN/AOVPN → Assign certificates → Test connectivity.} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Password Policy / SSL Deployment:}} GPO → Apply → Issue certificates → Install SSL on server.} \tn % Row Count 11 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{3. Quick Commands \& PowerShell}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{PowerShell Tips \{\{fa-terminal\}\}}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\# List running services \newline Get-Service | Where-Object \{\$\_.Status -eq "Running"\} \newline \newline \# Restart a service \newline Restart-Service -Name "Spooler" \newline \newline \# DSC Configuration \newline Start-DscConfiguration -Path "C:\textbackslash{}DSC" \newline -Wait -Verbose} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{DHCP \{\{fa-sitemap\}\}}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\# Add Scope \newline Add-DhcpServerv4Scope \newline -Name "OfficeScope" \newline -StartRange 192.168.1.10 -EndRange 192.168.1.50 \newline -SubnetMask 255.255.255.0 \newline \newline \# Reservation \newline Add-DhcpServerv4Reservation -ScopeId 192.168.1.0 \newline -IPAddress 192.168.1.20 \newline -ClientId "AA-BB-CC-DD-EE-FF"} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{DNS \{\{fa-server\}\}}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\# Add A Record \newline Add-DnsServerResourceRecordA -Name "WebServer" \newline -ZoneName "domain.name.com" \newline -IPv4Address "192.168.1.100"} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Active Directory \& GPO \{\{fa-users\}\}}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\# Install AD DS \newline Install-WindowsFeature AD-Domain-Services \newline \newline \# Create domain \newline Install-ADDSForest -DomainName "domain.name.com" \newline \newline \# Create GPO \newline New-GPO -Name "PasswordPolicy" | New-GPLink \newline -Target "OU=Users,DC=contoso,DC=com"} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Hyper-V \{\{fa-th-list\}\}}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\# Create VM \newline New-VM -Name "WebVM" -MemoryStartupBytes 2GB -Generation 2 \newline -SwitchName "ExternalSwitch" \newline \newline \# Start VM \newline Start-VM -Name "WebVM"} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Containers \{\{fa-cubes\}\}}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{docker pull \seqsplit{mcr.microsoft.com/windows/servercore} \newline docker run -it \seqsplit{mcr.microsoft.com/windows} \newline /servercore powershell \newline docker run -{}-isolation=hyperv -it \textless{}image\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{5. Lab Checklist \{\{fa-check-square-o\}\}}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Install Server GUI \& Core} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Configure IP, hostname, join domain} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Create OUs, users, groups, GPOs} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} DHCP \seqsplit{scope/reservation/failover}} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} DNS zones \& records} \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Hyper-V VM \& virtual switch creation} \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Deploy Windows \& Hyper-V containers} \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Configure NLB \& failover cluster} \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Enable Defender, Firewall, BitLocker, VPN/AOVPN, ATA} \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Monitor system: Task Manager, Perf Monitor, Event Logs} \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{\{\{border=1\}\}\{\{fa-square-o\}\} Use PowerShell for automation \& troubleshooting} \tn % Row Count 21 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}