03-01-2017 07:01 PM - edited 03-01-2017 07:04 PM
We have a VBScript adapted from the documentation that publishes all of the Report Templates (MS Word) in an environment. This worked well on Windows Server 2003 both manually and as scheduled task. We upgraded to Windows Server 2012 and the VBScript stopped working as a scheduled task even though it still worked manually. This appeared to be bug with Hopex. However, it is actually two problems, a bug in Hopex and a security feature in Task Scheduler.
The bug in Office is fixed by doing the following.
Add this folder:
C:\Windows\System32\config\systemprofile\Desktop
On 64bit Windows, also add this folder:
C:\Windows\SysWOW64\config\systemprofile\Desktop
In Task Scheduler, the task must be configured as a “Windows Server 2003, Windows XP, or Windows 2000” task. It appears that this can only be done when you first create the task.