Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用powershell在线调用dism.exe命令安装语言包_Powershell_Dism - Fatal编程技术网

使用powershell在线调用dism.exe命令安装语言包

使用powershell在线调用dism.exe命令安装语言包,powershell,dism,Powershell,Dism,我得到下面的错误和语言包没有得到安装使用上述命令 图像版本:10.0.10116.0 错误:87 在此上下文中无法识别包路径选项。更多 有关详细信息,请参阅帮助 如有疑问,请阅读本手册。参数名为/PackagePath(不带连字符),不是/Package Path,而是在使用与下面代码相同的命令安装后,{PS C:\Windows\system32>$exefile=“C:\Windows\system32\dism.exe”$command=“C:\Windows\system32\dism.

我得到下面的错误和语言包没有得到安装使用上述命令

图像版本:10.0.10116.0

错误:87

在此上下文中无法识别包路径选项。更多 有关详细信息,请参阅帮助


如有疑问,请阅读本手册。参数名为
/PackagePath
(不带连字符),不是
/Package Path

,而是在使用与下面代码相同的命令安装后,{PS C:\Windows\system32>$exefile=“C:\Windows\system32\dism.exe”$command=“C:\Windows\system32\dism.exe/online/add Package/PackagePath:”+“C:\lang\fi\lp.cab”调用表达式$command}未收到任何错误,但语言包未反映在区域和语言设置中
**$exefile = "C:\Windows\System32\dism.exe"
$command="C:\Windows\System32\dism.exe /online /add-package /package-path:"+"C:\lang\fr-ca\lp.cab"

Invoke-Expression $command**