選擇性。 有效的DismPackageIdentifier列舉值。 值描述 PackageName當您想要使用套件名稱指定封裝時,請使用此值。 PackagePath當您想要使用.cab檔案的絕對路徑來指定封裝時,請使用此值。 PackageNone不是這個函式的有效值。 CancelEvent[in, optional] 選擇性。 您可以設定此函式的CancelEvent,以便在用戶端發出訊號時...
DISM Removes a package from a Windows image. Syntax PowerShell Remove-WindowsPackage[-PackagePath <String>] [-PackageName <String>] [-NoRestart]-Path<String> [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<...
Module: Dism 本文内容 Syntax Description Examples Parameters 显示另外 3 个 Removes an app package (.appx) from a Windows image.SyntaxPowerShell 复制 Remove-AppxProvisionedPackage -PackageName <String> [-AllUsers] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath...
Add-AppxPackage Add-AppxVolume Dismount-AppxVolume Get-AppSharedPackageContainer Get-AppxDefaultVolume Get-AppxLastError Get-AppxLog Get-AppxPackage Get-AppxPackageAutoUpdateSettings Get-AppxPackageManifest Get-AppxVolume Invoke-CommandInDesktopPackage ...
Dism /Image:C:\test\offline /Get-Intl Type the following command to remove a language pack from the image. You can remove multiple .cab files by using one command-line statement. Copy Dism /Image:C:\test\offline /Remove-Package /PackagePath:C:\packages\package1.cab /PackagePath:C:\...
Microsoft.Dism.Commands.ImageObject ExamplesExample 1: Remove a package from a running operating system imageThis command removes the specified package from the running Windows operating system.PowerShell Copy PS C:\> Remove-WindowsPackage –Online –PackageName "Microsoft-Windows-Backup-Package~31bf...
For example, you can use the following command to remove the IIS Web Server package from Server Core for Windows Server 2008 R2 Enterprise Edition: Copy dism /online /disable-feature /packagename:Microsoft-Windows-ServerEnterpriseCoreEdition~31bf3856ad364e35~amd64~~6.1.7600.16385 /featurename:Mi...
Passes the MSI package name and the MSI package location to Windows Installer. Passes names of one or more .msp files to Windows Installer. The Ocsetup.exe tool also accepts configuration information that is supplied as an unattended file. For more information, see ...
command and press Enter to remove Xbox Game Bar from your computer: dism /Online /Get-ProvisionedAppxPackages | Select-String PackageName | Select-String xbox | ForEach-Object {$_.Line.Split(‘:’)[1].Trim()} | ForEach-Object { dism /Online /Remove-ProvisionedAppxPackage /PackageName:...
Dism /Online /Cleanup-Image /ScanHealth Dism /Online /Cleanup-Image /RestoreHealth Final Words What is SecureBootEncodeUEFI.exe? How to fix infected SecureBootEncodeUEFI.exe? This post provides a full introduction for you. I hope that this post will be useful to you....