![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Guest | elevate privilege 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? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: elevate privilege "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 |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: elevate privilege 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 > > > > |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: elevate privilege "Calin Iaru" <CalinIaru@xxxxxx> wrote in message news:FC2C8688-FA7E-4D09-B2D4-453C4F056415@xxxxxx Quote: > And a shortcut that can do this? For instance, run-elevated > e:\bin\procexp.exe? Not sure what you mean by a 'shortcut'. If you have set up a suitable registry association with .ps1 files then you can click on one or a shortcut to it eg containing these 2 lines $Shell = New-Object -ComObject "Shell.Application" $Shell.ShellExecute("e:\bin\procexp.exe",$null,$null,"runas") I would like to add the command to a profile script and Quote: > sign it. Can you please indicate how to sign a script using the default > certificates or vendor supplied certificates? You use 'Set-AuthenticodeSignature' for this with a suitable certificate help Set-AuthenticodeSignature help about_signing -- Jon |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| User Account Control (UAC) - Elevate Privilege Level | Tutorials | |||
| Elevate Privilege @ the CMD prompt | Vista General | |||
| How to elevate integrity level of a process | Vista security | |||
| Elevate without losing the working directory? | Vista security | |||
| UAC can not elevate | Vista account administration | |||