"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