PluginsOCSInventory-NG / scheduledTasks

Retrieve scheduled tasks
GNU General Public License v2.0
1 stars 3 forks source link

windows 11 client block #11

Open bud4 opened 10 months ago

bud4 commented 10 months ago

when it runs under the windows 11 operating system blocks the client. CPU runs at 100%. it loops and creates a huge temp file.

gillesdubois commented 10 months ago

Hello,

We are using this following command to get the scheduled tasks : schtasks /query /FO CSV /v /NH

Is the problem the same if you run the command manually (in an admin powershell / cmd)

Regards, Gilles DUBOIS.

bud4 commented 10 months ago

hi @gillesdubois I think the problem only occurs when powershell and vbs scripts are run as user : System . In fact, if I run scheduledtasks.vbs with my user the problem does not occur.

bud4 commented 10 months ago

LISTTASKANSI.txt.tar.gz @gillesdubois update if i run under user system go in loop . i must kill the process cscript. A large sparse file LISTTASKANSI.txt (48M) is created under C:\Windows\SystemTemp .
hexdump -c LISTTASKANSI.txt 0000000 \r \n \r \n \r \n \r \n \r \n \r \n \r \n \r \n * 2f97500 \r \n \r \n
2f97504

gillesdubois commented 10 months ago

Hi,

I wonder how many tasks you have configured on your system. Could you try to check ?

A 48M text file must contains thousand of lines.

Regards, Gilles DUBOIS.

bud4 commented 10 months ago

@gillesdubois I practically haven't scheduled any tasks. These are the operations scheduled by default by the installed applications. It happens in all windows 11 that we have in the company. I think it is a problem that occurs when the script converts the encoding. It only happens under the system user. you can try it under any windows 11 client

gillesdubois commented 10 months ago

Hi,

I'll need to conduct further tests as I cannot reproduce the issue on my side. The plugin doesn't hang on my tests computers.

Regards, Gilles DUBOIS.