|
|
建议直接获取源镜像APPx.
::获取镜像Appx应用列表...
powershell -ExecutionPolicy Bypass -Command "Get-AppxProvisionedPackage -Path '%MountDir%' | Select-Object DisplayName, PackageName | Format-Table" >>"SysAppxList.xml"
::去掉标题(第一行和第二行),提取所需内容',
for /f %%i in ('type .\SysAppxList.xml') do (
set /a x+=1
if !x! neq 1 if !x! neq 2 echo %%i>>MyAPPxList.xml
)
按MyAPPxList.xml内容精简
|
|