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

Thank you for your hint.

Laurent Duchastel

Thread locked

Messages in this Thread

95,044 Postings in 11,981 Threads, 349 registered users, 33 users online (0 registered, 33 guests)
Index | Admin contact |   Forum Time: Jul 8, 2020 - 11:28 am EDT  |  Hits:32,025,605  (16,589 Today )
RSS Feed