[PConline 資訊]與許多操作系統(tǒng)一樣,微軟也在其 Windows 11、Windows 10 和其他產(chǎn)品中提供了一堆默認(rèn)應(yīng)用,隨著預(yù)裝默認(rèn)應(yīng)用的增多,系統(tǒng)的體積也在變大。Oofhours 的一份新報(bào)告就揭開(kāi)了 Windows 11 中的默認(rèn)應(yīng)用有多大。 如下圖所示,使用 PowerShell 提供的查詢功能,能夠計(jì)算出 Windows 11 默認(rèn)應(yīng)用的大小。這些應(yīng)用已按大。ㄒ宰止(jié)為單位)降序排序,可以看到 Microsoft Teams 是最大的應(yīng)用,占用了大約 91MB 的空間。 然而,該查詢只是指向了 XML 文件位置,而部分應(yīng)用有另一個(gè)文件夾,需要額外計(jì)算大小。比如 Microsoft Store Purchase 顯示大小為 11KB,但實(shí)際大小為 37MB。 對(duì)列出的每一個(gè)應(yīng)用進(jìn)行檢查后發(fā)現(xiàn),Windows 11 的默認(rèn)預(yù)裝應(yīng)用大小約為 1.6GB,各位小伙伴覺(jué)得多不多? 以下是在 PowerShell 中查看所有 Windows 應(yīng)用大小的腳本,包括默認(rèn)應(yīng)用和從 Microsoft Store 下載的應(yīng)用(需要先取消隱藏 WindowsApps 文件夾)。 Get-AppxProvisionedPackage -online | % { # Get the main 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 |
正在閱讀:系統(tǒng)為何越來(lái)越大?Win11預(yù)裝軟件占1.6GB空間系統(tǒng)為何越來(lái)越大?Win11預(yù)裝軟件占1.6GB空間
2022-04-25 15:23
出處:IT之家
作者:佚名
責(zé)任編輯:censi
