Microsoft

Microsoft To Depreciate VBScript In Windows Warns Developers To Adapt Their Projects

Microsoft has officially announced a multi-phase plan to deprecate VBScript in Windows, a move that signals a significant shift for developers, particularly those working with Visual Basic for Applications (VBA).

The change, first detailed in May 2024, will gradually phase out the legacy scripting language, requiring developers to adapt their projects to ensure future compatibility.

This decision primarily impacts VBA applications that rely on VBScript for functionalities like executing external scripts or utilizing reference libraries, such as the widely used VBScript.RegExp for handling regular expressions.

As Windows evolves, developers are being urged to prepare for a future without VBScript.

The Three-Phase Deprecation Timeline

Microsoft has outlined a clear, three-stage process for retiring VBScript. The first phase, currently active and expected to last until at least 2026, treats VBScript as a “Feature on Demand” (FOD), meaning it remains enabled by default, and existing VBA projects will continue to function without interruption.

In the second phase, projected to begin around 2027, the VBScript FOD will be disabled by default. While administrators will still have the option to re-enable it, this marks a critical point where un-updated applications may begin to fail.

The final phase, with a yet-to-be-determined date, will see VBScript completely removed from all future Windows releases, making any remaining dependencies obsolete.

The deprecation will affect VBA projects in two primary ways. First, any code that calls and executes external .vbs files will no longer be supported once VBScript is disabled or removed.

Second, and more critically for many, references to the VBScript type library for regular expressions will break.

This has been a common method for developers to implement pattern matching and text manipulation within Office applications like Excel, Word, and Access.

Without proactive changes, these essential functions will cease to operate in newer Windows environments, potentially crippling complex macros and automated workflows that depend on them.

Future-Proofing With Integrated RegExp

To address this, Microsoft has integrated RegExp classes directly into the VBA runtime library, starting with Microsoft 365 Version 2508 (Build 19127.20154).

This update allows developers to use regular expressions natively without referencing the external vbscript.dll.

The new implementation supports both early binding (Dim regEx As RegExp) and late binding (CreateObject("VBScript.RegExp")), ensuring that updated Office versions can run scripts seamlessly, even on future Windows versions where VBScript is absent.

Microsoft strongly recommends that developers upgrade to the latest Office build, begin using the new integrated RegExp classes in their macros, and thoroughly test existing projects to identify and resolve any lingering VBScript dependencies.

Find this Story Interesting! Follow us on Google NewsLinkedIn, and X to Get More Instant Updates.

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

4 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

6 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

6 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago