/// <summary> /// Removes the capability from an image. /// </summary> /// <param name="session">A valid DISM Session. The DISM Session must be associated with an image. You can associate a session with an image by using the DismOpenSession Function.</param> /// <param name="capabilityName">The name of the capability that is being removed</param> /// <exception cref="DismException">When a failure occurs.</exception> /// <exception cref="DismRebootRequiredException">When the operation requires a reboot to complete.</exception> public static void RemoveCapability(DismSession session, string capabilityName) { DismApi.RemoveCapability(session, capabilityName, null, null); }