Schedule Task to trigger Word for Convert -- Memory Increased to unlimited

L

Lao Di

Machine Type: Windows Server 2016 VM

Office Tool Used: Microsoft Office 2016 Pro -WORD

Purpose: Convert Doc(x) in background job

RELATED CODE:

Add-type -AssemblyName Microsoft.Office.Interop.Word
$global:wdApplication = New-Object -ComObject "Word.Application"

Problem:

When I schedule it as Job or task (not interactive), the RAM of WINWORD processing will be increased to unlimited and machine will be crashed

Is the program error? -- normally no.

When schedule it as task, and use interactive (Powershell) in Principle, it works properly -- In other words, only when people login, the task will be triggered, this is not what we really want

Continue reading...
 
Back
Top Bottom