报告:微软 Win11 默认预装应用约占 1.6GB 磁盘空间

 头条123   2025-05-19 22:22   1607 人阅读  0 条评论
报告:微软 Win11 默认预装应用约占 1.6GB 磁盘空间

与很多操纵体系一样,微软也正在其 Windows 11、Windows 10 和其他产物中供给了一堆默许利用。Oofhours 的一份新陈述就揭开了 Windows 11 中的默许利用有多年夜。

以下图所示,利用 PowerShell 供给的查询功用,我们可以或许计较出 Windows 11 默许利用的年夜小。那些利用已按年夜小(以字节为单元)降序排序,能够看到 Microsoft Teams 是 年夜的利用,占用了年夜约 91MB 的空间。

但是,该查询只是指向了 XML 文件位置,而部门利用有另外一个文件夹,需求分外计较年夜小。好比 Microsoft Store Purchase 显现年夜小为 11KB,但现实年夜小为 37MB。

对列出的每个利用停止查抄后发明,Windows 11 的默许预拆利用年夜小约为 1.6GB,IT之家小火伴感觉多未几?

以下是正在 PowerShell 中检察一切 Windows 利用年夜小的剧本,包罗默许利用和从 Microsoft Store 下载的利用(需求先打消埋没 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

本文地址:https://www.toutiao123.net/news/26970.html
版权声明:本文为原创文章,版权归 头条123 所有,欢迎 本文,转载请保留出处!
 相关文章  关键词:报告 微软 Win11 默认 预装