Microsoft Windows Vista
Have seen a lot of traffic in this newgropus about UAC and command line....is not helping for things I need. I want to run things from the command line like chkdsk and defrag...without UAC prompts or prompts for passwords.
1) Have tried "runas" in various forms (runas /trustlevel:Unrestricted "cmd /T:4F /k") but when I try defrag c: -f from the red command window I still get the UAC prompt.
2) Trying to run things "automagically" and running from the command prompt doesn't help if I have to input a password....
Please don't respond with why UAC is my friend...I agree, and am trying to find a way to do this without shutting UAC off.
I want to run these simple commands from the command line without GUI warning messages/prompts and without user interaction (no password requests). PS: I'm also looking at doing this from the command line using Task Scheduler, but that seems farily complicated...