Enable-WindowsOptionalFeature Expand-WindowsCustomDataImage Expand-WindowsImage Export-WindowsCapabilitySource Export-WindowsDriver Export-WindowsImage Get-AppxProvisionedPackage Get-NonRemovableAppsPolicy Get-WIMBootEntry Get-WindowsCapability Get-WindowsDriver ...
Enable-WindowsOptionalFeature Expand-WindowsCustomDataImage Expand-WindowsImage Export-WindowsCapabilitySource Export-WindowsDriver Export-WindowsImage Get-AppxProvisionedPackage Get-NonRemovableAppsPolicy Get-WIMBootEntry Get-WindowsCapability Get-WindowsDriver ...
Disable-WindowsOptionalFeature -FeatureName <String[]> [-PackageName <String>] [-Remove] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<CommonParameters>]Power...
Disable-WindowsOptionalFeature -FeatureName <String[]> [-PackageName <String>] [-Remove] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [<CommonParameters>]Power...
Parameter Set: Offline Disable-WindowsOptionalFeature -FeatureName <String[]> -Path <String> [-LogLevel <LogLevel> {Errors | Warnings | WarningsInfo} ] [-LogPath <String> ] [-NoRestart] [-PackageName <String> ] [-Remove] [-ScratchDirectory <String> ] [-SystemDrive <String> ] [-Window...
Dism /online /Disable-Feature /FeatureName:Hearts To enable or disable Windows features on a running operating system by using DISM and an answer file In Windows SIM, open an existing catalog by right-clickingSelect a Windows Image or Catalog fileand specifying the catalog file type (.clg) in...
Detect: PowerShell Copy Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol Disable: PowerShell Copy Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol Enable: PowerShell Copy Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol ...
To disable Hyper-V by using Windows PowerShell, follow these steps: Open an elevated PowerShell window. Run the following command: PowerShell Copy Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor Disable Device Guard and Credential Guard You can disable ...
Optional: Get the status of the feature you have enabled. For example, type: Dism /online /Get-FeatureInfo /FeatureName:TFTP If the status isEnable Pending, you must boot the image in order to enable the feature entirely. To restore removed Windows features ...
It would depends on what you did through your script. Did you disable SMB1 server side first then uninstall the feature after that ? Something else ? Did you restart target computers ? On a brand new WS 2019/2022, EnableSMB1Protocol is set to "$false" and Windows Optional feature is se...