Windows 7 remove broken shortcuts

Il sistema operativo Microsoft Widnows 7 cancella le icone dei collegamenti presenti sul desktop nel caso i link non esistano piĆ¹.

Per risolvere il problema:

1. Posizionarsi nella cartella
C:\Windows\diagnostics\scheduled\Maintenance

2. Fare una copia di backup del file TS_BrokenShortcuts.ps1

3. Editare il file TS_BrokenShortcuts.ps1 e cancellare all’interno della funzione Get-BrokenShortcutList il seguente codice

    Get-ChildItem -Path $path -filter *.lnk | Foreach-Object {
        $fullPath = ConvertTo-WQLPath $_.FullName
        $wmiLinkFile = Get-WmiObject -query "SELECT Name,Target,AccessMask FROM 

Win32_ShortcutFile WHERE Name = '$fullPath'"
        if(-not(Test-ValidLink $wmiLinkFile) -and (Test-Delete $wmiLinkFile))
        {
            $list = AttachTo-List $list $wmiLinkFile.Name
        }
    }

4. Fine procedura

Per maggiori informazioni:
http://www.geekissimo.com/2010/03/31/windows-7-cancella-icone-desktop-come-farlo-smettere/

This entry was posted in Operating Systems, Windows. Bookmark the permalink.