IIS Hardening

Hardening is one of the IT jargon that I have heard multiple times in my project but wasn’t clear what it does. Accordingly to my senior, it is to “harden” the system such that it is hard for hackers to penetrate. In short, for security purpose.

With that little understanding, I stopped asking because I knew it will open another can of jargons which will confuse me further.

In reality, we do not have the luxury of time to learn at our own pace. Hence I was tasked to start hardening for our servers with documentation and the help of our seniors.

It took me around 4 hours to complete the first server. A lot of errors, clarification and screenshots. We have like 10+ machines and only two of us doing over the weekend! I practically turned into a human robot, using 3 screens and speed up hardening time to 2 hours per server, then 1 hour, then less than an hour. To be honest, I do not know exactly what I did, I just executed the commands in the fastest possible human way.

It was a horrible unproductivity experience for me.

I knew there must be a better way. I do not believe there is no faster solution for a industry standard hardening practices.

So I Googled “IIS hardening script” and found a website that has PowerShell scripts for all the hardening steps. I’m excited and wary at the same time because the script might be blocked or has a lengthly process to get it approved.

I knew there are a lot more servers coming up for hardening so I had to find the solution soon. I put my concern aside and approached my senior, shared my idea and suggested we work together to develop this hardening solution.

As I am about to begin, I had an opportunity to chat with a person from another company who is in the same project. I causally asked if he has any “cheat code” to get the hardening done faster. And he said yes! I’m fired up and grabbed him to show me the steps!

He explained that the hardening remediation was saved in a config file named, ApplicationHost.config. Conceptually we just need to harden one server, copy its ApplicationHost.config and paste it into the next server. Of course not as simple as copy and paste the entire file. Only remediation related portion.

There are a few more steps to it, but I am going to stop here. I wrote this to document my learning journey, not a tutorial lah.

Btw I just learnt this method yesterday, but a have another ultimate goal which is using CHEF to push out IIS Hardening remediation to all the servers! Dream big ya!

Lastly I want to share a video about Windows and Linux OS Hardening. Quite educational.

My Thoughts

2026 · 10 New Apple TV with Siri AI? No thanks 2026 · 10 It's just business 2026 · 10 A post from Claude app 2026 · 09 Happy birthday to me 2026 · 07 “Free iPad” after 201 days 2026 · 07 Bus filtering feature for my app 2026 · 07 Replacing a mixer tap 2026 · 07 Assume all medias are AI-generated 2026 · 05 Redesign ZheBus 2.0 with Claude Design 2026 · 05 Apple Fitness+
Show more 2026 · 05 Customizing my Obsidian 2026 · 04 Using AI to build utility app 2026 · 04 大山 2026 · 04 Exploring Obsidian again 2026 · 04 “I have plenty of time.” 2026 · 04 Vacuum storage bag 2026 · 04 AI for Grab 2026 · 04 Jensen Huang on Lex Fridman podcast 2026 · 04 The Shangri-La view 2026 · 04 My first automated posting workflow 2026 · 04 Migrate from Kirby to Jekyll 2025 · 08 Switching to Notion 2025 · 08 ZheBus 1.2 is live 2025 · 08 Live Activity submitted for review 2025 · 07 Damn it, Live Activity! 2025 · 06 Liquid Glass app icon 2025 · 06 Improving ads layout 2025 · 06 ZheBus is LIVE! 2025 · 06 My app got approved! 2025 · 05 How ZheBus got its name 2025 · 05 Paid app or show ads? 2025 · 04 Designing the bus icon 2025 · 04 Rebuild from scratch 2025 · 04 Competitive analysis 2025 · 03 Momentum gone 2025 · 03 Completing… 2025 · 02 The first screenshot 2025 · 02 My pain point 2025 · 02 Cursor 2025 · 02 Vibe coding 2025 · 01 Right or easy way 2024 · 10 Optimizing hospitalization experience 2024 · 10 First post on my new MBA 2024 · 09 Impulse buy 2024 · 09 My birthday wish 2024 · 08 I deleted singaporeofficespaces.com 2024 · 03 Bad month 2024 · 03 96995110 Dishonest Carousell seller 2024 · 03 Life after quitting social media 2024 · 02 Social media automation 2024 · 02 I don't send birthday wishes 2024 · 02 Confrontation 2024 · 02 Leecher 2024 · 02 Free web hosting 2024 · 02 曾宝仪 2024 · 01 SiteGround replacement 2024 · 01 2024 Resolutions 2023 · 12 Huat Ah in funeral 2023 · 09 Monster Hunter Now 2023 · 08 Be the BMW 2023 · 05 Why the rush? 2023 · 04 Whatever 2023 · 04 Overnight Oats 2023 · 01 2023 Resolutions 2022 · 10 Learning Machine Learning 2022 · 09 AWS Certified Cloud Practitioner 2022 · 08 IIS Hardening 2022 · 08 Job alert script 2022 · 07 My first batch script 2022 · 06 16:8 Diet 6 months later 2022 · 05 Keep trying 2022 · 03 SGUnited Mid-Career Pathways Programme 2022 · 03 I sold my FBRX shares 2022 · 03 Python course completed 2022 · 03 Pixel perfect 2022 · 03 Personality Test 2022 · 03 Breathless 2022 · 02 I got Covid-19 2022 · 02 My ideal automation project 2022 · 02 Found a better Python course 2022 · 02 Crash Course on Python 2022 · 02 Options trading final update 2022 · 01 Google IT Automation Professional Certificate 2022 · 01 2022 Nasdaq iCal Calendar 2022 · 01 I have no luck 2022 · 01 Options trading update #5 2022 · 01 2022 Resolutions 2021 · 12 Quality time 2021 · 12 Options trading update #4 2021 · 11 16:8 Diet 2021 · 11 Options trading update #3 2021 · 10 Distraction-free 2021 · 10 Life Point System 2021 · 10 Options trading update #2 2021 · 09 余世维 2021 · 09 Turning blue 2021 · 09 Semi-retire from social media 2021 · 09 Not so contactable 2021 · 09 Singapore bans Binance 2021 · 09 Teaching my son about money 2021 · 09 Worse trading nightmare 2021 · 09 40 2021 · 09 I'm a Transonic Achiever, so what? 2021 · 09 Options trading update #1 2021 · 08 Intensive learning 2021 · 08 NDP 2021 Theme Song – The Road Ahead 2021 · 07 Options trading 2021 · 07 Squared Online Digital Marketing Course 2021 · 07 Don’t bro me 2021 · 07 Discord is WhatsApp’s future 2021 · 07 Interactive Brokers 2021 · 07 Smoking cabin 2021 · 06 At my own pace 2021 · 06 A boss that cares 2021 · 06 Reduce social media consumption 2021 · 06 $90 for an app 2021 · 06 Developing an app from start to finish 2021 · 06 Blog 3.0 2021 · 06 ikigai 2021 · 05 Unwind 2021 · 05 Handful of friends 2021 · 05 Sold my car 2021 · 05 Tiger Brokers 2021 · 04 My perfectionism 2021 · 02 Keeping ahead by staying behind 2021 · 02 Birthday wishes on Facebook 2021 · 02 Selling Clubhouse invitation 2021 · 02 Hello world 2.0