Hi,
I am trying to automate the run of disk clean-up tool (cleanmgr) on my managed computers. I have created a script that prepares the "sageset" on computers and that seems to be working OK. The problem I am running into is that when I remotely launch the script/1-liner that executes the cleanmgr to effectively run the created sageset, it just hangs while using a certain percentage of CPU. Do you have any idea what I'm doing wrong?
prepare.sageset.ps1: this prepares the "sageset" in registry. I'm using sageset 0x0100.
run.cleanup.ps1: this starts the "sagerun". It works just fine when executed manually from powershell but I'm running into the above-descripted problem when run via pulseway.
Hope you can give me some directions. Thanks.
prepare.sageset.ps1
run.cleanup.ps1