Could somebody please help me in automating disk cleanup of C drive using a VB script.
The option that I am aware of is as follows
1) cleanmgr.exe /d c: /sageset:11
2) the disk cleanup window will open up for me to choose what all to clear
3) After choosing the options, after I click okay, it will save my preference to registry
4) cleanmgr.exe /sagerun:11
5) running the above command will take the settings from registry and automatically start disk clean up without an user inputs.
I want to automate disk clean up on approximately 100 servers. It is not possible for me to follow the above solution since to implement that I will have to manually run the steps 1, 2 and 3 mentioned above on all 100 servers.
does anybody know how to automate the task entirely, ie without any manual efforts involved??
Any help is appreciated