DSCResources/MSFT_xSPServiceInstance/MSFT_xSPServiceInstance.schema.mof
/*
**Description** This resource is used to specify if a specific service should be running (Ensure = "Present") or not running (Ensure = "Absent") on the current server. The name is the display name of the service as shown in the Central Admin website. **Examples** xSPServiceInstance ManagedMetadataServiceInstance { Name = "Managed Metadata Web Service" Ensure = "Present" InstallAccount = $InstallAccount } xSPServiceInstance StopBCSServiceInstance { Name = "Business Data Connectivity Service" Ensure = "Absent" InstallAccount = $InstallAccount } */ [ClassVersion("1.0.0.0"), FriendlyName("xSPServiceInstance")] class MSFT_xSPServiceInstance : OMI_BaseResource { [Key] string Name; [Write, EmbeddedInstance("MSFT_Credential")] String InstallAccount; [Required, ValueMap{"Present","Absent"}, Values{"Present","Absent"}] string Ensure; }; |