I'm sure this is a Windows 7 Security issue: We have a dedicated PC that plays our phone system hold music. Every hour it runs a VBS script to change the playlist in the PC's Startup folder and then a scheduled task to boot the PC. The boot task is working (a BAT file containing shutdown.exe with switches) but not the VBS script. It worked fine in WindowsXP but after replacing the machine with a Windows7 machine it only executes the first command in the VBS script. That is, it deletes the playlist shortcut (Windows shortcut to a WinAmp m3u) in the Startup folder but never writes the new playlist shortcut to the folder. I've already checked that all the vbs command lines use the same folder syntax, added both the vbs file and it's location folder to Microsoft Security Essentials exceptions and verified that hold-pc\admin2015 has full rights to the Startup folder (which had been Shared as part of troubleshooting to execute the vbs file from a different machine).
It works fine if I run the VBS by simply double-clicking it.
But if it's run by the Task Scheduler it only deletes the shortcut but never writes the new one to the Startup folder.