Win32_ServerFeature

Win32 Server Feature
root/cimv2dynamiqueobsolèteclé : ID

La classe Win32_ServerFeature représente les fonctionnalités installées sur un ordinateur exécutant Windows Server.

Sur cette page

Exemple principal

Lister les instances

# Toutes les instances de Win32_ServerFeature, avec les propriétés principales
Get-CimInstance -ClassName Win32_ServerFeature |
    Select-Object -Property ID, Name, ParentID

Exemples

Filtrer avec WQL

# Filtre WQL évalué par le fournisseur : noms commençant par « a » (le joker WQL est %)
Get-CimInstance -ClassName Win32_ServerFeature -Filter "Name LIKE 'a%'" |
    Select-Object -Property ID, Name, ParentID

Le filtre est évalué par le fournisseur WMI : moins de données transitent qu'avec Where-Object.

Interroger un ordinateur distant (session CIM)

à vérifier avant exécution
# Nom de l'ordinateur distant
$computerName = 'SERVER01'
# La session CIM (WSMan par défaut) est réutilisable pour plusieurs requêtes
$cimSession = New-CimSession -ComputerName $computerName
try {
    Get-CimInstance -CimSession $cimSession -ClassName Win32_ServerFeature |
        Select-Object -Property ID, Name, ParentID
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) est utilisé par défaut. Pour un hôte sans WinRM, créez la session avec -SessionOption (New-CimSessionOption -Protocol Dcom). Ajoutez -Credential pour un autre compte.

Afficher la structure de la classe

# Structure de la classe : propriétés, types et indicateurs (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName Win32_ServerFeature
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Propriétés

3 sur 3 propriétés
NomTypeAccèsDescription
ID cléuint32lecture/écriture
Code
# Valeur de ID pour chaque instance
Get-CimInstance -ClassName Win32_ServerFeature -Property ID |
    Select-Object -Property ID

Avertissement. Modifie le système : vérifiez d'abord avec -WhatIf. Une console administrateur est souvent nécessaire.

# Attention : modifie ID sur l'instance. -WhatIf affiche l'opération sans l'exécuter.
# Instance cible
$instance = Get-CimInstance -ClassName Win32_ServerFeature -Filter 'ID = 0'
$setParameters = @{
    InputObject = $instance
    Property    = @{ ID = 0 }
    WhatIf      = $true  # Retirez cette ligne pour appliquer réellement la modification
}
Set-CimInstance @setParameters
Namestringlecture
Code
# Valeur de Name pour chaque instance
Get-CimInstance -ClassName Win32_ServerFeature -Property ID, Name |
    Select-Object -Property ID, Name
ParentIDuint32lecture
Code
# Valeur de ParentID pour chaque instance
Get-CimInstance -ClassName Win32_ServerFeature -Property ID, ParentID |
    Select-Object -Property ID, ParentID

Remarques

Read the Windows Server 2008 Server Manager Technical Overview) to learn about server features.

Enterprises that do not use management software that reports server features, such as System Center Operations Manager with management packs installed, can get that information by querying the Win32_ServerFeature class.

You can use the remoting features of WMI or WinRM to get server feature information from remote servers. For more information about remote WMI DCOM connections, see Connecting to WMI on a Remote Computer. For more information about WinRM, see Windows Remote Management.

Windows Server 2012: Win32_ServerFeature has been deprecated. To access windows server feature information programmatically, you can use the Server Manager Cmdlets).

### Windows Server 2012 R2

Application Server

No longer supported

Streaming Media Services

No longer supported

Active Directory Federation Services

No longer supported

DHCP Server

No longer supported

DNS Server

No longer supported

Remote Desktop Services

No longer supported

Windows Server Update Services

No longer supported

Failover Clustering

No longer supported

Network Load Balancing

No longer supported

.NET Framework 3.5.1 Features

No longer supported

Windows System Resource Manager

No longer supported

Windows Server Backup Features

No longer supported

Remote Assistance

No longer supported

Telnet Client

No longer supported

Telnet Server

No longer supported

Subsystem For Unix-based Applications

No longer supported

Windows Internal Database

No longer supported

Storage Manager For SANs

No longer supported

Internet Storage Name Server

No longer supported

Multipath I/O

No longer supported

SNMP Services

No longer supported

Services For Network File System

No longer supported

Peer Name Resolution Protocol

No longer supported

Remote Server Administration Tools

No longer supported

Quality Windows Audio Video Experience

No longer supported

Group Policy Management

No longer supported

Indexing Service

No longer supported

File Server Resource Manager (FSRM)

No longer supported

Windows Server Migration Tools

No longer supported

BranchCache

No longer supported

DirectAccess Management Console

No longer supported

Background Intelligent Transfer Service (BITS)

No longer supported

WoW64 Support

No longer supported

Window Server Update Services

Added

IP Address Management (IPAM) Server

Added

Windows PowerShell

Added

.NET Framework 4.5

Added

Windows Search Service

Added

Client for NFS

Added

BitLocker Network Unlock

Added

Management OData IIS Extension

Added

.NET Framework 4.5 Advanced Services

Added

.NET Framework 4.5 Features

Added

User Interfaces and Infrastructure

Added

Graphical Management Tools and Infrastructure

Added

File and Storage Services

Added

Windows Server Essentials Experience

Added

Direct Play

Added

Distributed File System

No longer supported

File Server Resource Manager

No longer supported

Services For Network File System

No longer supported

Single Instance Storage

No longer supported

Windows Search Service

No longer supported

Indexing Service

No longer supported

iSCSI Target Storage Provider (VDS and VSS hardware providers)

Added

Work Folders

Added

Active Directory Domain Controller

No longer supported

Identity Management For Unix

No longer supported

Server For Network Information Services

No longer supported

Password Synchronization

No longer supported

Administration Tools

No longer supported

Windows Media Server

No longer supported.

Web-based Administration

No longer supported

Logging Agent

No longer supported

Federation Service

No longer supported

Federation Service Policy

No longer supported

AD FS Web Agents

No longer supported

Windows Token-based Agent

No longer supported

Remote Desktop Licensing

No longer supported

Network Policy Server

No longer supported

VPN

No longer supported

Remote Access Services

No longer supported

Routing

No longer supported

Health Registration Authority

No longer supported

Host Credential Authorization Protocol

No longer supported

.NET Framework 3.5.1

No longer supported

XPS Viewer

No longer supported

SNMP Service

No longer supported

SNMP WMI Provider

No longer supported

.NET Framework 3.5.1

No longer supported

Web Server (IIS) Support

No longer supported

COM+ Network Access

No longer supported

TCP Port Sharing

No longer supported

Windows Process Activation Service Support

No longer supported

HTTP Activation

No longer supported

Message Queuing Activation

No longer supported

TCP Activation

No longer supported

Named Pipes Activation

No longer supported

Distributed Transactions

No longer supported

Incoming Remote Transactions

No longer supported

Outgoing Remote Transactions

No longer supported

WS-Automatic Transactions

No longer supported

Application Server Extensions for .NET 4.0

No longer supported

Role Administration Tools

No longer supported

AD DS Tools

No longer supported

AD LDS Snap-Ins and Command-Line Tools

No longer supported

Network Policy and Access Services

No longer supported

Active Directory Rights Management Services

No longer supported

Remote Desktop Services Tools

No longer supported

Feature Administration Tools

No longer supported

Failover Clustering Tools

No longer supported

DNS Server Tools

No longer supported

Services For Network File System Tools

No longer supported

Web Server (IIS) Tools

No longer supported

Server for NIS Tools

No longer supported

AD DS Snap-Ins and Command-Line Tools

No longer supported

AD DS and AD LDS Tools

No longer supported

Remote Desktop Connection Broker Tools

No longer supported

IP Address Management (IPAM) Client

Added

Hyper-V Module for Windows PowerShell

Active Directory Rights Management Services Tool

Added

Share and Storage Management Tool

Added

Remote Access Management Tools

Added

Remote Access module for Windows PowerShell

Added

Remote Access GUI and Command-Line Tools

Added

Windows Server Update Services Tools

Added

Remote Desktop Licensing Diagnoser Tools

Added

SNMP Tools

Added

Volume Activation Tools

Added

Windows Server Backup

No longer supported

Command Line Tools

No longer supported

Ink Support

No longer supported

Handwriting Recognition

No longer supported

Compact Server

No longer supported

WoW64

No longer supported

WoW64 for .NET Framework 2.0 and PowerShell

No longer supported

WoW64 for .NET Framework 2.0

No longer supported

WoW64 for PowerShell

No longer supported

WoW64 for .NET Framework 3.0 and 3.5

No longer supported

WoW64 for Print Services

No longer supported

WoW64 for Failover Clustering

No longer supported

WoW64 for Input Method Editor

No longer supported

WoW64 for Subsystem for UNIX-based Applications

No longer supported

Desktop Experience

Added

Server Graphical Shell

Added

API and PowerShell cmdlets

Added

SQL Server Connectivity

Added

WSUS Services

Added

User Interface Management Console

Added

WID Connectivity

Added

Windows PowerShell 2.0 Engine

Added

Windows PowerShell 3.0

Added

Windows PowerShell Web Access

Added

Windows PowerShell Desired State Configuration Service

Added

.NET Framework 4.5 Extended

Added

WCF Services

Added

HTTP Activation

Added

Message Queuing (MSMQ) Activation

Named Pipe Activation

Added

TCP Activation

Added

TCP Port Sharing

Added

ASP.NET 4.5

Added

.NET Extensibility 4.5

Added

DirectAccess and VPN (RAS)

Added

Routing

Added

Storage Services

Added

Failover Cluster Management Tools

Added

Active Directory Rights Management Services Tools

Added

Application Initialization

Added

Centralized SSL Certificate Support

Added

Claims-aware Agent

No longer supported

Remote Desktop Session Host Tools

No longer supported

WebSocket Protocol

no longer supported

COM+ Network Access

No longer supported

File and iSCSI Services name change

Changed to File Services

### Windows Server 2012

User Interfaces and Infrastructure

Added

Server for NFS

Added

File Server VSS Agent Service

Added

iSCSI Target Server

Added

Data Deduplication

Added

Work Folders

Removed

Core Services

Added for this version only.

Remote Desktop Virtual Graphics

Added for this version only

Remote Access

Added

### Windows Server 2008 R2

UDDI Services

No longer supported

Windows System Resource Manager

No longer supported

Removable Storage Manager

No longer supported

Windows PowerShell

No longer supported

Ink and Handwriting Services

Added

WinRM IIS Extension

Added

DirectAccess Management Console

Added

Background Intelligent Transfer Service (BITS)

Added

XPS Viewer

Added

Windows Biometric Framework

Added

WoW64 Support

Added

Windows PowerShell Integrated Scripting Environment (ISE)

Added

File Replication Service

No longer supported

BranchCache for Network Files

Added

Work Folders

Added

Distributed Scan Server

Added

FTP Publishing Service

No longer supported

FTP Management Console

No longer supported

FTP Service

Added

FTP Extensibility

Added

IIS Hostable Web Core

Windows 2000 Client Support

No longer supported

Certificate Enrollment Web Service

Added

Certificate Enrollment Policy Web Service

Added

UDDI Services Web Application

No longer supported

UDDI Services Database

No longer supported

Application Server Extensions for .NET 4.0

Added

UDDI Services Tools

No longer supported

BitLocker Drive Encryption Administration Utilities

Added

AD DS and AD LDS Tools

No longer supported

AD DS and AD LDS Tools

Added

Active Directory Administrative Center

Added

Active Directory module for Windows PowerShell

Added

Remote Desktop Connection Broker Tools

Added

WoW64

Added

WoW64 for .NET Framework 2.0 and Windows PowerShell

Added

WoW64 for .NET Framework 2.0

Added

WoW64 for PowerShell

Added

WoW64 for .NET Framework 3.0 and 3.5

Added

WoW64 for Print Services

Added

WoW64 for Failover Clustering

Added

WoW64 for Input Method Editor

Added

WoW64 for Subsystem for UNIX-based Applications

Added

BitLocker Recovery Password Viewer

Added

Print and Document Services name change

named Print Services for this release

Remote Desktop Services name change

named Terminal Services in this release

.NET Framework 3.5.1 Features name change

Named .NET Framework 3.0 Features in this release

Remote Desktop Session Host name change

Named Terminal Server in this release

Remote Desktop Licensing name change

Named TS Licensing in this release

Remote Desktop Gateway name change

Named TS Gateway in this release

Remote Desktop Connection Broker name change

Named TS Session Broker in this release

Remote Desktop Web Access name change

Named TS Web Access in this release

.NET Framework 3.5.1 name change

(220) Named Net FX 3.0 Features in this release

(230) Named Application Server Core in this release

AD DS Tools name change

Named Active Directory Domain Services Tools in this release

AD LDS Snap-Ins and Command-Line Tools name change

Named Active Directory Lightweight Directory Services Tools in this release

Print and Document Services Tools name change

Named Print Services Tools in this release

Remote Desktop Services Tools name change

Named Terminal Services Tools in this release

Remote Desktop Session Host Tools name change

Named Terminal Server Tools in this release

Remote Desktop Gateway Tools name change

Named TS Gateway Tools in this release

Remote Desktop Licensing Tools name change

Named TS Licensing Tools in this release

AD DS Snap-Ins and Command-Line Tools name change

Active Directory Domain Controller Tools

Héritage

Chaîne des superclasses

Cette classe n'a pas de superclasse.

Sous-classes connues

Aucune sous-classe connue.

Prérequis

Espace de noms
root/cimv2
Client minimum
None supported
Serveur minimum
Windows Server 2008
Fournisseur
ServerFeatureProvider
Fichier MOF
ServerCompProv.mof
DLL
ServerCompProv.dll
Qualificateurs de classe

Deprecated("No value") Dynamic Provider("ServerFeatureProvider") AMENDMENT

Source Microsoft

Source : Microsoft Learn

Les descriptions, propriétés et méthodes proviennent de la documentation Microsoft (dépôt MicrosoftDocs/win32), publiée sous licence CC BY 4.0. La mise en forme et les traductions sont propres à ce site ; les exemples PowerShell y sont rédigés.