Remove Microsoft.MicrosoftOfficeHub Windows Store App from current user
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the task here>

Property Details

ID23890
StatusAlpha - Code that was just developed
TitleRemove Microsoft.MicrosoftOfficeHub Windows Store App from current user
DomainBESC
SourceInternal
Source Release Date8/25/2016 12:00:00 AM
Is TaskTrue
Added by on 3/15/2017 2:28:45 PM
Last Modified by on 3/15/2017 2:28:45 PM
Counters 3699 Views / 47 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

isWindows (Relevance 1172)
Used in 1118 fixlets and 524 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 5 fixlets   * Results in a true/false
Show indented relevance
exists (current users;logged on users)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists folders whose(name of it as lowercase starts with ("Microsoft.MicrosoftOfficeHub" & "_") as lowercase) of folders "AppData\Local\Packages" of folders whose(exists name whose(it is contained by set of names of (current users; logged on users)) of it) of folders "C:\Users"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
parameter "AppName" = "Microsoft.MicrosoftOfficeHub"
parameter "NumOfApp" = "{number of folders whose(name of it contains (parameter "AppName" & "_")) of folders "AppData\Local\Packages" of folders of folders "C:\Users"}"

dos echo {parameter "NumOfApp"} > __Download\NumOfApp.txt

action uses wow64 redirection {not x64 of operating system}


// Get-AppxPackage -allusers {parameter "AppName"} | Remove-AppxPackage
// Get-AppxProvisionedPackage -Online | Where-Object -Property DisplayName -EQ {parameter "AppName"} | Select-Object –Property PackageName | Remove-AppxProvisionedPackage -Online

override wait
runas=currentuser
hidden=true
wait powershell -ExecutionPolicy Bypass -command "Get-AppxPackage {parameter "AppName"} | Remove-AppxPackage"

parameter "NumOfAppAfter" = "{number of folders whose(name of it contains (parameter "AppName" & "_")) of folders "AppData\Local\Packages" of folders of folders "C:\Users"}"
//parameter "Success" = "{ (number of folders whose(name of it contains (parameter "AppName" & "_")) of folders "AppData\Local\Packages" of folders of folders "C:\Users") != (it as integer) of (parameter "NumOfApp") }"
continue if { (number of folders whose(name of it contains (parameter "AppName" & "_")) of folders "AppData\Local\Packages" of folders of folders "C:\Users") != (it as integer) of (parameter "NumOfApp") }

// References:
// - https://bigfix.me/relevance/details/3017477
// - http://www.askvg.com/guide-how-to-remove-all-built-in-apps-in-windows-10/
// - http://www.howtogeek.com/224798/how-to-uninstall-windows-10s-built-in-apps-and-how-to-reinstall-them/
// - https://technet.microsoft.com/en-us/library/dn376476.aspx
// - https://technet.microsoft.com/en-us/library/dn376467.aspx
// - https://technet.microsoft.com/en-us/library/hh824882.aspx
Success Criteria

This action will be considered successful when all lines of the action script have completed successfully.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!