SCCM – Fix Software Center Shortcut

email me

After client update, Software Center shortcut is pointing to old/wrong location. Fix by running this Powershell Script.

$linkPath = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft System Center\Configuration Manager\Software Center.lnk"
$object = New-Object -COM WScript.Shell
$shortcut = $object.CreateShortcut($linkPath)
$shortcut.TargetPath = "C:\Windows\CCM\ClientUX\SCClient.exe"
$shortcut.Save()