Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

using ocs teledeploy functionnality

Hello,

I want to use ocs teledeploy functionnality to clear a browser cache (ie) on client machines. I have 90 clients and I just need to run the following command: C:\Windows\System32\RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

I used the execute action to run this command but nothing has changed. Then I used the launch action to launch a .bat file with this command. even adding start didnt resolve the issue. the package is always downloaded successfully but nohting has been executed on the client machine to proove that the cache has been cleaned.

How can I di this action please. it's a production issue and I need to relove this ASAP. 

Thanks

in OCS Inventory NG agent for Unix by (310 points)

1 Answer

0 votes
hy, first of all i normally don't reply to users which use the word ASAP in big letters.

Your command should work - but only to local system account( under whoch ocs-inventory service works)

You need a script which loops through everyer user folder.

like this script

https://github.com/bmrf/standalone_scripts/blob/master/TempFileCleanup.bat

Then it works.

Kind regards

Sokatra
by (24.4k points)
 
Powered by Question2Answer
...