|
本帖最后由 黑中见白 于 2021-11-28 14:13 编辑
<# :
@powershell "icm ([scriptblock]::Create((gc '%~f0' -Raw -Encoding UTF8)))"
exit
#>
# https://store.rg-adguard.net/ # PackageFamilyName
# 商店# Microsoft.WindowsStore_8wekyb3d8bbwe
#安卓子程序# 9WZDNCRFJBMP
#-WindowStyle Hidden
# ps离线安装appx-1128.ps1.cmd
$挂载路径='Z:\66' # 说明,只需要改挂载目录
$files = Get-Childitem -Recurse -Include Microsoft.VCLibs.140.00*.appx
foreach ($file in $files) { #遍历文件
cmd /C Dism /Image:$挂载路径 /Add-ProvisionedAppxPackage /PackagePath:$file /SkipLicense /Region:"all" }
Write-Host -ForegroundColor White ('休眠9000毫秒')
Start-Sleep -Milliseconds 15000 #休眠9000毫秒
exti #退出
#powershell代码结束
|
|