ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Ron Metzger       
Date: Oct 08,2019 at 21: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

112 views      
 

Messages in this Thread

 
94,500 Postings in 11,924 Threads, 348 registered users, 11 users online (1 registered, 10 guests)
Index | Admin contact |   Forum Time: Oct 23, 2019 - 8:20 pm EDT  |  Hits:28,802,811  (6,559 Today )
RSS Feed