limit the argument length for the input to windows scheduler task

A

abhinav bansal

Hello All,

I have created a windows scheduler task which would be triggered from an eventlog event. this task invokes a vbscript and passes the value of Event/EventData/Data as parameter to the vbscript. when I am getting a small entry in the data the script is working fine. But, when I get a lot of characters in the data it errors out as "Task Scheduler failed to retrieve the event triggering values for task".

I suspect this is due to the length of the data field. So, wanted to know is there a way to limit the character length to be passed as parameter to the VBscript?

I am using the below link as reference to pass the parameter to the script:


Continue reading...
 
Back
Top Bottom