Creating a Management OData Web Service

Management ODATA IIS Extension is an infrastructure for creating an ASP.NET web service end point that exposes your management data, accessed through Windows PowerShell cmdlets and scripts, as OData Web service entities. It does that by processing OData requests and converting them into a Windows PowerShell invocation. Product teams can build on top of this infrastructure to create endpoints that expose specific sets of management data.

Download and install the PswsRoleBasedPlugins sample. Follow the instructions to deploy the web service. This web service exposes Services and Processes through Create, Read, Update, and Delete (CRUD) operations. CRUD requests made to the web service invoke Windows PowerShell commands that perform the requested operations. A mapping between the CRUD operations and the underlying Windows PowerShell commands is implemented by two schema files, schema.mof and schema.xml. The schema.mof file uses the Distributed Management Task Force (DMTF) Managed Object (MOF) standard. The schema.xml file uses an XML schema that is described in Resource Mapping Schema.


Before you enabling Management ODATA IIS Extension on Windows Server 2008 R2 SP1, the following features must be enabled.

  1. IIS-WebServerRole
  2. IIS-WebServer
  3. IIS-HttpTracing
  4. IIS-ManagementOData

Steps for creating a Management OData web service

The following topics describe how to create and deploy a Management OData web service.

See Also

Management ODATA IIS Extension Schema Files