Hi Sumit, thanks much for the response
the requirement is like we have 30-40 machines on weekly basis (random ones)
to which we would like to schedule a task that runs powershell script to clean up the spaces for those machines without manual intervention
bur when i try to invoke-command from my local machine to remote machine
the cleanmgr still runs from my pc and does not do anything on remote pc
is there a way that we can clean up space in remote pc's using a script