The End of an Era: VBScript, WMIC, and the "Feature on Demand" Future of Windows Server 2025
For nearly two decades, the safety net of any Windows Administrator was the assumption that "it's just built-in." No matter how locked down a server was, you could always count on Notepad, Calculator, and the Windows Scripting Host (CScript/WScript) being there.
With the release of Windows Server 2025 last year, that assumption is officially dead.
Now that many organizations are moving past the "wait and see" phase and starting their upgrades, we are seeing the real-world impact of Microsoft's list of removed and deprecated features. If you are still relying on legacy scripts (and if you read this site, you probably are), here is what is breaking in production environments right now.
1. VBScript is now a "Feature on Demand" (FOD)
This is the big one. In Windows Server 2025, VBScript has been moved to a Feature on Demand status.
"VBScript is available as an FOD... before its removal from the operating system in a later release. As a replacement for VBScript, use PowerShell for automating tasks..."
What this means for you:
While it technically survives the upgrade, the "Feature on Demand" status is the waiting room for the graveyard. If you are building new server images today, your scripts simply won't run unless you explicitly add the legacy feature during your build process. If you use VBScript for login scripts or bootstrapping new servers, your automation now carries a dependency that isn't there by default.
2. WMIC is Deprecated (Use PowerShell CIM Instead)
Many of us didn't just write VBScripts; we wrapped command-line calls to WMIC.exe inside them. It was a quick and dirty way to get the serial number of a machine or kill a process.
"PowerShell for WMI replaces the WMIC tool."
If you have batch files or scripts that call wmic /node:ServerName, these are failing on clean installs of the new OS unless you manually add the capability back via DISM. It is time to replace those calls with Get-CimInstance.
3. The Silent Killer: SMTP Server is Removed
While everyone focused on VBScript, another change has been silently breaking old monitoring scripts. The SMTP Server feature has been moved from "Deprecated" to "Removed."
"Because SMTP Server features were removed from Windows Server 2025, there's no replacement within the operating system."
Why this matters:
Think back to 2008. How did we send alerts from VBScript? We used CDO.Message and often pointed it to the "Pickupt" directory or the local SMTP service to relay mail to Exchange. With the removal of the local SMTP Server role, any script relying on the local machine to act as a mail relay will fail immediately.
The "Archaeologist's" Roadmap
It is easy to get annoyed at Microsoft for moving the cheese, but maintaining 20-year-old code in a modern OS is a security nightmare. They are doing the right thing, even if it hurts.
Your action plan for this week:
- Audit for
CDO.Message: Search your script repository for email functions. If they rely onlocalhostfor SMTP, you need to rewrite them to authenticate against a real mail server (or use AWS SES). - Inventory WMIC calls: Look for
wmic.exein your scheduled tasks. These are easy wins to convert to one-liner PowerShell scripts. - Accept the "FOD" Reality: If you absolutely must keep VBScript for a legacy app, start updating your build images (or User Data scripts) to explicitly enable the VBScript capability. Don't assume it will be there.
- Get the Book: If you are still putting off learning the modern way, check out my book Pro PowerShell for Amazon Web Services. It helps with the transition from on-premise logic to cloud automation.
The tools we used to build our careers are being retired. It’s time we let them rest.
About the Author
Emmanuel Tsouris is a Systems Management veteran and Cloud Automation expert. If you are looking to bridge the gap between legacy scripting and modern cloud architecture, check out his book Pro PowerShell for Amazon Web Services.
Visit EmmanuelTsouris.com to see his latest projects.
As an Amazon Associate, I earn from qualifying purchases at no cost to you.
Comments