Monday, 27 March 2017

Latest Windows 1607 update (KB4015438) breaks MPI Tool Kit (and VBScript)!

If you use the MPI Tool Kit CreateDesktopShortcuts.cmd file with Windows 1607 or later, it no longer creates valid Desktop shortcuts!

I updated to 14303.3.969 from 14303.3.0 using KB4015438 and now the same vbscript fails!
So KB4015438 has broken vbscript!!!

The problem appears to be in the VBScript file. Microsoft seem to have broken something!

The code that is not working reads the .lnk shortcut file on the Desktop, changes one byte (for 'run as Admin') and then writes back the .lnk file. This code now does not seem to work and causes the file contents to be corrupted!

I have tried alternative methods but so far have not found a solution.

StopPress: I couldn't find a fix in vbscript, so I have worked around it another way! This issue should be fixed in MPI v0.073.