"Run as Administrator" ... make default??

B

bilglas

I've already encountered a couple of programs that require that I
right-click the EXE file (or shortcut) and choose "Run as Administrator" ...
otherwise, they don't function properly, if at all. QUESTION: Is there any
way to set up these programs to "Run as Administrator" by DEFAULT? I'd hate
to have to right-click every time I want to use these programs.

Thanks for your time.......

Bill
 
F

Flash Gortdon

After just now installing a file this way I was about to ask the very same
question!

Anyone? Anyone?

FG
 
B

bilglas

That did it, Richard. You have my permission to GLOW for the rest of the
day. Thanks very much!

Bill

====================
 
F

Flash Gortdon

Let's not start "glowing" too soon.... ;-)

How did you accomplish this?

When I Right Click on a *.exe file....I do not get the option to "Run as
Administrator"

How do I ensure that at least this is in the right click menu???

FG
 
R

Ramesh, MS-MVP

Hi FG,

Is your system connected to a domain, or perhaps, security policies are set locally?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Let's not start "glowing" too soon.... ;-)

How did you accomplish this?

When I Right Click on a *.exe file....I do not get the option to "Run as
Administrator"

How do I ensure that at least this is in the right click menu???

FG
 
J

Jon

Flash Gortdon said:
Let's not start "glowing" too soon.... ;-)

How did you accomplish this?

When I Right Click on a *.exe file....I do not get the option to "Run as
Administrator"

How do I ensure that at least this is in the right click menu???

FG


It's right-click *.exe > Properties

For a *.exe, you do it via the 'Compatibity' tab.

For a shortcut, you can also do it on the 'Shortcut' tab, via the 'Advanced'
button.

BUT.. it can also be affected by the location of the file. You can't do it
directly for a *.exe in the system32 directory (by default), for example,
but you can set a shortcut to it to run as admin, in the way mentioned
above.
 
R

Richard

lol no problem glad it helped.

bilglas said:
That did it, Richard. You have my permission to GLOW for the rest of the
day. Thanks very much!

Bill

====================
 
F

Flash Gortdon

Nope.....its a stand-alone system....with Vista Ultimate installed.

I am down as the Administrator and the only way I can get "Run as
Administrator" to function...is to highlight the file and then click on
File...."Run as
Administrator"

But I do not get that option attached to the right click menu

FG

Hi FG,

Is your system connected to a domain, or perhaps, security policies are set
locally?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Let's not start "glowing" too soon.... ;-)

How did you accomplish this?

When I Right Click on a *.exe file....I do not get the option to "Run as
Administrator"

How do I ensure that at least this is in the right click menu???

FG
 
F

Flash Gortdon

Ahhhhh - I see it now.

I right click on the File....then Properties.....Compatibility....and under
'Privilege Level....."Run as
Administrator"

Now I see it....based on previous comment thought it showed this directly
after right clicking on the object...

My mistake.

Cheers

FG
 
J

Jon

I'm surprised you don't get that option 'Run as administrator' on your
right-click.

You should have it by default with shortcuts to .exe files, but if the file
has another extension, then that would explain it.
 
R

Ramesh, MS-MVP

FG,

It should show the "Run as administrator" context entry below "open", when you right-click on a .lnk or an .exe file.

Click Start, type the following and press ENTER:

cmd /k reg query hkcr\exefile\shell /s

Copy the output and include it in your reply.

Note: The command above does not modify/write to your registry, but reads the exefile association.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Ahhhhh - I see it now.

I right click on the File....then Properties.....Compatibility....and under
'Privilege Level....."Run as
Administrator"

Now I see it....based on previous comment thought it showed this directly
after right clicking on the object...

My mistake.

Cheers

FG
 
F

Flash Gortdon

I hope this is what you mean.....


HKEY_CLASSES_ROOT\exefile\shell\Enable/Disable Digital Signature Icons

HKEY_CLASSES_ROOT\exefile\shell\Enable/Disable Digital Signature
Icons\command
(Default) REG_SZ acsignopt.exe

HKEY_CLASSES_ROOT\exefile\shell\open
EditFlags REG_BINARY 00000000

HKEY_CLASSES_ROOT\exefile\shell\open\command
(Default) REG_SZ "%1" %*
IsolatedCommand REG_SZ "%1" %*

HKEY_CLASSES_ROOT\exefile\shell\runas

HKEY_CLASSES_ROOT\exefile\shell\runas\command
(Default) REG_SZ "%1" %*
IsolatedCommand REG_SZ "%1" %*


Is this what you were expecting...?

FG

FG,

It should show the "Run as administrator" context entry below "open", when
you right-click on a .lnk or an .exe file.

Click Start, type the following and press ENTER:

cmd /k reg query hkcr\exefile\shell /s

Copy the output and include it in your reply.

Note: The command above does not modify/write to your registry, but reads
the exefile association.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Ahhhhh - I see it now.

I right click on the File....then Properties.....Compatibility....and under
'Privilege Level....."Run as
Administrator"

Now I see it....based on previous comment thought it showed this directly
after right clicking on the object...

My mistake.

Cheers

FG
 
J

Jon

The key portion there is this part......
HKEY_CLASSES_ROOT\exefile\shell\runas

HKEY_CLASSES_ROOT\exefile\shell\runas\command
(Default) REG_SZ "%1" %*
IsolatedCommand REG_SZ "%1" %*

which should have allowed the 'Run as administrator', and looks to be
intact, as far as I can see.

So it remains a mystery, unless Ramesh has some ideas.

--
Jon


Flash Gortdon said:
I hope this is what you mean.....


HKEY_CLASSES_ROOT\exefile\shell\Enable/Disable Digital Signature Icons

HKEY_CLASSES_ROOT\exefile\shell\Enable/Disable Digital Signature
Icons\command
(Default) REG_SZ acsignopt.exe

HKEY_CLASSES_ROOT\exefile\shell\open
EditFlags REG_BINARY 00000000

HKEY_CLASSES_ROOT\exefile\shell\open\command
(Default) REG_SZ "%1" %*
IsolatedCommand REG_SZ "%1" %*

HKEY_CLASSES_ROOT\exefile\shell\runas

HKEY_CLASSES_ROOT\exefile\shell\runas\command
(Default) REG_SZ "%1" %*
IsolatedCommand REG_SZ "%1" %*


Is this what you were expecting...?

FG

FG,

It should show the "Run as administrator" context entry below "open", when
you right-click on a .lnk or an .exe file.

Click Start, type the following and press ENTER:

cmd /k reg query hkcr\exefile\shell /s

Copy the output and include it in your reply.

Note: The command above does not modify/write to your registry, but reads
the exefile association.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Ahhhhh - I see it now.

I right click on the File....then Properties.....Compatibility....and
under
'Privilege Level....."Run as
Administrator"

Now I see it....based on previous comment thought it showed this directly
after right clicking on the object...

My mistake.

Cheers

FG
Jon said:
It's right-click *.exe > Properties

For a *.exe, you do it via the 'Compatibity' tab.

For a shortcut, you can also do it on the 'Shortcut' tab, via the
'Advanced' button.

BUT.. it can also be affected by the location of the file. You can't do
it
directly for a *.exe in the system32 directory (by default), for example,
but you can set a shortcut to it to run as admin, in the way mentioned
above.
 
R

Ramesh, MS-MVP

The "runas" settings are intact, as Jon said. This *might* be just another third-party shell extension problem.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


I hope this is what you mean.....


HKEY_CLASSES_ROOT\exefile\shell\Enable/Disable Digital Signature Icons

HKEY_CLASSES_ROOT\exefile\shell\Enable/Disable Digital Signature
Icons\command
(Default) REG_SZ acsignopt.exe

HKEY_CLASSES_ROOT\exefile\shell\open
EditFlags REG_BINARY 00000000

HKEY_CLASSES_ROOT\exefile\shell\open\command
(Default) REG_SZ "%1" %*
IsolatedCommand REG_SZ "%1" %*

HKEY_CLASSES_ROOT\exefile\shell\runas

HKEY_CLASSES_ROOT\exefile\shell\runas\command
(Default) REG_SZ "%1" %*
IsolatedCommand REG_SZ "%1" %*


Is this what you were expecting...?

FG
 
G

Guest

I've noticed that even when I choose "Run this program as an administrator"
on the Compatibility tab for an executable, that program still runs under the
standard user token (non-admin perms) when automatically launched based on a
file association.

Example: If I have an text editor app installed and I configure it to run
"as administrator" from the Compatibility settings, then it will run with
admin permissions when I launch it directly (i.e. by double-clicking the .exe
or shortcut), but NOT when I double-click a .txt file and it launches due to
the file association.

Has anyone else run into this behavior, and figured out a way to work around
it (without turning off UAC)?
 
G

Guest

I have recently installed windows vista ultimate 64bit, MS office 2007,
visual studio and Visio for Enterprise Architects 2007 and have encountered
several errors related to this post:

1. When I right click any of the MS Office icons, none have the "Run as
administrator option". Maybe this has been disabled because administrative
authority exposes risks of macros? But this is also true of Visual Studio
for Enterprise Architects. In that tool, when I try to reverse engineer a
database it requires admin authority. So I'm stuck.

2. I want to move a folder in explorer. The current folder and the folder
I want to move it to are both directly under the C: directory. But I am told
I need administrative authority to complete the task. However, windows
explorer doesn't offer a normal icon with a right-click popup window. (Seems
like a clear bug to me.) Based on another post, however, I tried clicking
start and entering "explorer" in the start search. That brought up the
executeable. I tried right-clicking that and running as administrator, but I
still get the same error and it refuses to move the folder. I also tried
copying the explorer executeable, pasting as a shortcut and checking "run as
administrator" (under shortcut/advanced) without success.

I have active directory in my home network, but this computer is not
connected. It is a clean install with vista using a local user id.
 
A

Andrew McLaren

DaveGray said:
1. When I right click any of the MS Office icons, none have the "Run as
administrator option". Maybe this has been disabled because
administrative
authority exposes risks of macros? But this is also true of Visual Studio

Hey Dave,

I believe this behaviour is normal and "by design". Okay - it's a vey
stoopid design! :) but that is how it works.

The Start menu links to Office Applications are not actually shortcuts to
the apps' EXE files (unlike most Start Menu items). They are pointers to the
Application's object in the Shell Namespace (ie, like a GUID). You only get
the "Run as Administrator" option when you have an Executable file, such as
an EXE, or a shortcut to an EXE file. Because the Office items are pointers
to abstract objects not EXE files, there is no "Run As" option for them.

So, if you want to run Word as Administrator (for example), navigate to
WINWORD.EXE in Explorer, and right-click the EXE file. The "Run as
Administrator" option should now appear. Likewise for the other apps which
exhibit the problem: run the EXE.

I'm tempted to insert an extended commentary about Office, and its peculiar
ways, but ... :)
2. I want to move a folder in explorer. The current folder and the folder
I want to move it to are both directly under the C: directory. But I am
told
I need administrative authority to complete the task. However, windows
explorer doesn't offer a normal icon with a right-click popup window.
(Seems
like a clear bug to me.) Based on another post, however, I tried clicking
start and entering "explorer" in the start search. That brought up the
executeable. I tried right-clicking that and running as administrator,
but I
still get the same error and it refuses to move the folder. I also tried
copying the explorer executeable, pasting as a shortcut and checking "run
as
administrator" (under shortcut/advanced) without success.

Again, I think this is normal and "by design" ... albeit a busted,
brain-dead design!!! You cannot have Explorer running in more than one user
context, within each desktop session. It's just a limitation of Explorer;
for some reason buried deep in its architecture. So, you cannot "Run as
Administrator" another instance of Explorer; it just won't start. This
effectively prevents you from performing any file management operations
which require Administrative access, because Explorer also does not seem to
prompt for elevation in these cases.

I have found 3 workarounds, all with pros/cons:

1) run and administrative Command prompt, and perform file operations using
good ol' del, copy, mkdir, rd etc commands. Cheap and easy if you don't mind
command line.

2) use Fast User Switching to flip over to a concurrent Administrator
session, and perform the file operations from that instance of Explorer
which *is* running as Administrator); then FUS back to my normal user
session. Cheap and you get a GUI, but it is awkward and time consuming to
keep flipping FUS sessions too often.

3) run a 3rd party File Manager, so you can start it with "Run as
Administrator" while you are logged in to your normal user session and with
Explorer runs as Standard User. Easy and GUI-based, but you need to install
(and perhaps pay for) 3rd party software.

The file manager I use for option (3) is Directory Opus
(http://www.gpsoft.com.au); but there are many other good products that fit
the bill.

Hope it helps,
 
G

Guest

Thanks, Andrew. That solved it.

One thing...My user ID is already an administrative one and when I switched
users, there were no additional options to temporarily turn off User Account
Control. So I'm not clear how fast user switching would help with windows
explorer. I just did the command line option for now. Anyway, if there's
something I misunderstood, I would appreciate any further comments.

Thanks again for the help. Amazing that my most difficult Vista issues are
with Microsoft programs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top