Applies to: Docklight / Docklight Scripting V2.4, Article ID: dl_prb067
On fresh installations of Windows 11 version 24H2, Microsoft no longer enables the ‘VBSCRIPT’ Windows Feature by default, contrary to their original roadmap announcement.
Docklight Scripting requires the VBSCRIPT module as scripting engine, but also the (non-scripting) Docklight utilizes this standard Windows component for some internal functions. This can cause the application to crash when accessing features that rely on it.
To resolve this, you must manually re-enable the VBSCRIPT feature. You can use either the command line or the Windows Settings interface.
Method 1: Using Command Prompt
Open a Command Prompt or PowerShell with administrative privileges and execute the following command:
dism /online /add-capability /capabilityname:VBSCRIPT
Method 2: Using Windows Settings
Use Windows Settings:
1. Open the Settings app by right-clicking the Start Menu and selecting ‘Settings’.
2. Navigate to ‘System’ and then click on ‘Optional features’.
3. Click the ‘View features’ button next to the ‘Add an optional feature’ option.
4. In the search box, type “VBSCRIPT” to find the feature.
5. Select the checkbox next to VBSCRIPT, then click ‘Next’ and ‘Install’ to add the component.
After using either method, restart Docklight. The application should now function correctly.
Outlook:
We are actively working to reduce this dependency. A future Docklight update will ensure that the VBSCRIPT component is only required for running Docklight automation scripts (.pts file). Core application features will be updated to operate without needing this optional Windows component installed.
Microsoft Blog: VBScript deprecation timelines and next steps