Kaseya Community

WIndows 10 - How to cleanup Start Menu, deploy Creator's Update? And some great links

  • Hi all, has anyone managed to cleanup the WIn 10 Start Menu with an Agent Procedure?

    This link contains some good stuff: https://community.spiceworks.com/scripts/show/3298-windows-10-decrapifier-version-1

    Here is another great resource for Windows 10 configuration: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1

    The commands are below, but I can't seem to get Kaseya to do it.

    Get-AppxPackage -AllUsers | where-object {$_.name -notlike '*Store*' -and $_.name -notlike '*Calculator*' -and $_.name -notlike '*Windows.Photos*' -and $_.name -notlike '*SoundRecorder*' -and $_.name -notlike '*MSPaint*'} | Remove-AppxPackage -erroraction silentlycontinue

    Get-AppxProvisionedPackage -online | where-object {$_.displayname -notlike '*Store*' -and $_.displayname -notlike '*Calculator*' -and $_.displayname -notlike '*Windows.Photos*' -and $_.displayname -notlike '*SoundRecorder*' -and $_.displayname -notlike '*MSPaint*'} | Remove-AppxProvisionedPackage -online -erroraction silentlycontinue

    Also, has anyone managed to deploy the Creator's Update with Kaseya?

    I'm thinking that this stuff is useful to anyone that's looking after Windows 10.

  • This is what I use for removal - easily edited to add or remove apps for removal:

    $File = New-Item -type File "C:\kworking\app-remove.txt"
    $PackagesToRemove = @(

    #Uninstall from current user and default user
    #This also prevents these packages from being installed on new users

    Start-Transcript -path $File

    ForEach ($package in $PackagesToRemove)
    Get-AppxPackage | where-object {$_.packagename -like $package} | Remove-AppxPackage
    Get-AppxProvisionedPackage –Online | where-object {$_.packagename -like $package} | Remove-AppxProvisionedPackage -Online
    Start-Sleep -s 4
    Get-AppXPackage -allusers | Remove-AppxPackage


    [edited by: zippo at 8:18 AM (GMT -7) on Jul 14, 2017]
  • This is what I use for restoring apps to the original - if I screw something up and need to put it back:

    Get-appxPackage -AllUsers| ForEach {Add-appxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppxManifest.xml"}