ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Laurent Duchastel     Montréal, Québec  
Date: Oct 08,2019 at 13:37

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.


Laurent Duchastel

284 views      
 

Messages in this Thread

 
94,800 Postings in 11,952 Threads, 348 registered users, 9 users online (0 registered, 9 guests)
Index | Admin contact |   Forum Time: Mar 31, 2020 - 7:40 pm EDT  |  Hits:30,520,609  (4,840 Today )
RSS Feed