Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion run powershell always as admin ?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joel Jaykul Bennett  
View profile  
 More options Oct 23 2007, 12:57 pm
Newsgroups: microsoft.public.windows.powershell
From: Joel Jaykul Bennett <Jay...@gmail.com>
Date: Tue, 23 Oct 2007 09:57:45 -0700
Local: Tues, Oct 23 2007 12:57 pm
Subject: Re: run powershell always as admin ?
I know I'm dredging up an old topic, but I don't see a better answer,
so I thought I'd throw this out there anyway.

On Mar 1, 1:43 pm, "Lee Holmes [MSFT]"

<lee.hol...@online.microsoft.com> wrote:
> In Vista's UAC model, you don't enable your Administrator rights for an
> application until you've gone through an elevation prompt. So yes, this
> means that you will be required to type in your credentials (or click "OK")

This is not necessarily true -- you can use a scheduled task ...

> >> > Is there a way to create a shortcut or link that has "run as
> >> > administrator" applied automatically? So that I do not have to bother
> >> > to rightclick and can use keyboard shortucts to run the powershell?

In Vista, if you type "Powershell" into the start menu and then press
CTRL+SHIFT+ENTER, you should get the elevation prompt without any need
for mouse interaction.  Of course, you can also use a scheduled task,
if you're running in an account that's a member of the
"administrators" group...

> > This approach would still require me to enter the password for the
> > admin account each time I run the shell.

If you're using an account which is a member of the administrators
group, you can create a "scheduled" task, set it to run "with highest
privileges" and allow it to be run manually.  The task can only be run
by your user account, so you're still protected against other users,
and it has to be run through scheduled tasks (so it's not a proper
'setuid' replacement), but it works.  I posted about it awhile back
here:

http://huddledmasses.org/vista-setuid-how-to-elevate-without-prompting/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.