Unable to open dialog. A necessary script
component could not be initialized. Most likely, VBScript is not enabled on
your machine due to Microsoft's plan to deprecate the script. For more information on
Microsoft's deprecation timeline, see the Windows IT Pro Blog. To address this issue, you must enable the VBScript optional component on your machine.
DISM /Online /Get-CapabilitiesIf
VBScript is not enabled, the status is VBSCRIPT~~~~State:
Not Present.
DISM /Online /Add-Capability /CapabilityName:VBSCRIPT~~~~
This process may take several minutes to complete.
VBSCRIPT~~~~State: Installed.