VBScript Deprecation and Shortcuts

I note that v4 of the ADT implies that all vbscript code has been removed, however when reviewing functions in PSAppDeployToolkit.psm1 there still appears to be multiple references to wscript including the shortcut creation function: Set-ADTShortcut

Is anyone able to clarify what is meant by removing of VBScript code and whether wscript would be affected when VBScript is deprecated?

The WScript COM interface isn’t going anywhere, just the ability to run .VBS files.

2 Likes

I had a similar concern when VBScript removal was announced, but found the WScript object model was still intact after removing VBScript from a Windows 11 Insider build. If things change then we can investigate an alternative method to creating the shortcuts.

1 Like

I already plan on an alternative solution for how we do shortcuts, but I’m waiting on All COM interface methods seemingly return `void` instead of `HRESULT`. · Issue #1409 · microsoft/CsWin32 · GitHub to be resolved first.