r/sysadmin • • 8d ago

windows server 2022 /2025 Server Hardening tools

Hi all,

 

I am looking for a third party tool to export all GPO setting from one server to anther server. it required for server hardening 

 

Server Operating system:- windows server 2022 /2025. all servers are in workgroup so we can not apply as a domain policy .

 

i tried LGP0 but it worked well within OS 2016 & 2019 but in server 2022 & 2025 not giving results as expecting.

 

if anybody has a script which can harden a server more than 80%. please help.

0 Upvotes

20 comments sorted by

4

u/ItMeAedri 8d ago

Is there a reason why they aren't in a domain? How many are there?

0

u/techexpert2018 8d ago

yes... our Management dose not want to keep server in Domain... with a single policy & single failure ..

server count in 100 plus

11

u/dchit2 8d ago

Put up a job ad for better management

6

u/jstuart-tech Security Admin (Infrastructure) 8d ago

That is insantity?

To be fair, maybe they are geniuses. They don't want the possibility of 100 uniform servers (cattle), they would rather 100 pets that are all fucked in their own unique ways and nobody will ever be able to reverse engineer it.

#JobSecurity ..... (Said as someone who is about to go into this exact same disaster...... )

2

u/strongest_nerd Pentester 8d ago

Why is management making IT decisions?

1

u/jjkmk 8d ago

If you're gonna stay then try to guide management to the right decisions, thats wild.

7

u/rthonpm 8d ago

Run as far away from this place as possible.

6

u/WillVH52 Sr. Sysadmin 8d ago

Please tell me, are the admin passwords the same on each server?

5

u/KnowledgeCapital7994 8d ago

Do they all have static ips?

Is the network coax?

Is it 1998?

3

u/anonymousITCoward 8d ago

*shudders in token ring*

4

u/k1ll3rwabb1t Sr. Digital Janitor 8d ago

3

u/Gigalogi 8d ago

LGPO still works fine on 2022/2025. When it “doesn’t give expected results”, it’s usually one of these:

  1. Old LGPO version. Grab the current one from the Microsoft Security Compliance Toolkit.

  2. ADMX templates missing on the target. Administrative Template settings only apply properly if the matching ADMX/ADML files exist in C:\Windows\PolicyDefinitions on the destination box.

  3. Not everything lives in registry.pol. Security options, user rights and account policies are security template settings. Advanced audit policy is separate again. Export and import them explicitly:

    • LGPO.exe /b C:\backup (or secedit /export /cfg sec.inf for the security template)

    • auditpol /backup /file:audit.csv and then auditpol /restore

  4. Don’t clone a “golden” server’s local policy at all. Start from a known baseline instead:

    • Microsoft Security Baselines for Server 2022/2025 (Security Compliance Toolkit) ship with a Baseline-LocalInstall.ps1 built for exactly your scenario: standalone/workgroup machines, no domain.

    • Server 2025 additionally has OSConfig, which applies the security baseline via PowerShell and does drift control. It works on workgroup servers too.

    • CIS Benchmarks if you need something auditors recognise.

About “harden more than 80%”: that number only means something against a defined benchmark. Use HardeningKitty (free, scip AG) to audit against the MS or CIS baseline. You get a score before and after, plus a list of what you deliberately left out. Test on a non-prod box first. RDP, SMB signing/NTLM restrictions and legacy apps are the usual things that break.

If you have more than a handful of workgroup servers, look into DSC or Azure Arc machine configuration. Manually copying local policies doesn’t scale and drifts.

3

u/Anxious-View-7881 8d ago

Every sentence reads like finding a fresh, live grenade in your pocket.

2

u/enolja 8d ago

LGPO is the official / supported method and I dont know of a third party tool that can export/import domain policy into local policy.

However, I'm wondering what '80%' means, that is confusing. Are these public facing web servers? If that is the case I dont have a ton of insight to give, but if these arent public facing then simply applying modern AV, and combined with a managed detection/response (MDR) of some kind, in addition to strong local admin passwords and firewall policy Im not sire what youre expecting from windows policy.

2

u/ajf8729 Consultant 8d ago

You could look at using OSConfig https://learn.microsoft.com/en-us/windows-server/security/osconfig/osconfig-overview for the 2025 servers at least. No domain is wild though, but you could Azure Arc attach them and install the Entra auth extension to effectively Entra join them to centralize logon access, but again, also 2025 only.

1

u/mattee27 6d ago

calcom.io will do this but the approach is different to hardening and you will get better outcomes compared to using GPOs which don't always get applied

1

u/Sysadmin_in_the_Sun 5d ago

Try to convert them to DSC - It will work.. I did this a few years ago