Contenido

Microsoft Windows se envía con un conjunto de las llamadas características opcionales que los usuarios pueden habilitar o deshabilitar usando el subprograma del panel de control «activar o desactivar las características de Windows».

Esto funciona bien en su mayor parte, pero requiere que abra el Panel de control en el sistema operativo a menos que cargue la ventana Características directamente escribiendo opcionales en Inicio.

Si bien eso es suficiente la mayor parte del tiempo, los administradores también pueden usar PowerShell para administrar funciones opcionales del sistema operativo Windows.

La siguiente guía le proporciona una descripción general de cómo funciona eso en Windows 10. Tenga en cuenta que es posible que esto no funcione en versiones anteriores de Windows, como Windows 7.

Windows PowerShell: instale características opcionales

Necesitas un PowerShell elevado para los siguientes comandos. Toque la tecla de Windows, escriba powershell, mantenga presionada la tecla Ctrl y la tecla Shift, y toque la tecla Enter para abrir un indicador de PowerShell con privilegios administrativos.

Enumere todas las funciones opcionales y su estado

características opcionales de powershell

Lo primero que puede querer hacer, al menos cuando sea nuevo en el uso del comando, es mostrar la lista de funciones que están disponibles.

correr get-windowsoptionalfeature -online para enumerar todos los nombres de funciones disponibles y sus estados en el sistema informático. El estado está habilitado o deshabilitado.

Nota: el parámetro -online significa que las acciones se ejecutan en el dispositivo actual.

Si bien es bastante fácil identificar algunas características por el nombre de la característica, no es fácil para todas.

La siguiente lista es de una versión 1809 de Windows 10 Pro

  • FeatureName: Printing-PrintToPDFServices-Features
  • FeatureName: Definiciones predeterminadas de Windows Defender
  • FeatureName: Printing-XPSServices-Features
  • FeatureName: SearchEngine-Client-Package
  • FeatureName: MSRDC-Infraestructura
  • FeatureName: TelnetClient
  • Nombre de característica: TFTP
  • FeatureName: TIFFIFilter
  • FeatureName: WorkFolders-Client
  • FeatureName: LegacyComponents
  • FeatureName: DirectPlay
  • FeatureName: Printing-Foundation-Features
  • FeatureName: FaxServicesClientPackage
  • FeatureName: Printing-Foundation-InternetPrinting-Client
  • FeatureName: Printing-Foundation-LPDPrintService
  • FeatureName: Printing-Foundation-LPRPortMonitor
  • FeatureName: SimpleTCP
  • FeatureName: MicrosoftWindowsPowerShellV2Root
  • FeatureName: MicrosoftWindowsPowerShellV2
  • FeatureName: Windows-Identity-Foundation
  • FeatureName: Microsoft-Windows-Subsystem-Linux
  • FeatureName: HypervisorPlatform
  • FeatureName: VirtualMachinePlatform
  • FeatureName: Cliente-ProjFS
  • Nombre de característica: NetFx4-AdvSrvs
  • Nombre de característica: NetFx4Extended-ASPNET45
  • FeatureName: IIS-WebServerRole
  • FeatureName: IIS-WebServer
  • FeatureName: IIS-CommonHttpFeatures
  • FeatureName: IIS-HttpErrors
  • FeatureName: IIS-HttpRedirect
  • FeatureName: IIS-ApplicationDevelopment
  • FeatureName: IIS-NetFxExtensibility
  • Nombre de característica: IIS-NetFxExtensibility45
  • FeatureName: IIS-HealthAndDiagnostics
  • FeatureName: IIS-HttpLogging
  • FeatureName: IIS-LoggingLibraries
  • FeatureName: IIS-RequestMonitor
  • FeatureName: IIS-HttpTracing
  • FeatureName: IIS-Security
  • FeatureName: IIS-URLAuthorization
  • FeatureName: IIS-RequestFiltering
  • Nombre de característica: IIS-IPSecurity
  • FeatureName: IIS-Performance
  • FeatureName: IIS-HttpCompressionDynamic
  • FeatureName: IIS-WebServerManagementTools
  • FeatureName: IIS-ManagementScriptingTools
  • FeatureName: IIS-IIS6ManagementCompatibility
  • FeatureName: IIS-Metabase
  • FeatureName: WAS-WindowsActivationService
  • FeatureName: WAS-ProcessModel
  • FeatureName: WAS-NetFxEnvironment
  • FeatureName: WAS-ConfigurationAPI
  • FeatureName: IIS-HostableWebCore
  • FeatureName: IIS-StaticContent
  • FeatureName: IIS-DefaultDocument
  • FeatureName: IIS-DirectoryBrowsing
  • Nombre de característica: IIS-WebDAV
  • Nombre de característica: IIS-WebSockets
  • FeatureName: IIS-ApplicationInit
  • Nombre de característica: IIS-ASPNET
  • Nombre de característica: IIS-ASPNET45
  • Nombre de característica: IIS-ASP
  • Nombre de característica: IIS-CGI
  • FeatureName: IIS-ISAPIExtensions
  • FeatureName: IIS-ISAPIFilter
  • FeatureName: IIS-ServerSideIncludes
  • FeatureName: IIS-CustomLogging
  • FeatureName: IIS-BasicAuthentication
  • FeatureName: IIS-HttpCompressionStatic
  • FeatureName: IIS-ManagementConsole
  • FeatureName: IIS-ManagementService
  • FeatureName: IIS-WMICompatibility
  • FeatureName: IIS-LegacyScripts
  • FeatureName: IIS-LegacySnapIn
  • FeatureName: IIS-FTPServer
  • Nombre de característica: IIS-FTPSvc
  • FeatureName: IIS-FTPExtensibility
  • FeatureName: WCF-Services45
  • FeatureName: WCF-HTTP-Activation45
  • FeatureName: WCF-TCP-Activation45
  • FeatureName: WCF-Pipe-Activation45
  • FeatureName: WCF-MSMQ-Activation45
  • FeatureName: WCF-TCP-PortSharing45
  • FeatureName: MSMQ-Container
  • FeatureName: servidor MSMQ
  • FeatureName: MSMQ-Triggers
  • FeatureName: MSMQ-ADIntegration
  • Nombre de característica: MSMQ-HTTP
  • Nombre de característica: MSMQ-Multicast
  • Nombre de característica: MSMQ-DCOMProxy
  • FeatureName: WCF-HTTP-Activation
  • FeatureName: Activación WCF-NonHTTP
  • FeatureName: IIS-CertProvider
  • FeatureName: IIS-WindowsAuthentication
  • FeatureName: IIS-DigestAuthentication
  • FeatureName: IIS-ClientCertificateMappingAuthentication
  • FeatureName: IIS-IISCertificateMappingAuthentication
  • FeatureName: IIS-ODBCLogging
  • Nombre de característica: NetFx3
  • FeatureName: SMB1Protocol
  • FeatureName: SMB1Protocol-Client
  • FeatureName: SMB1Protocol-Server
  • FeatureName: SMB1Protocol-Deprecation
  • FeatureName: MediaPlayback
  • FeatureName: WindowsMediaPlayer
  • FeatureName: Microsoft-Windows-NetFx3-OC-Package
  • FeatureName: Microsoft-Windows-NetFx4-US-OC-Package
  • FeatureName: Microsoft-Windows-Client-EmbeddedExp-Package
  • FeatureName: Microsoft-Windows-NetFx3-WCF-OC-Package
  • FeatureName: Microsoft-Windows-NetFx4-WCF-US-OC-Package
  • FeatureName: Containers-DisposableClientVM
  • Nombre de característica: Microsoft-Hyper-V-All
  • Nombre de característica: Microsoft-Hyper-V
  • FeatureName: Microsoft-Hyper-V-Tools-All
  • Nombre de característica: Microsoft-Hyper-V-Management-PowerShell
  • FeatureName: Microsoft-Hyper-V-Hypervisor
  • FeatureName: Microsoft-Hyper-V-Services
  • FeatureName: Microsoft-Hyper-V-Management-Clients
  • FeatureName: HostGuardian
  • FeatureName: Client-DeviceLockdown
  • FeatureName: Client-EmbeddedShellLauncher
  • FeatureName: Client-EmbeddedBootExp
  • FeatureName: Client-EmbeddedLogon
  • FeatureName: Client-KeyboardFilter
  • FeatureName: Client-UnifiedWriteFilter
  • FeatureName: DataCenterBridging
  • FeatureName: DirectoryServices-ADAM-Client
  • FeatureName: Windows-Defender-ApplicationGuard
  • FeatureName: ServicesForNFS-ClientOnly
  • FeatureName: ClientForNFS-Infrastructure
  • FeatureName: NFS-Administration
  • FeatureName: Contenedores
  • FeatureName: SmbDirect
  • FeatureName: Conector multipunto
  • FeatureName: MultiPoint-Connector-Services
  • FeatureName: MultiPoint-Tools
  • FeatureName: AppServerClient
  • FeatureName: Internet-Explorer-Opcional-amd64

Mostrar información sobre funciones

Powershell-muestra información sobre características

Puede usar el parámetro -featurename Example para mostrar información detallada sobre una característica que le interesa.

El comando get-windowsoptionalfeature -online -featurename NetFx3, por ejemplo, revela que esto instala .Net Framework 3.5 en el sistema. También se proporciona un enlace de Internet en el que puede hacer clic para buscar información adicional en línea.

Habilitar o deshabilitar una función opcional

Puede usar los comandos de PowerShell para habilitar o deshabilitar funciones opcionales en una máquina con Windows 10.

Los comandos Enable-WindowsOptionalFeature -FeatureName y Disable-WindowsOptionalFeature -FeatureName se utilizan para eso.

Para darle dos ejemplos para mostrarle cómo funciona:

  • Enable-WindowsOptionalFeature -Online -FeatureName «NetFx3» -Todos – Este comando instala Net Framework 3.5 en la computadora en la que se ejecuta el comando.
  • Disable-WindowsOptionalFeature -Online -FeatureName «NetFx3» – Este comando deshabilita la función nuevamente.

El parámetro -All le dice a Windows que también instale las dependencias. Por lo tanto, si se requiere una función principal para la instalación de la función seleccionada, también se instala. Nota: Disable no admite el parámetro -All.

Recursos

Por Deyanira