And a shortcut that can do this? For instance, run-elevated
e:\bin\procexp.exe? I would like to add the command to a profile script and
sign it. Can you please indicate how to sign a script using the default
certificates or vendor supplied certificates?
"Jon" wrote:
Quote:
> "Calin Iaru" <Calin Iaru@xxxxxx> wrote in message
> news:6C3516F4-30B4-41B8-B4FA-A00D50A9674A@xxxxxx Quote:
> >I use powershell for most operations and would like to know if there's a
> >way
> > to execute a program with elevated privileges. For instance, is there a
> > way
> > to launch Process Explorer under Vista with Elevated Privileges?
>
>
> Yep, you could use a 'runas' flag with "ShellExecute" eg ....
>
> $Shell = New-Object -ComObject "Shell.Application"
> $Shell.ShellExecute("notepad.exe",$null,$null,"runas")
>
> --
> Jon
>
>
>
>