When deploying Windows VMs in Azure, we get the default settings. This means we get a 12-hour clock, standard UTC/Zulu timezone and such. For users like us in the Netherlands we want to change this but not by hand.
For this purpose I built this script. It sets the timezone for Western Europe and sets the clock to 24-hour system. It also does some bonusses like responding to ping and disabling the IE Enhanced Security as it’s mostly server focussed. We don’t change the Windows language and this stays English.
Table of Contents
- Where to download this script?
- What does the Initial server installation script do?
- Using the initial server installation script
- Summary
📖 Estimated read time: 4 minutes
🔄 Page last updated on: August 10, 2025 🆔 Post ID: 3616Where to download this script?
For the fast pass, my script can be downloaded here:
What does the Initial server installation script do?
The script itself has 6 steps:
- Ensuring it runs as Administrator
- Enable logging
- Saves a log file in the same directory and with 100KB limit
- Setting the timezone to Western Euopean time (Amsterdam time)
- Setting regional settings for 24 hours clock
- Disables IE Enhanced Security
- Enables response to ping for local networks
- Reboots the server
Using the initial server installation script
To use the script, we must first download it from the Github page:

Click on “Code” and then “Download ZIP”.
Now place the script on the machine where it must run, If not already done so.
To run this in the most user-friendly way possible, open the PowerShell ISE as administrator:

Type in your credentials and advance.
Now open the script by using the “Open” function:

Before we can run, we must change the Powershell Execution policy temporarily. We can do this by typing the command in the blue window below:
Set-ExecutionPolicy Unrestricted -Scope ProcessThis way the execution policy stays enabled but for this session only it’s been lowered. When you close the window, you have to type this again before be able to run scripts.
Execute the command, and when prompted to lower the policy, click Yes.
Now we are ready to execute the script. Double check the parameters section (Line 13 to 18) of the script to ensure this complies with your desired settings.

Then run the script:

This shows that the script runs and sets every setting correctly. After running correctly, the server will instantly reboot to apply all settings:

Summary
This is a great script to use for installing Windows Servers on initial. These are some settings we must do by hand normally but we can now to with a simple script. Also setting the correct timezone can sometimes be stupid as the timezone may roll back to the Azure default. This script ensures this doesn’t happen.
Thank you for reading the post and I hope the script is useful.
Sources
These sources helped me by writing and research for this post;
- https://learn.microsoft.com/en-us/windows/win32/intl/table-of-geographical-locations
- https://learn.microsoft.com/en-us/powershell/module/international/set-culture?view=windowsserver2025-ps
- https://learn.microsoft.com/en-us/powershell/module/international/set-culture?view=windowsserver2025-ps
End of the page 🎉
You have reached the end of the page. You can select a category, share this post on X, LinkedIn and Reddit or return to the blog posts collection page. Thank you for visiting this post.
- Azure Master Class (12)
- Azure Virtual Desktop (20)
- Flying (15)
- Intune (5)
- Microsoft 365 (12)
- Microsoft Azure (29)
- Microsoft Defender XDR (4)
- Microsoft Entra (9)
- Networking (5)
- Powershell (19)
- Uncategorized (1)
- Windows 365 (3)
- Windows Server (12)
If you think something is wrong with this post or you want to know more, you can send me a message to one of my social profiles at: https://justinverstijnen.nl/about/
The terms and conditions apply to this post.
Page visitors: No page-counter data available yet.
0 Comments