this post was submitted on 02 Aug 2023
1540 points (97.0% liked)

Programmer Humor

19463 readers
156 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] heimchen@discuss.tchncs.de 16 points 1 year ago (3 children)

Someone told me that windows server UI interface has more options than CLI. I got scared of windows server (how do you repeatedly Setup the same server, with a screenshot documentation ???)

[–] egonallanon@lemm.ee 13 points 1 year ago (1 children)

It's been a while since I've found that true. You can do everything you want to do in powershell now days.

[–] ludwig@lemmy.world 3 points 1 year ago

Yeah, I think MS started adding PowerShell for everything after server 2012 R2.

[–] Aux@lemmy.world 5 points 1 year ago

First of all, most Windows settings are in the registry, so you don't have to go to the UI, you can just upload new settings straight into the registry through CLI.

Second, PowerShell exists and it's awesome!

And third, you can always use UI automation tools if you're bad at registry and PowerShell. Just record your session and run whenever needed.

[–] Toribor@corndog.social 4 points 1 year ago (1 children)

Newer versions of Windows can give you the exact Powershell code it's executing based on what you've configured in the gui. This is still extremely inconsistent across Windows services though. I don't know that I'd feel comfortable running a headless windows server yet. Too much stuff still assumes you'll use the gui for most things.

[–] hemko@lemmy.world 5 points 1 year ago* (last edited 1 year ago) (1 children)

To be honest, if you really need Windows servers you should run core if possible. Basically all Microsoft's management shit can be run remotely from your jump/management host. That said a lot of shit requires gui and refuses to run on core, like adsync

[–] SeeJayEmm@lemmy.procrastinati.org 3 points 1 year ago (1 children)

Is there a significant performance difference? I'm assuming the attack surface is lower.

[–] hemko@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

There's slight difference in resource usage of course, which does scale if you're unlucky enough to have lot of them.

Minimum ram required is 512mb for core, 2gb for desktop experience so we can safely assume keeping the gui usable eats some 1.5gb memory. 500 servers adds some 750gb overhead in theory.

Then there's of course the fact that less bloat will generally add up to less problems. Ever rdp to a server and start menu refuses to open or other weird gui shit. That's just wasting your time.