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...

command line no uac interferance

Turn off UAC! - also you can use the "search" box in place of "run as" - just type command desired (though still get UAC stuff).

"senrabdet"

Click on the Start Orb, type "cmd", then right click on the result and select "Run As Administrator"

"senrabdet"

Hello,

- Right-click in an explorer window- click New- Click Shortcut- Type: cmd- Click Next- Click Finish- Right-click the shortcut- Click Properties- Click advanced- Click Run As Administrator checkbox- Click OK- Click OK

- JB

Vista Support FAQ
http://www.jimmah.com/vista/

Are you trying to use the commands in a script? Maybe if you told us exactly what you are hoping to accomplish we can help you.

In general, here are the rules:

- Any program that needs admin permission that interacts with the user will show a UAC prompt, no matter how it starts. Period.

- A program that runs as a service or from task scheduler can run with elevated privileges without throwing a UAC prompt, but it will not be able to interact with the user (it will not be visible on the screen).

- JB

Vista Support FAQ
http://www.jimmah.com/vista/