Skip to main content

Veeam Windows Hardening Script - one-click hardening with CIS contents

  • December 16, 2024
  • 41 comments
  • 3403 views

Show first post

41 comments

  • Comes here often
  • May 29, 2025

Great script ​@lukas.k!  I’m testing it now and it works great.

Question: When configuring Veeam software, like B&R, is it best practice to use your local admin account as the account to manage the server (both Windows and B&R), and configure the service account user as a “service account” in B&R and disable MFA for that user?


Link State
Forum|alt.badge.img+11
  • Veeam Legend
  • May 29, 2025

i love CIS thing 😋


matheusgiovanini
Forum|alt.badge.img+8

This is awesome!


lukas.k
Forum|alt.badge.img+13
  • Author
  • Influencer
  • May 30, 2025

Great script ​@lukas.k!  I’m testing it now and it works great.

Question: When configuring Veeam software, like B&R, is it best practice to use your local admin account as the account to manage the server (both Windows and B&R), and configure the service account user as a “service account” in B&R and disable MFA for that user?

Absolutely not. The goal is to split the Windows layer from the Veeam layer as best as you can so I never configure local admins to have any right within Veeam.

In case an attacker gets access to your Windows OS (which can be quite easy) the attacker would also have right within Veeam and that’s what we try to avoid.


  • Comes here often
  • May 30, 2025

Thanks ​@lukas.k!  For your tips and the scripts!!


dips
Forum|alt.badge.img+7
  • On the path to Greatness
  • June 2, 2025

Awesome job ​@lukas.k 😀


  • Comes here often
  • June 10, 2025

Has anyone used this on a backup proxy?  I’m running into issues where after backing up 3 or 4 machines, the Veeam Service account on my backup proxy is locking out.  Once I unlock it, I can retry the job and it runs for another few machines (the ones that failed originally) and then locks again.  Can’t figure this out.


lukas.k
Forum|alt.badge.img+13
  • Author
  • Influencer
  • June 10, 2025

Has anyone used this on a backup proxy?  I’m running into issues where after backing up 3 or 4 machines, the Veeam Service account on my backup proxy is locking out.  Once I unlock it, I can retry the job and it runs for another few machines (the ones that failed originally) and then locks again.  Can’t figure this out.

I did multiple times but without issues so far.

Since when does this occur? From the beginning on after using the script?

 

And did you run the script on a clean installation?


  • Comes here often
  • June 10, 2025

Weird.  Yes, this was a brand new Server 2025 install.  VMware VM, installed the OS, ran Windows Updates, installed Duo, then ran the script.  Then installed the proxy and started using it.


lukas.k
Forum|alt.badge.img+13
  • Author
  • Influencer
  • June 10, 2025

Weird.  Yes, this was a brand new Server 2025 install.  VMware VM, installed the OS, ran Windows Updates, installed Duo, then ran the script.  Then installed the proxy and started using it.

Will try to find out the cause, please keep me updated in case you find something out.

I’m currently trying to reproduce the error.


  • Comes here often
  • June 13, 2025

Hey ​@lukas.k.  Your instructions recommend installing VBR and specifying the service account during the install, yet the Veeam Security and Compliance check complains when services are not running as LOCALSYSTEM and this is listed on their site:

  • For security reasons, the account used to run Veeam services should be a LocalSystem account. If a Veeam service runs under a user account other than LocalSystem, this user will have full access to the Veeam Backup & Replication console even if they are not specified in the Users and Roles > Security settings.

 

Why do you recommend running the services as the created service account?


  • Comes here often
  • June 14, 2025

@lukas.k - No need to respond.  I found your question/answer on the R & D Forums.  Great explanation:

Security Guideline - Service Account usage - R&D Forums


  • New Here
  • September 5, 2025

Hi ​@lukas.k - thanks so much for the incredible work, as it must haved consumed your life for a while there!

When a tried to run (as admin) the script on a brand new WS2025, I have the following syntax error:

 

Powershell version has been updated to v7.

Am I missing something?

Thank you!

 


lukas.k
Forum|alt.badge.img+13
  • Author
  • Influencer
  • September 5, 2025

Hi ​@lukas.k - thanks so much for the incredible work, as it must haved consumed your life for a while there!

When a tried to run (as admin) the script on a brand new WS2025, I have the following syntax error:

 

Powershell version has been updated to v7.

Am I missing something?

Thank you!

 

Hi ​@mt_spinau,

Do you run this on Windows Server Core? In case yes - I’ve never tested this.

Do you have all windows updades installed? I ran into some issues after not installing them.

What about the execution policy, what’s the status?

 

I’ve never notices this issue before but let’s figure it out!

 

Best

Lukas


  • New Here
  • September 8, 2025

Hi ​@lukas.k - thanks so much for the incredible work, as it must haved consumed your life for a while there!

When a tried to run (as admin) the script on a brand new WS2025, I have the following syntax error:

 

Powershell version has been updated to v7.

Am I missing something?

Thank you!

 

Hi ​@mt_spinau,

Do you run this on Windows Server Core? In case yes - I’ve never tested this.

Do you have all windows updades installed? I ran into some issues after not installing them.

What about the execution policy, what’s the status?

 

I’ve never notices this issue before but let’s figure it out!

 

Best

Lukas

Hi Lukas,

Running the Server full Desktop mode, and also with the latest updates.

Running unsigned scripts has been enabled.

Apart from the above, it’s pretty much greenfields.

Thank you Lukas, I will persevere to see whether I can overcome this error.

 

Michael.


lukas.k
Forum|alt.badge.img+13
  • Author
  • Influencer
  • September 8, 2025

Hi ​@lukas.k - thanks so much for the incredible work, as it must haved consumed your life for a while there!

When a tried to run (as admin) the script on a brand new WS2025, I have the following syntax error:

 

Powershell version has been updated to v7.

Am I missing something?

Thank you!

 

Hi ​@mt_spinau,

Do you run this on Windows Server Core? In case yes - I’ve never tested this.

Do you have all windows updades installed? I ran into some issues after not installing them.

What about the execution policy, what’s the status?

 

I’ve never notices this issue before but let’s figure it out!

 

Best

Lukas

Hi Lukas,

Running the Server full Desktop mode, and also with the latest updates.

Running unsigned scripts has been enabled.

Apart from the above, it’s pretty much greenfields.

Thank you Lukas, I will persevere to see whether I can overcome this error.

 

Michael.

Hi Michael,

 

Please message me directly (private message in this forum) to contact me. You seen to be the first one with this issue, so I could offer a more direct “support” by direct message.

 

Did you change anything in the script?

 

Best

Lukas