Deprecated: Creation of dynamic property Timber\Site::$pingback is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Site.php on line 180

Deprecated: Creation of dynamic property Timber\User::$name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/User.php on line 118

Deprecated: Creation of dynamic property Timber\Post::$old_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_thumbnail_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ext-thumbnail_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_last is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_metadesc is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_date_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ping_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_password is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$to_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$pinged is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_content_filtered is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$guid is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$menu_order is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_mime_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_count is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$filter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71
Windows 11 e 10: quanto spazio occupano le app preinstallate e quelle caricate dal Microsoft Store | IlSoftware.it

Windows 11 e 10: quanto spazio occupano le app preinstallate e quelle caricate dal Microsoft Store

Un semplice comando PowerShell per stabilire quali app Microsoft Store, molte delle quali risultano già preinstallate, occupano più spazio in Windows 10 e Windows 11.

Le applicazioni preinstallate in Windows 11 e in Windows 10 possono facilmente occupare più di 1,5 GB di spazio. Lo conferma un test pubblicato su Out of Office Hours basato sull’utilizzo di un semplice script PowerShell e che tutti possono replicare.

Sia Windows 11 che Windows 10 installano automaticamente un gran numero di applicazioni. Via via che si utilizza il sistema operativo, inoltre, anche nelle edizioni Pro, Windows ha la brutta abitudine di scaricare e installare applicazioni aggiuntive che appaiono nella finestra accessibile digitando App e funzionalità nella casella di ricerca.

Abbiamo presentato un comodo file batch velocizzare Windows 11 e ottimizzare il sistema mentre a suo tempo abbiamo descritto il funzionamento di uno script per ottimizzare e velocizzare Windows 10.

Quanto spazio occupano le app del Microsoft Store in Windows 10 e 11

Premendo la combinazione di tasti Windows+X quindi scegliendo Terminale Windows in Windows 11 oppure Windows PowerShell in Windows 10, si può digitare un semplice comando che permette di raccogliere le informazioni sulle app Microsoft Store installate:

Get-AppxProvisionedPackage -online | Out-GridView

Il problema è che le applicazioni Microsoft Store tipicamente usano diverse cartelle, non dichiarate non file manifest in formato XML. Lo spazio occupato è quindi ben maggiore rispetto a quello utilizzato dalle risorse dichiarate nel file manifest.

Per avere un’indicazione più precisa, seppur approssimata, dello spazio occupato in Windows 10 e 11 dalle app Microsoft Store (preinstallate, installate automaticamente dal sistema operativo o manualmente dall’utente) è possibile usare lo script sviluppato da Out of Office Hours. È sufficiente copiare quanto segue e incollarlo così com’è al prompt della finestra PowerShell:

Get-AppxProvisionedPackage -online | % {
    # Get the main app package location using the manifest
    $loc = Split-Path ( [Environment]::ExpandEnvironmentVariables($_.InstallLocation) ) -Parent
    If ((Split-Path $loc -Leaf) -ieq 'AppxMetadata') {
        $loc = Split-Path $loc -Parent
    }
    # Get a pattern for finding related folders
    $matching = Join-Path -Path (Split-Path $loc -Parent) -ChildPath "$($_.DisplayName)*"
    $size = (Get-ChildItem $matching -Recurse -ErrorAction Ignore | Measure-Object -Property Length -Sum).Sum
    # Add the results to the output
    $_ | Add-Member -NotePropertyName Size -NotePropertyValue $size
    $_ | Add-Member -NotePropertyName InstallFolder -NotePropertyValue $loc
    $_
} | Select DisplayName, PackageName, Version, InstallFolder, Size | Out-GridView

L’importante è non dimenticare la cmdlet Out-GridView finale altrimenti i risultati non verranno mostrati sotto forma di interfaccia grafica.

Al termine dell’elaborazione, cliccando sull’intestazione della colonna Size si possono conoscere le app Microsoft Store che occupano più spazio: i valori dello spazio occupato saranno infatti ordinati in ordine decrescente partendo dall’app che occupa la porzione di storage maggiore.

I valori sono espressi in byte: sommandoli si nota quanto le applicazioni Microsoft Store vadano a impattare sullo spazio disponibile ma soprattutto è possibile sapere se vi fossero applicazioni di terze parti che non si usano e che incidono negativamente sullo storage disponibile.

Nei due articoli citati in apertura abbiamo visto come impedire a Windows 11 e 10 di installare app arbitrariamente. In quello dedicato a Windows 10 lo script che abbiamo presentato si occupa anche, su richiesta dell’utente, di rimuovere le app ritenute inutili.
In un altro approfondimento abbiamo visto come disinstallare programmi inutili in Windows.

Ti consigliamo anche

Link copiato negli appunti