Skip to content

Instantly share code, notes, and snippets.

@jorritfolmer
Last active December 30, 2021 09:18
Show Gist options
  • Save jorritfolmer/b3bdbf3d82e51be4de508dd4ed6b3509 to your computer and use it in GitHub Desktop.
Save jorritfolmer/b3bdbf3d82e51be4de508dd4ed6b3509 to your computer and use it in GitHub Desktop.
Installing an offline lab with Windows Server 2019 AD, Windows 10 Pro and Office from scratch

Offline Windows lab from scratch

  1. Windows 2019 domain controller
  2. Windows 10 Pro domain joined workstation
  3. Creating Microsoft Office offline DVD image
  4. Installing ISO on Windows 10 Pro

1. Installing a Windows 2019 domain controller

This is a condensed version of https://petri.com/how-to-install-active-directory-in-windows-server-2019-using-powershell

  1. Assign static IP, and use this as the primary resolver
  2. Start Powershell, Run as Admin
  3. Rename-Computer -NewName dc01
  4. Reboot
  5. Start Powershell, Run as Admin
  6. Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools
  7. Install-ADDSForest -domainname blue.internal -domainnetbiosname blue -installdns
  8. In an isolated environment, prepare to wait a few minutes after reboot while the resolver tries to unsuccessfully contact the DNS root servers.

2. Joining Windows 10 Pro to domain

  1. Make sure DNS points to DC01
  2. Start Powershell, Run as Admin
  3. Rename-Computer -NewName ws01
  4. Reboot
  5. Start Powershell, Run as Admin
  6. Add-Computer -domainname blue.internal

3. Creating Microsoft Office offline ISO

  1. Download Office Deployment tool https://www.microsoft.com/en-us/download/confirmation.aspx?id=49117
  2. Install Office Deployment Tool in c:\temp\o365offline
  3. Create c:\temp\o365offline\config.xml:
    <Configuration>
      <Add OfficeClientEdition="64">
        <Product ID="O365BusinessRetail">
          <Language ID="en-us" />
        </Product>
      </Add>  
    </Configuration>
    
  4. Start cmd.exe
  5. In c:\temp\o365offline, run: setup /download config.xml
  6. Look at network performance in taskmanager to confirm downloading is in progress
  7. In MacOS use Disk Utility to create o365offline.cdr from c:\temp\o365offline directory
  8. hdiutil makehybrid -iso -joliet -o o365offline.iso o365offline.cdr

Installing Office from Offline DVD ISO

  1. Start cmd.exe
  2. in D:, run: setup /configure config.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment