Slackbot
03/10/2020, 1:51 PMJonathan Pitre
03/10/2020, 2:04 PMCory Zaner
03/10/2020, 2:31 PMNick Panaccio
03/10/2020, 6:45 PMCory Zaner
03/10/2020, 8:16 PMAaron Parker
03/10/2020, 8:49 PMAaron Parker
03/10/2020, 8:49 PMJonathan Pitre
03/10/2020, 9:32 PM<#
.FUNCTIONALITY
Resets Win10 start-menu left side and right-side
.SYNOPSIS
Left-side: Removes orphaned entries that appear randomly and when MS Store (Appx) based apps are cached inside FSLogix profiles, but removed from actual OS
Right-side (tile section): performs resets based on build XML
.NOTES
Change log
Oct 13, 2019
-Initial version
Oct 15, 2019
-Amended to use $env:LOCALAPPDATA
Oct 19, 2019
-Added 2nd path to remove-item
Feb 25, 2020
-Improved message boxes
.DESCRIPTION
Author <mailto:owen.reynolds@procontact.ca|owen.reynolds@procontact.ca> & <mailto:jonathan.pitre@procontact.ca|jonathan.pitre@procontact.ca>
.EXAMPLE
./Reset-StartMenu.ps1
.NOTES
.Link
N/A
#>
Add-Type -AssemblyName System.Windows.Forms
#Button Legend
# OK 0
# OKCancel 1
# AbortRetryIgnore 2
# YesNoCancel 3
# YesNo 4
# RetryCancel 5
#Icon legend
# None 0
# Hand 16
# Error 16
# Stop 16
# Question 32
# Exclamation 48
# Warning 48
# Asterisk 64
# Information 64
$messageBoxTitle = "Windows Start Menu Reset"
$UserResponse = [System.Windows.Forms.MessageBox]::Show("Do you want to reset the Windows Start Menu to resolve issues with missing/invalid shortcuts?" , $messageBoxTitle, 4, 32)
If ($UserResponse -eq "YES" ) {
write-host "Reseting windows left / right side Windows 10 icons/allignment"
Copy-Item -path "C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml" -Destination "$env:LOCALAPPDATA\Microsoft\Windows\Shell" -force
Remove-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\*$start.tilegrid$windows.data.curatedtilecollection.tilecollection' -force -recurse -ErrorAction SilentlyContinue
get-process shellexperiencehost -ErrorAction SilentlyContinue | stop-process -force -ErrorAction SilentlyContinue
write-host "Pausing for for 3 seconds..."
start-sleep -s 3
remove-item -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempState\StartUnifiedTileModelCache.dat" -Force -ErrorAction SilentlyContinue
remove-item -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState\StartUnifiedTileModelCache.dat" -Force -ErrorAction SilentlyContinue
Get-Process Explorer | Stop-Process -force -ErrorAction SilentlyContinue
[System.Windows.Forms.MessageBox]::Show("Windows Start Menu was reset!", $messageBoxTitle, 0, 64)
}
Else {
Write-host "No"
Exit
}Jonathan Pitre
03/10/2020, 9:32 PMJonathan Pitre
03/10/2020, 9:32 PMJames Kindon
03/10/2020, 9:51 PMJonathan Pitre
03/10/2020, 10:02 PMJonathan Pitre
03/10/2020, 10:02 PMJarian Gibson
03/10/2020, 10:06 PMNick Panaccio
03/10/2020, 10:49 PMCory Zaner
03/10/2020, 11:04 PMJames Kindon
03/11/2020, 10:25 AMNick Panaccio
03/11/2020, 10:48 AMJames Kindon
03/11/2020, 10:54 AMNick Panaccio
03/11/2020, 10:55 AMKasper Johansen
03/11/2020, 10:56 AMJames Kindon
03/11/2020, 10:56 AMJames Kindon
03/11/2020, 10:56 AMKasper Johansen
03/11/2020, 10:56 AMJames Kindon
03/11/2020, 10:57 AMKasper Johansen
03/11/2020, 10:57 AMJames Kindon
03/11/2020, 10:58 AMCory Zaner
03/11/2020, 11:20 AMJames Kindon
03/11/2020, 11:32 AMKasper Johansen
03/11/2020, 11:36 AMCory Zaner
03/11/2020, 11:42 AMKasper Johansen
03/11/2020, 11:44 AMNick Panaccio
03/11/2020, 12:32 PMKasper Johansen
03/11/2020, 12:40 PMNick Panaccio
03/11/2020, 12:43 PMCory Zaner
04/06/2020, 2:47 PMJonathan Pitre
04/06/2020, 2:50 PMCory Zaner
04/06/2020, 2:50 PMOwen Reynolds
04/06/2020, 2:55 PMPhil Savage
04/29/2020, 3:13 AMOwen Reynolds
04/29/2020, 2:16 PMCory Zaner
04/30/2020, 12:30 AMOwen Reynolds
04/30/2020, 3:31 PMKasper Johansen
04/30/2020, 3:51 PMOwen Reynolds
04/30/2020, 3:56 PMKasper Johansen
04/30/2020, 3:56 PMCory Zaner
04/30/2020, 4:10 PMOwen Reynolds
04/30/2020, 6:32 PM