ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] Running elevated Powershell from F9 ?   [Help!]

By: Ron Metzger       
Date: Oct 09,2019 at 01:25
In Response to: [Help!] Running elevated Powershell from F9 ? (Laurent Duchastel)

> Useless and intrusive Office Hub app keeps reinstalling itself. I
> want to easily uninstall it routinely with a F9 script.
>
> How do I run this elevated Powershell script from F9 ?
>
> Get-AppxPackage *officehub* | Remove-AppxPackage
>
> This below *doesn't* work:
>
>
> "%#ZTTOOLS%\elevate\elevate64" -c powershell.exe Get-AppxPackage *officehub* | Remove-AppxPackage
>
>
> where elevate64 is a free utility to bypass UAC warning
> http://code.kliu.org/misc/elevate/
>
> Thank you for your hint.

Try "%#ZTTOOLS%\elevate\elevate64" -c -w ...

Hope this helps, let us know.

Ron Metzger

1,004 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 72 users online (0 registered, 72 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 1:55 pm UTC  |  Hits:62,369,135  (21,532 Today )
RSS Feed