與許多操作系統(tǒng)一樣,微軟也在其 Windows 11、Windows 10 和其他產(chǎn)品中提供了一堆默認(rèn)應(yīng)用。Oofhours 的一份新報告就揭開了 Windows 11 中的默認(rèn)應(yīng)用有多大。
如下圖所示,使用 PowerShell 提供的查詢功能,我們能夠計算出 Windows 11 默認(rèn)應(yīng)用的大小。這些應(yīng)用已按大小(以字節(jié)為單位)降序排序,可以看到 Microsoft Teams 是最大的應(yīng)用,占用了大約 91MB 的空間。

然而,該查詢只是指向了 XML 文件位置,而部分應(yīng)用有另一個文件夾,需要額外計算大小。比如 Microsoft Store Purchase 顯示大小為 11KB,但實際大小為 37MB。

對列出的每一個應(yīng)用進(jìn)行檢查后發(fā)現(xiàn),Windows 11 的默認(rèn)預(yù)裝應(yīng)用大小約為 1.6GB,IT之家小伙伴覺得多不多?

以下是在 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
特別提醒:本網(wǎng)信息來自于互聯(lián)網(wǎng),目的在于傳遞更多信息,并不代表本網(wǎng)贊同其觀點。其原創(chuàng)性以及文中陳述文字和內(nèi)容未經(jīng)本站證實,對本文以及其中全部或者部分內(nèi)容、文字的真實性、完整性、及時性本站不作任何保證或承諾,并請自行核實相關(guān)內(nèi)容。本站不承擔(dān)此類作品侵權(quán)行為的直接責(zé)任及連帶責(zé)任。如若本網(wǎng)有任何內(nèi)容侵犯您的權(quán)益,請及時聯(lián)系我們,本站將會在24小時內(nèi)處理完畢。