Schedule Task (Windows 2012) run wheter user is logged on or not and vbscript with CreateObject(COM object)

Hi

I Scheduled a batch file that contains C:\Windows\SysWOW64\WScript C:\MyScript.vbs

Runs fine as Domain\Administrator when job is confirgured for "Run only when user is logged on"

But when configured as "wheter user is logged on or not" the batch file starts, CSCRIPT.exe (or WSCRIPT.EXE) starts but remains as a running process. The program the VBS instanciated does not start (it does nt show in the process) will it does start when "Run only when user is logged on"

System log shows:

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID

{D63B10C5-BB46-4990-A94F-E40B9D520160}

and APPID

{9CA88EE3-ACB7-47C8-AFC4-AB702511C276}

to the user NT AUTHORITY\SYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.

{D63B10C5-BB46-4990-A94F-E40B9D520160} was not found in the component Services

If I replace the code in the script to launch Notepad.exe I cann see Notepad in the processes.

But if the script issues a CreateObject()

Dim Signon
Dim SignonID
dim strCommand
Set Signon = CreateObject("A4wSignonMgr.AccpacSignonMgr")
SignonID = Signon.RegisterSignon(...)

The object does not open (not process shown in task manager. But it does show when  "Run only when user is logged on"

Any idea ?

April 29th, 2015 2:20pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics