I have a vbs script that opens Excel and runs a vba script. It works fine on Windows 7, both when run manually and as a task in Task Scheduler. It works fine when run manually on Server 2008 but when I run it as a scheduled task, it hangs. I added some rudimentary logging to the vbs file and it appears to hang as soon as the vba script is run. Excel is (apparently) opened fine.
I have already:
- Chosen the correct directory for "Start in"
- Chosen "Run with highest privileges"
- Added the "Desktop" folder to C:\Windows\SysWOW64\config\systemprofile
- Made sure the user that the task is set to run as has full access to all of the files and folders touched by the script.
- Tried all possible variations of this: Task Scheduler running but not finishing or working properly VBscript
- Set to "Run whether user is logged in or not"
(note: before adding the desktop folder the task "ran" successfully but didn't actually do anything it was supposed to)
Any ideas?