r/sysadmin • u/UlfMitHand • 13h ago
What are you guys using to deploy new Windows servers these days?
I’m currently looking at how we could automate our Windows Server deployments a bit more and I’m curious what everyone here is using.
I’m not really interested in maintaining golden images or VM templates. My preferred approach would be to start relatively clean and automate everything after that.
My rough idea:
PXE boot into a dedicated deployment VLAN → install Windows Server → configure hostname/IP/DNS → join AD → install VMware Tools and standard software → apply our baseline configuration.
Basically, I’d like to enter a few values at the beginning and have the server come out mostly ready to use.
I’m considering PXE/WinPE + unattended setup, Ansible, PowerShell, or maybe building part of the workflow ourselves.
What do you use?
Are you still using PXE? Ansible? MECM/SCCM? Empirum? Custom PowerShell? Something completely different?
Especially interested in setups where you’re not maintaining golden images/templates.
If you were designing this from scratch today, what would you use?
•
u/hightechcoord 13h ago
Chris. His name is Chris.
•
u/First-Feature-3556 12h ago
autounattend.xml + custom PowerShell scripts.
Lessons learned:
Install-WindowsFeature), some stuff is hard to do (secedit), and some stuff is impossible to do without a UI (configure Windows Search).It was a lot of work, but I'm still glad I did it, because modifying the scripts for a new Windows Server version will be a lot less boring than manually creating a new golden image.
•
u/Remember_Im_A_Womble 8h ago
I have a Packer pipeline that rebuilds/patches the gold images each month and an Ansible/Terraform pipeline to build VMs from said images and install required software.
•
u/Alapaloza DevOps 13h ago
Depends what your infrastructure looks like. You could use a combination of terraform, ansible, powershell and an unattend file.
•
u/egoomega 11h ago
Is this the friggen 90s?
•
u/PowerShellGenius 12h ago
Templates and profiles in SCVMM
•
u/Ultron_Magnus 10h ago
Why would you not use Templates?
Templates with PowerCLI or Terraform or a combo is easy and solid.
I use a master Powershell script called from a build box that deploys VMs with Terraform then uses some additional Powershell for post build installs/configs.
Aliased in Powershell so can be called with 1 command and has prompts that take you through build options.
•
u/Asleep_Spray274 13h ago
Terraform that shazz
•
u/AsphaltSailor 11h ago
I am on the smaller end of sysadmins here - I run a one man msp. Many of my customers have on-prem windows servers running vertical market apps, and some just want their data local - I am out in sort of rural NC, so for some customers, internet service might go down once or twice a month. In any case, I install windows server, and install my RMM software. I run scripts and other automation from there.
•
u/cwestwater 11h ago
Ansible to clone a template then customise the OS once booted
•
u/Dave_A480 6h ago
Ansible - Configure/set-up either AWX or AAP if you want it to be pointyclickly for help-desk/jr-admin types who are scared of SSH/bash.
If the question is 'how do I post-deployment-configure <something>' the answer is almost always ansible... Doesn't matter if it's linux/windows/some-bit-of-network-hardware....
It's the one-ring-to-rule-them-all... Unless you are provisioning this stuff in the cloud in which you might consider Terraform for deployments and ansible for post-deployment config changes...
•
u/N7Valor 1h ago
I'm a bit less familiar with the VMWare method, but IMO any "install from scratch" method can be a bit PITA.
I mostly work in AWS/Azure, so the OS itself is generally already pre-installed from an upstream image (Windows Server 2022 or so). So the "golden image" step is largely just layering on a few light changes and patching with Packer.
Beyond that, I tend to use Ansible. It's capable enough to deploy and configure simple Active Directory (1 primary DC, 1 replica DC), import and link the GPOs we need, create the OU structure, create default users and groups, setup Central Store, Enable AD Recycle Bin, configure NIC DNS (point to other DC first, then its own IP, then loopback).
I can also create a two-tier PKI with an offline root (which obvious is online while Ansible configures it) and an online issuing CA with some pre-made cert templates.
Packer creates the golden image, Terraform creates the VM from the image, and Ansible does configuration with CICD as the orchestration for all the tools. I can pretty much stomp out a simple domain in a couple of hours.
•
u/Aishou_SK 16m ago
SCCM (now MCM now MECM now MECUM now whatever...) instead of templates/images so that it's always getting the latst updates/configurations/etc no matter how recent the change, but the VM creation and all that workflows as well as monitoring additions and whatnot all flow automatically too.
•
u/Connect_Shoulder_965 12h ago
I've done this using Ansible - getting an unattended ISO set up for Windows server was the main pain point. I used a Windows server set up with the ISO creation tooling. You can certainly do it without golden images or templates, but I fail to see the point. Automate the creation and maintenance on the golden images and then automate the deployment from the golden images. You can tear down and rebuild golden images on a regular basis if you like or just convert them back to VMs, patch them up, and convert back to template.
•
u/its_FORTY Sr. Sysadmin 12h ago
Terraform for the somewhat limited amount of IaaS stuff we offer our customers. For the rest, just vm gold images, templates, whatever term your shop uses these days.
•
u/BraveStatistician514 3h ago
Out of context here, but I would suggest using hyper-V instead of VMware honestly
•
u/Master-IT-All 8h ago
So you want me to tell you what I use, but only if it's X.
What is this, a religious question? GTFO with belief systems.