I'm using a script for a universal login I found on this site that works really well. Recently, I've been asked to set up and schedule cleanmgr.exe to clean the disk as well as defrag. When I added it like so:
It threw the error:
I found in an MS newsgroup posting, that if you use double quotes, it allows you to pass commands with spaces in it, such as the file's pathname, like so:
Then on the client, I get "invalid switch /f" on the defrag schedule and "invalid switch /sagerun:64" on the cleanmgr schedule. How to go about doing this without error?
scheduling a task to run a date.vbs daily at 12.20 pm . run as Arumugam_n and password of my system hello123 i have provided in the parameter section. why it is not running.? somebody help me pls
How are you going to run sagerun:64 without performing a sageset? Is there somthing I'm missing? and in sageset is where you select your options of what you would like cleaned. I dont see this being possible on client machines. The way I done it was to write the registry values, obviously mine are 65 but you can use any number