Run Disk Cleaner

You can use below script to clean junk files from your disk drives,

import os;
clean=os.popen(‘cleanmgr.exe /sagerun:1’).read()

One can expect success or failure status ,no STDOUT text .

this didn’t work for me. i did cleanmgr.exe /sagerset:1 but still not working when i try this script, nothing happen. any one make this work ?

Hi @cfcsupport

Please refer attached file for updated procedure to run disk cleaning.

20161216-Run-Disk-Cleaner–Update.json (986 Bytes)

thank you for your reply, unfortunately i tried this but it’s mot working for me.

ok, i found the problem, when i try to run this script as a system user it will not work, the only way to make it work is to run as a logged in user.

Hi @cfcsupport

Thank you.