🕫 NEW 🕫- Kaseya Certified Expert Training Camp launches on 8/23. Class size is limited. Learn more > https://www.community.connectit.com/events/28-kaseya-certified-expert-traincamp-august-23rd-september-2nd

Windows 10 Bloatware (Fixed)

Tyler Riggs
Tyler Riggs Member
edited January 24 in Solutions

Product Name: Windows 10 Bloatware (Fixed)

Version: 1.0

Description : Rev. 1.0 (to include more bloatware with future revisions)

Uninstalls:

Xbox
Officehub
Solitaire collection
bingfinance
bingnews
bingsports
bingweather

Based off version originally created by Craig Allen 18/8/2016. Recreated/fixed by Tyler Riggs of InfoTech Enterprise Solutions on 08/06/2020.

The issue with the original procedure was that it used the "executePowershellCommand64BitUser" statement, with the intention of elevating the current user to an admin and then removing them from the administrators local security group after 5 minutes. If a local admin was logged in when this process ran, this user was removed from the only local security group that they belonged to and the account was subsequently disabled. The fix was to re-write using the "executePowershellCommand64BitSystem" instead, so the procedure can run regardless of the current user.

No Warranty implied or given.

Instructions :

Include in your maintenance or onboarding policy assigned to endpoints under your management within Kaseya VSA. 

Comments

  • Chris Andrews
    Chris Andrews Member
    edited September 2020

    Its a good start. 

    I added some more

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    "); vertical-align: bottom; height: 10px;"><ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
    "); vertical-align: bottom; height: 10px;"><Procedure name="Bloatware" treePres="3" id="310197715" folderId="799060946981916" treeFullPath="myProcedures - [email protected]">
    "); vertical-align: bottom; height: 10px;"><Body description="Rev. 1.0 (to include more bloatware with future revisions) Procedure to uninstall: Xbox Officehub Solitaire collection bingfinance bingnews bingsports bingweather Based off version originally created by Craig Allen 18/8/2016. Recreated/fixed by Tyler Riggs of InfoTech Enterprise Solutions on 08/06/2020. The issue with the original procedure was that it used the "executePowershellCommand64BitUser" statement, with the intention of elevating the current user to an admin and then removing them from the administrators local security group after 5 minutes. If a local admin was logged in when this process ran, this user was removed from the only local security group that they belonged to and the account was subsequently disabled. The fix was to re-write using the "executePowershellCommand64BitSystem" instead, so the procedure can run regardless of the current user. No Warranty implied or given.">
    "); vertical-align: bottom; height: 10px;"><Statement description="Standard Agent variables" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
    <Parameter xsi:type="EnumParameter" name="VariableType" value="MachineGroupID"/>
    <Parameter xsi:type="StringParameter" name="SourceContent" value=""/>
    <Parameter xsi:type="StringParameter" name="VariableName" value="machinename"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement description="Command to uninstall Xbox" name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *xboxapp* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall Xbox"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement description="Command to uninstall Officehub" name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *officehub* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall Officehub"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement description="Command to uninstall Solitaire" name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *solitairecollection* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall Solitaire Collection"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement description="Command to uninstall Bing Finance" name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *bingfinance* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall Bing Finance"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement description="Command to uninstall Bing News" name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *bingnews* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall Bing News"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement description="Command to uninstall Bing Sports" name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *bingsports* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall Bing Sports"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement description="Command to uninstall Bing Weather" name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *bingweather* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall Bing Weather"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *cortana* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall cortana"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *WindowsReadingList* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall WindowsReadingList"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *BingTravel* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall BingTravel"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *BingHealthAndFitness* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall BingHealthAndFitness"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *BingFoodAndDrink* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall BingFoodAndDrink"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *SkypeApp* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Comment" value="Powershell command run to uninstall SkypeApp"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="10">
    <Parameter xsi:type="StringParameter" name="Parameter1" value=""/>
    <Parameter xsi:type="StringParameter" name="Parameter2" value="Get-AppxPackage *Getstarted* | Remove-AppxPackage"/>
    <Parameter xsi:type="StringParameter" name="Parameter3" value="False"/>
    </Statement>
    "); vertical-align: bottom; height: 10px;"><Statement name="WriteScriptLogEntry" continueOnFail="false" osType="10">
    <Parameter<span class="html-attribute
  • Chris Andrews
    Chris Andrews Member
    edited September 2020

    If it doesn't find the package is that considered a fail?

  • Peter
    Peter Member
    edited April 2021

    There is one online that people have been using and has been forked into many.

    Can we copy this guys list and add it in?

    Here is this link,

    https://github.com/Sycnex/Windows10Debloater

Weekly Leaderboard