Dealing with UAP within the command prompt

Posted: 07-03-2006, 05:35 AM
Hi,
What's the standard practice in dealing with User Account Protection
withing cmd.exe? For example, When I run ipconfig /flushdns, the OS
responds, "The requested operation requires elevation."

I know I can do a runas command, but I also know that the administrator
account is disabled by default, so its not like I can do this unless the PC
is properly configured away from the default settings.

Does anyone have any suggestions??

Thanks,

Reply With Quote

Responses to "Dealing with UAP within the command prompt"

Jimmy Brush
Guest
Posts: n/a
 
Re: Dealing with UAP within the command prompt
Posted: 07-03-2006, 07:01 PM
Hello,

Here's what I do:

- Click Start
- Type cmd
- Right-click cmd when it appears under programs
- Click Run As Administrator

This will cause the UAC prompt to appear and run the command prompt with
full administrative rights.

I don't think there's a way to initiate an elevation directly from the
command prompt ... I think, for now at least, you have to do it from the
shell.

- JB

Reply With Quote
Mike Herchel
Guest
Posts: n/a
 
Re: Dealing with UAP within the command prompt
Posted: 07-04-2006, 12:53 AM
Yeah, I know I can do that (along with the runas command), but the
administrator account is disabled by default. It'd be nice if there was a
way to do this via command prompt, or if it would prompt you at that point.
I can forsee many different situations where I want to use administrative
privilages within the command prompt, but I would not want to do it under
any other account.

Hopefully Microsoft will resolve this issue at some point (or I will find
out a solution that already exists)

Thanks for the answer though! Have a Happy Fourth of July!

-Mike

"Jimmy Brush" <JimmyBrush@discussions.microsoft.com> wrote in message
news:C1452AEB-627B-4606-9947-A5820563D630@microsoft.com...
> Hello,
>
> Here's what I do:
>
> - Click Start
> - Type cmd
> - Right-click cmd when it appears under programs
> - Click Run As Administrator
>
> This will cause the UAC prompt to appear and run the command prompt with
> full administrative rights.
>
> I don't think there's a way to initiate an elevation directly from the
> command prompt ... I think, for now at least, you have to do it from the
> shell.
>
> - JB
Reply With Quote
Jimmy Brush
Guest
Posts: n/a
 
Re: Dealing with UAP within the command prompt
Posted: 07-04-2006, 01:24 AM
Hello,

If you are running as an administrative user (any user in the administrators
group), clicking "Run As Administrator" will invoke those administrator
privledges by displaying the UAC permission dialog (the same screen that
appears when you click on buttons in the control panel with the windows
shield next to them).

If you are running as a normal user, a dialog will appear asking for a
password for any user who is a member of the administrators group.

This works even if the administrator account is disabled, as long as there
is at least 1 user who is a member of the administrators group.

Please try this and see what I mean, it works fine without administrator
being enabled, and I believe this behavior is different than the runas
command

- JB

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open command window here ? Ole1701 Windows Vista File Management 16 02-16-2007 08:38 AM
Cannot Drag & Drop a file from Windows Explorer to Command Prompt? Sami KOZONO Windows Vista File Management 6 10-10-2006 09:46 AM
Ah, the DOS Prompt Tom Scales Windows Vista File Management 2 07-06-2006 08:55 PM
-developer command how? Tulkas Windows Vista Games 0 06-27-2006 05:38 PM
how can I used dos command ???? Genie Windows Vista Install & Setup 4 05-30-2006 01:15 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90