Add-WindowsPackage-PackagePath<String> [-IgnoreCheck] [-PreventPending] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<CommonParameters>] ...
Dism /image:C:\test\offline /Add-Package /PackagePath:C:\packages\package.cab /quiet /NoRestart 取消重新启动。 如果不需要重新启动,则此命令不起作用。 此选项会阻止应用程序提示你重启(如果使用了 /Quiet选项,则会阻止其自动重启)。 示例: Dism /online /Add-Package /PackagePath:C:\packages\package....
Add-WindowsPackage -PackagePath <String> [-IgnoreCheck] [-PreventPending] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<CommonParameters>]Power...
Add-WindowsPackage -PackagePath <String> [-IgnoreCheck] [-PreventPending] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<CommonParameters>]Power...
Add-WindowsPackage-PackagePath<String> [-IgnoreCheck] [-PreventPending] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<CommonParameters>] ...
Add-WindowsPackage -PackagePath <String> [-IgnoreCheck] [-PreventPending] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<CommonParameters>]power...
/NoRestart - 取消自动重新启动和重新启动提示。 /Quiet - 取消除错误消息之外的所有输出。 /ScratchDir - 指定暂存目录的路径。 若要获得有关这些 DISM 选项及其参数的详细信息,请在紧挨着 /? 之前指定一个选项。 示例: DISM.exe /Mount-Wim /?
start /wait DISM.exe /Online /Add-Package /PackagePath:c:\temp\976571\Windows6.1-KB976571-v2-x64.cab /Quiet /NoRestartYou could use a similar command to uninstall an update using DISM. Here’s the syntax for that:DISM.exe /Online /Remove-Package /PackagePath:c:\temp\976571\Wi...
Dism /online /Add-Package /PackagePath:C:\packages\package.cab /NoRestart /quiet /ScratchDir:<path_to_scratchdirectory> Specifies a temporary directory that will be used when extracting files for temporary use during servicing. The directory must exist locally. If not specified, the \Windows\%Tem...
Dism /online /Add-Package /PackagePath:C:\packages\package.cab /NoRestart /quiet /ScratchDir:<path_to_scratchdirectory> Specifies a temporary directory that will be used when extracting files for temporary use during servicing. The directory must exist locally. If not specified, the \Windows\%Tem...