\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{Klaga} \pdfinfo{ /Title (exchange.pdf) /Creator (Cheatography) /Author (Klaga) /Subject (Exchange 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}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \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{Exchange Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Klaga} via \textcolor{DarkBackground}{\uline{cheatography.com/63690/cs/17560/}}} \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}Klaga \\ \uline{cheatography.com/klaga} \\ \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 26th October, 2018.\\ 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*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Installation af Exchange}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Mere info ved:} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\seqsplit{https://docs.microsoft.com/en-us/exchange/plan-and-deploy/prerequisites?view=exchserver-2019}} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Inden du begynder check at der er følgende:} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Serveren er fuldt opdateret \{\{nl\}\} .NET Framework 4.7.2 eller senere. \{\{nl\}\} Visual C++ Redistributable Package for Visual Studio. \{\{nl\}\} Serveren har fået ændret PC navn, IP og medlem af domæne der kører 2012 R2 eller nyere.} \tn % Row Count 9 (+ 5) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Powershell Kommando:} \tn % Row Count 10 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Powershell Kommando:Kør følgende Powershell Kommando: Install-WindowsFeature Server-Media-Foundation, \seqsplit{NET-Framework-45-Features}, RPC-over-HTTP-proxy, RSAT-Clustering, \seqsplit{RSAT-Clustering-CmdInterface}, RSAT-Clustering-Mgmt, \seqsplit{RSAT-Clustering-PowerShell}, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, \seqsplit{Windows-Identity-Foundation}, RSAT-ADDS \{\{nl\}\} og Install-WindowsFeature RSAT-ADDS} \tn % Row Count 25 (+ 15) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{CMD:} \tn % Row Count 26 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{(Setup exe er exchange setup exe, så brug fuld sti til den) \{\{nl\}\} D:\textbackslash{}Setup.exe /PrepareSchema \seqsplit{/IAcceptExchangeServerLicenseTerms} \{\{nl\}\} D:\textbackslash{}Setup.exe /PrepareAD /OrganizationName:"Skriv et organization navn du bestemmer" \seqsplit{/IAcceptExchangeServerLicenseTerms}} \tn % Row Count 32 (+ 6) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Installation af Exchange (cont)}} \tn % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Under installation exchange "Setup.exe"} \tn % Row Count 1 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Vælg Nej til opdateringer, Ja til features (vi mangler måske via Kommando før) Mailbox rolle, Læs malware scan, så du siger nej til den (tricky).} \tn % Row Count 4 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.28942 cm} x{2.68758 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Distributions Grupper}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Distributionsgrupper:}} & Gruppe af brugere så der kan sendes data til flere brugere, uden at gå ind på brugeren enkeltvis. \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} {\bf{Dynamisk Distributionsgrupper:}} & Kan selv finde og sende medlemskab til brugere. Du kan vælge hvilke atributer den skal søge efter. \tn % Row Count 10 (+ 5) % Row 2 \SetRowColor{LightBackground} {\bf{Sikkerhedsgruppe:}} & Distributions gruppe, men med evnen til at give rettigheder til alle brugere. \tn % Row Count 14 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Pop3 \& Imap4 \& Outlook Anywhere}} \tn % Row 0 \SetRowColor{LightBackground} Enable Pop3/imap: & Disabled by default, åbn services.msc for at enable, der er både backend og frontend services, begge skal enables og sættes til start automatic. \tn % Row Count 7 (+ 7) % Row 1 \SetRowColor{white} Port numbers og konfiguration: & Findes i EAC -\textgreater{} Servere -\textgreater{} Click på Dobbelt klik server -\textgreater{} pop3 / imap \tn % Row Count 11 (+ 4) % Row 2 \SetRowColor{LightBackground} {\emph{Standard port}} & POP3 har standard port 110. Sekundært over SSL 995. IMAP4 over port 143. Sekundært over SSL 993. \tn % Row Count 16 (+ 5) % Row 3 \SetRowColor{white} Outlook Anywhere: & Findes i EAC under Server-\textgreater{} click på server -\textgreater{} Outlook anywhere giv ekstern addresse. \tn % Row Count 20 (+ 4) % Row 4 \SetRowColor{LightBackground} {\emph{Extra Info:}} & POP3 og IMAP er legacy, ifølge Microsoft. \tn % Row Count 22 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Brugere i exchange.}} \tn % Row 0 \SetRowColor{LightBackground} Oprettelse af brugere & I EAC under modtagere -\textgreater{} postkasser -\textgreater{} bruger postkasse. \{\{nl\}\} Kan bruge Eksisterende AD bruger eller Oprette bruger. \{\{nl\}\} Når man opretter en bruger igennem EAC, bliver de både oprettet i AD og Exchange med en postkasse. Det er muligt at specificere hvilken OU deres konto skal være i, i AD, men man kan ikke tilmelde Sikkerheds Grupper, dette skal gøres i Users and Computers. \tn % Row Count 16 (+ 16) % Row 1 \SetRowColor{white} Begræns brugere: & Under brugeren og Postkasse brug Klik på flere indstillinger. \{\{nl\}\} Kan se anvendt plads, og begrænse størrelse på postkasse, samt ændre dage slettede elementer er gemt. \tn % Row Count 24 (+ 8) % Row 2 \SetRowColor{LightBackground} Postkasse delegering & Under Bruger redigering. \{\{nl\}\} Send Som: Giver brugeren der er tilføjet rettighed til at sende for personen \{\{nl\}\} Send på vegne af: giver brugeren der er tilføjet rettighed til at Sende besked på vegne af brugeren, brugeren der sender på vegne af bliver vist. \{\{nl\}\} fuld adgang: giver brugeren der er tilføjet fuld adgang til brugerens postkasse \tn % Row Count 39 (+ 15) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Brugere i exchange. (cont)}} \tn % Row 3 \SetRowColor{LightBackground} Flytte bruger postkasse & Flytter brugerens postkasse fra en database til en anden. \{\{nl\}\} Gøres via EAC -\textgreater{} modtagere -\textgreater{} postkasser -\textgreater{} højre side i bunden -\textgreater{} Giv "Batched" et navn og vælg en af mulighederne -\textgreater{} vælg Destinations database og arkiv database -\textgreater{} Tryk næste -\textgreater{} Tryk ny, evt ændrer på standard værdierne for fejl og rapport. \tn % Row Count 13 (+ 13) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Basis Konfiguration}} \tn % Row 0 \SetRowColor{LightBackground} Custom Attribute: & Kan bruges til at filtrere ting senere hen, til at hente AD brugere, eller lave dynamiske distributions grupper etc. \{\{nl\}\}Enten: \seqsplit{http://www.sharepointpals.com/post/How-to-Custom-Attributes-in-Active-Directory-in-Windows-Server-2012-ADDS} \{\{nl\}\} eller gå i AD til: \{\{nl\}\}Users and computers -\textgreater{} View -\textgreater{} Slå "Advanced features" til -\textgreater{} bruger -\textgreater{} Edit Attributes -\textgreater{} extra attribute 1-12 -\textgreater{} ændre værdien. \tn % Row Count 21 (+ 21) % Row 1 \SetRowColor{white} DNS MX Record Powershell / GUI: & Fortæller udekomende og interne hvor mail server er og kan oprettes på følgende måder: \{\{nl\}\} \seqsplit{Add-DnsServerResourceRecordMX} -ComputerName {[}AD-Server hostnavn{]} -Preference 10 -Name "." - MailExchange "Exchange Server FQDN" -ZoneName "{[}domæne{]}" \{\{nl\}\} eller \{\{nl\}\} Gui -\textgreater{} DNS -\textgreater{} Forward Lookup -\textgreater{} Domain -\textgreater{} new MX (giv navn og peg på Exchange A record + en prioritet) \{\{nl\}\} Kan testes via CMD -\textgreater{} Nslookup -\textgreater{} Set type=mx -\textgreater{} MX record navn. \tn % Row Count 44 (+ 23) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Basis Konfiguration (cont)}} \tn % Row 2 \SetRowColor{LightBackground} Flytte mailbox Database i Exchange Management Shell: & Brug Get-MailboxDatabase for at få navnet på databaserne derefter kør kommando og sig ja efter.\{\{nl\}\}Move-DatabasePath -Identity "Database Navn + Nr" -EdbFilePath '\{File Path + File Name\}.edb' -LogFolderPath \{File Path\}\textbackslash{}Logs \tn % Row Count 12 (+ 12) % Row 3 \SetRowColor{white} Universal Security Groups: & bruges til at give AD brugere rettigheder i exchange. Brugere i gruppen -\textgreater{} rettigheder til funktioner eller enheder i exchange. \{\{nl\}\} f.eks. \{\{nl\}\} UExchOrganisation -\textgreater{} Organization Management \{\{nl\}\} UExchRecipient-\textgreater{} Recipient Management \{\{nl\}\} UExchPublicFolder -\textgreater{} Public Folder Management \{\{nl\}\} UExchViewOnly -\textgreater{} View - Only Organization Management \tn % Row Count 30 (+ 18) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Basis Konfiguration (cont)}} \tn % Row 4 \SetRowColor{LightBackground} Tilladelser i exchange: & Bruger universal Security groups, findes i EAC under Tilladelser -\textgreater{} administrator roller -\textgreater{} meld security group som medlem af rollen. \tn % Row Count 7 (+ 7) % Row 5 \SetRowColor{white} Oprette Databaser i GUI: & I EAC -\textgreater{} Servere -\textgreater{} Databaser -\textgreater{} Ny (+). Efter du har klikket på den så kan du lave en. Vælg hvilken server databasen er oprettet på. \tn % Row Count 14 (+ 7) % Row 6 \SetRowColor{LightBackground} Oprette Databaser i EMS: & New - MailboxDatabase - Name 'INDSÆT NAVN' - EdbFilePath 'Sti til mappen database filen skal + navn + .edb' - Server {[}Exchange Server FQDN \tn % Row Count 22 (+ 8) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.89126 cm} x{3.08574 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Storage Arkitektur}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Fil Typer} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{.chk}} & Check Point File, indeholder oplysninger om hvilke filer er flyttet fra trn.log til databasen. \tn % Row Count 5 (+ 4) % Row 2 \SetRowColor{LightBackground} {\bf{.log}} - Current & 2 typer af Log filer. Den starter med E00.log. Max størrelsen er 1 MB. \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} {\bf{.log}} - fortsættelse & Efterhånden som E00 bliver fyldt, kopierer den indholdet og skaber filen E00000001 osv. \tn % Row Count 12 (+ 4) % Row 4 \SetRowColor{LightBackground} {\bf{.jrs}} & 2 log filer er reserveret til nødsituationer. \tn % Row Count 14 (+ 2) % Row 5 \SetRowColor{white} {\bf{tmp.edb}} & Midlertidig database mellem .log og den rigtige database. \tn % Row Count 17 (+ 3) % Row 6 \SetRowColor{LightBackground} {\bf{.edb}} & Egentlig database. Kan blive stor. \tn % Row Count 19 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}