Changed the encoding of mof and psd1 file

This commit is contained in:
Amit Saraf
2019-06-23 21:18:24 -07:00
committed by Travis Plunk
parent 7a32fee8e4
commit 784e5afbdd
7 changed files with 448 additions and 1 deletions
@@ -0,0 +1,34 @@
[ClassVersion("1.0.0"),FriendlyName("LocalConfigurationManager")]
class MSFT_DSCMetaConfiguration
{
uint32 ConfigurationModeFrequencyMins;
boolean RebootNodeIfNeeded;
[ValueMap{"ApplyOnly", "ApplyAndMonitor", "ApplyAndAutoCorrect", "MonitorOnly"},Values{"ApplyOnly", "ApplyAndMonitor", "ApplyAndAutoCorrect", "MonitorOnly"}] string ConfigurationMode;
[ValueMap {"ContinueConfiguration","StopConfiguration"}, Values {"ContinueConfiguration","StopConfiguration"}]
string ActionAfterReboot;
[EmbeddedInstance("MSFT_Credential")] string Credential;
[ValueMap{"Push", "Pull", "Disabled"},Values{"Push", "Pull", "Disabled"}] string RefreshMode;
string CertificateID;
string ConfigurationID;
string DownloadManagerName;
[EmbeddedInstance("MSFT_KeyValuePair")] string DownloadManagerCustomData[];
uint32 RefreshFrequencyMins;
boolean AllowModuleOverwrite;
[ValueMap {"None","ForceModuleImport", "All", "ResourceScriptBreakAll", "ResourceScriptBreakpoint"}, Values {"None","ForceModuleImport", "All", "ResourceScriptBreakAll", "ResourceScriptBreakpoint"}]
string DebugMode[];
[Read] string LCMVersion;
[Read] string LCMCompatibleVersions[];
[Read,ValueMap{"Idle","Busy","PendingReboot","PendingConfiguration"},Values{"Idle","Busy","PendingReboot","PendingConfiguration"}] string LCMState;
[Read] string LCMStateDetail;
[EmbeddedInstance("OMI_ConfigurationDownloadManager")] string ConfigurationDownloadManagers[];
[EmbeddedInstance("OMI_ResourceModuleManager")] string ResourceModuleManagers[];
[EmbeddedInstance("OMI_ReportManager")] string ReportManagers[];
[EmbeddedInstance("MSFT_PartialConfiguration")] string PartialConfigurations[];
uint32 StatusRetentionTimeInDays;
[Read] string AgentId;
string SignatureValidationPolicy;
[EmbeddedInstance("MSFT_SignatureValidation")]
string SignatureValidations[];
uint32 MaximumDownloadSizeMB;
};
@@ -0,0 +1,97 @@
[ClassVersion("1.0.0"), FriendlyName("ConfigurationRepositoryWeb")]
class MSFT_WebDownloadManager : OMI_ConfigurationDownloadManager
{
[Key] string ServerURL;
string CertificateID;
boolean AllowUnsecureConnection;
string RegistrationKey;
string ConfigurationNames[];
string ProxyURL;
[EmbeddedInstance("MSFT_Credential")] string ProxyCredential;
};
[ClassVersion("1.0.0"), FriendlyName("ConfigurationRepositoryShare")]
class MSFT_FileDownloadManager : OMI_ConfigurationDownloadManager
{
[Key] string SourcePath;
[EmbeddedInstance("MSFT_Credential")] string Credential;
};
[ClassVersion("1.0.0"), FriendlyName("ResourceRepositoryWeb")]
class MSFT_WebResourceManager : OMI_ResourceModuleManager
{
[Key] string ServerURL;
string CertificateID;
boolean AllowUnsecureConnection;
string RegistrationKey;
string ProxyURL;
[EmbeddedInstance("MSFT_Credential")] string ProxyCredential;
};
[ClassVersion("1.0.0"), FriendlyName("ResourceRepositoryShare")]
class MSFT_FileResourceManager : OMI_ResourceModuleManager
{
[Key] string SourcePath;
[EmbeddedInstance("MSFT_Credential")] string Credential;
};
[ClassVersion("1.0.0"), FriendlyName("ReportServerWeb")]
class MSFT_WebReportManager : OMI_ReportManager
{
[Key] string ServerURL;
string CertificateID;
boolean AllowUnsecureConnection;
string RegistrationKey;
string ProxyURL;
[EmbeddedInstance("MSFT_Credential")] string ProxyCredential;
};
[ClassVersion("1.0.0"), FriendlyName("PartialConfiguration")]
class MSFT_PartialConfiguration : OMI_MetaConfigurationResource
{
[Write] String Description;
[Write] String ExclusiveResources[];
[Write] String ConfigurationSource[];
[Write] String ResourceModuleSource[];
[Write] String DependsOn[];
[ValueMap{"Push", "Pull", "Disabled"},Values{"Push", "Pull", "Disabled"}] string RefreshMode;
};
[ClassVersion("1.0.0"), FriendlyName("SignatureValidation")]
class MSFT_SignatureValidation : OMI_MetaConfigurationResource
{
[Write]string TrustedStorePath;
[ValueMap{"Configuration","Module"},Values{"Configuration","Module"}]string SignedItemType[];
};
[ClassVersion("2.0.0"),FriendlyName("Settings")]
class MSFT_DSCMetaConfigurationV2
{
uint32 ConfigurationModeFrequencyMins;
boolean RebootNodeIfNeeded;
[ValueMap{"ApplyOnly", "ApplyAndMonitor", "ApplyAndAutoCorrect", "MonitorOnly"},Values{"ApplyOnly", "ApplyAndMonitor", "ApplyAndAutoCorrect", "MonitorOnly"}] string ConfigurationMode;
[ValueMap {"ContinueConfiguration","StopConfiguration"}, Values {"ContinueConfiguration","StopConfiguration"}]
string ActionAfterReboot;
[ValueMap{"Push", "Pull", "Disabled"},Values{"Push", "Pull", "Disabled"}] string RefreshMode;
string CertificateID;
string ConfigurationID;
uint32 RefreshFrequencyMins;
boolean AllowModuleOverwrite;
[ValueMap {"None","ForceModuleImport", "All", "ResourceScriptBreakAll", "ResourceScriptBreakpoint"}, Values {"None","ForceModuleImport", "All", "ResourceScriptBreakAll", "ResourceScriptBreakpoint"}]
string DebugMode[];
[Read] string LCMVersion;
[Read] string LCMCompatibleVersions[];
[Read,ValueMap{"Idle", "Busy", "PendingReboot", "PendingConfiguration"},Values{"Idle", "Busy", "PendingReboot", "PendingConfiguration"}] string LCMState;
[Read] string LCMStateDetail;
[EmbeddedInstance("OMI_ConfigurationDownloadManager")] string ConfigurationDownloadManagers[];
[EmbeddedInstance("OMI_ResourceModuleManager")] string ResourceModuleManagers[];
[EmbeddedInstance("OMI_ReportManager")] string ReportManagers[];
[EmbeddedInstance("MSFT_PartialConfiguration")] string PartialConfigurations[];
uint32 StatusRetentionTimeInDays;
[Read] string AgentId;
string SignatureValidationPolicy;
[EmbeddedInstance("MSFT_SignatureValidation")]
string SignatureValidations[];
uint32 MaximumDownloadSizeMB;
};
@@ -0,0 +1,87 @@
#pragma namespace("\\\\.\\root\\default")
instance of __namespace{ name="ms_409";};
#pragma namespace("\\\\.\\root\\default\\ms_409")
[Description("Base schema for all configuration providers that will be imported by powershell extension.") : Amended,AMENDMENT, LOCALE("ms_409")]
class OMI_BaseResource
{
[Description("Unique Id for a resource instance.") : Amended] string ResourceId;
[Description("Source Info to correlate it back to powershell configuration script.") : Amended] string SourceInfo;
[Description("List of resources this resource depends on.") : Amended] string DependsOn[];
[Description("Name of the module that supports this resource.")] string ModuleName;
[Description("Version of the module that supports this resource.")] string ModuleVersion;
[Description("Name of the Partial Configuration that this resource belongs to.")] string ConfiguratioName;
[Description("Credentials under which the resource runs. ")] string PsDscRunAsCredential;
};
[Description("This class represents a key-value pair.") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_KeyValuePair
{
};
[Description("Base schema for configuration provider registration that maps a provider to some configuration engine related information.") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_BaseConfigurationProviderRegistration
{
};
[Description("Base schema for configuration provider registration that maps a cim provider to namespace.") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_CimConfigurationProviderRegistration : MSFT_BaseConfigurationProviderRegistration
{
};
[Description("Base schema for configuration provider registration that maps a powershell provider to its module.") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_PSConfigurationProviderRegistration : MSFT_BaseConfigurationProviderRegistration
{
};
[Description("Base schema for configuration document information.") : Amended,AMENDMENT, LOCALE("ms_409")]
class OMI_ConfigurationDocument
{
[Description("Configuration document version information, configuration engine can use to log.") : Amended] String Version;
[Description("Configuration document Author information.") : Amended] String Author;
[Description("Configuration document Copyright information.") : Amended] String Copyright;
[Description("Configuration document Help URI.") : Amended] String HelpInfoUri;
[Description("Configuration document Content Type. Only PasswordEncrypted and NotEncrypted are supported. Default value is NotEncrypted.") : Amended] String ContentType;
[Description("Configuration document generation date.") : Amended] String GenerationDate;
[Description("Configuration document generation host.") : Amended] String GenerationHost;
[Description("Configuration document name.") : Amended] String Name;
[Description("Configuration document minimum version requirement for compatibility with the target DSC version.") : Amended] String MinimumCompatibleVersion;
[Description("Additional properties (if any) that are required by the version of this document over 1.0.0 for version compatibility.") : Amended] String CompatibleVersionAdditionalProperties[];
[Description("Configuration document is encrypted using Cryptographic Message Syntax format.") : Amended] boolean UseCms;
};
[Description ("Credential to use for DSC configuration providers." ) : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_Credential
{
[Description("UserName is the name of the user for an authorization service to map to an identity." ) : Amended] string UserName;
[Description("UserPassword property may contain a password used to access resources." ) : Amended] string Password;
};
[Description("Base schema for all Metaconfiguration resources .") : Amended,AMENDMENT, LOCALE("ms_409")]
class OMI_MetaConfigurationResource
{
};
[Description("Class defining the structure of resource module managers") : Amended,AMENDMENT, LOCALE("MS_409")]
class OMI_ResourceModuleManager : OMI_MetaConfigurationResource
{
[Description("Name of the resource module Manager.") : Amended] string Name;
[Description("Priority of the resource module manager.") : Amended] uint32 Priority;
};
[Description("Class defining the configuration download manager") : Amended,AMENDMENT, LOCALE("MS_409")]
class OMI_ConfigurationDownloadManager : OMI_MetaConfigurationResource
{
[Description("Name of the configuration download Manager.") : Amended] string Name;
};
[Description("Class defining a report manager") : Amended,AMENDMENT, LOCALE("MS_409")]
class OMI_ReportManager : OMI_MetaConfigurationResource
{
[Description("Name of the report manager") : Amended] string Name;
[Description("Custom data that is specific to Report Manager.") : Amended] string CustomData[];
};
@@ -0,0 +1,34 @@
#pragma namespace("\\\\.\\root\\default")
instance of __namespace{ name="MS_409";};
#pragma namespace("\\\\.\\root\\default\\MS_409")
[Description("Local Configuration Manager settings.") : Amended,AMENDMENT, LOCALE("MS_409")]
class MSFT_DSCMetaConfiguration
{
[Description("The time interval between consecutive runs for reapplying the configuration to get to the desired state.") : Amended] uint32 ConfigurationModeFrequencyMins;
[Description("Reboot node if needed.") : Amended] boolean RebootNodeIfNeeded;
[Description("The configuration apply mode for the server.") : Amended] string ConfigurationMode;
[Description("The configuration action after reboot for the server.") : Amended] string ActionAfterReboot;
[Description("Default credential to access resources.") : Amended] string Credential;
[Description("The refresh mode for the server. Valid values are Pull, Push and Disabled.") : Amended] string RefreshMode;
[Description("The certificate ID used to locate the certificate.") : Amended] string CertificateID;
[Description("The configuration ID used to get the configuration from the pull server.") : Amended] string ConfigurationID;
[Description("Name of the configuration and module Download Manager.") : Amended] string DownloadManagerName;
[Description("Custom data that is specific to Download Manager.") : Amended] string DownloadManagerCustomData[];
[Description("The time interval between consecutive runs to get the action from the server.") : Amended] uint32 RefreshFrequencyMins;
[Description("Overwrite modules when downloading from Pull Server.") : Amended] boolean AllowModuleOverwrite;
[Description("The enumeration for DebugMode.") : Amended ToSubclass,Values{"None", "ForceModuleImport", "All", "ResourceScriptBreakAll", "ResourceScriptBreakpoint"} : Amended ToSubclass] string DebugMode[];
[Description("Current version of local configuration manager.") : Amended] string LCMVersion;
[Description("Compatible versions of current local configuration manager.") : Amended] string LCMCompatibleVersions[];
[Description("Current state of local configuration manager.") : Amended] string LCMState;
[Description("State detail of local configuration manager.") : Amended] string LCMStateDetail;
[Description("Array of configuration download manager objects that contain location information to download configurations") : Amended] string ConfigurationDownloadManagers[];
[Description("Array of resource module managers pointing to a location to download missing DSCResources") : Amended] string ResourceModuleManagers[];
[Description("Array of report managers pointing to a location that would help generate reports for DSC") : Amended] string ReportManagers[];
[Description("Array of partial configurations that are specified to be applied") : Amended] string PartialConfigurations[];
[Description("Number of days to retain configuration status history.") : Amended] uint32 StatusRetentionTimeInDays;
[Description("AgentId of the current Dsc Agent.") : Amended ToSubclass] string AgentId;
[Description("Current signature validation policy.") : Amended] string SignatureValidationPolicy;
[Description ("The signature validation options of the node.") : Amended] string SignatureValidations[];
[Description ("The maximum module size in MB that can be downloaded.") : Amended] uint32 MaximumDownloadSizeMB;
};
@@ -0,0 +1,89 @@
#pragma namespace("\\\\.\\root\\default")
instance of __namespace{ name="ms_409";};
#pragma namespace("\\\\.\\root\\default\\ms_409")
[Description("Web download manager class inheriting from OMI_ConfigurationDownloadManager") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_WebDownloadManager : OMI_ConfigurationDownloadManager
{
[Description("String URL of the download manager location") : Amended] string ServerURL;
[Description("The certificate ID used to locate the certificate.") : Amended] string CertificateID;
[Description("Specifies whether report manager can use unsecure connection over http.") : Amended] boolean AllowUnsecureConnection;
[Description("Registration Key with which to register with the Pull Server") : Amended ToSubclass] string RegistrationKey;
[Description("The set of configuration names with which to register with the Pull Server.") : Amended] string ConfigurationNames[];
[Description("String URL of the proxy server") : Amended] string ProxyURL;
[Description("Credential to access the proxy server") : Amended] MSFT_Credential ProxyCredential;
};
[Description("File configuration download manager class inheriting from OMI_ConfigurationDownloadManager") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_FileDownloadManager : OMI_ConfigurationDownloadManager
{
[Description("String UNC path of the download manager location") : Amended] string SourcePath;
[Description("Default credential to access the file location") : Amended] string Credential;
};
[Description("Web resource module manager class inheriting from OMI_ResourceModuleManager") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_WebResourceManager : OMI_ResourceModuleManager
{
[Description("String URL of the resource module manager location") : Amended] string ServerURL;
[Description("The certificate ID used to locate the certificate.") : Amended] string CertificateID;
[Description ("Boolean variable to allow unsecure connections" ) : Amended] boolean AllowUnsecureConnection;
[Description("Registration Key with which to register with the Resource Repository Web") : Amended ToSubclass] string RegistrationKey;
[Description("String URL of the proxy server") : Amended] string ProxyURL;
[Description("Credential to access the proxy server") : Amended] MSFT_Credential ProxyCredential;
};
[Description("File resource module manager class inheriting from OMI_ResourceModuleManager class") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_FileResourceManager : OMI_ResourceModuleManager
{
[Description("String UNC path of the File resource manager") : Amended] string SourcePath;
[Description("Default credential to access resources.") : Amended] string Credential;
};
[Description("Web report manager class inheriting from OMI_ReportManager class") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_WebReportManager : OMI_ReportManager
{
[Description("String URL of the report manager location") : Amended] string ServerURL;
[Description ("The certificate ID used to locate the certificate for secure connections." ) : Amended] string CertificateID;
[Description("Specifies whether report manager can use unsecure connection over http.") : Amended] boolean AllowUnsecureConnection;
[Description("Registration Key with which to register with the Reporting Server") : Amended ToSubclass] string RegistrationKey;
[Description("String URL of the proxy server") : Amended] string ProxyURL;
[Description("Credential to access the proxy server") : Amended] MSFT_Credential ProxyCredential;
};
[Description("This represents a Partial Configuration class.") : Amended,AMENDMENT, LOCALE("ms_409")]
class MSFT_PartialConfiguration : OMI_MetaConfigurationResource
{
[Description("Description of the partial configuration") : Amended] String Description;
[Description("Defines the resources that are exclusive to this particular partial configuration") : Amended] String ExclusiveResources[];
[Description("The configuration repository source that this partial configuration will use") : Amended] String ConfigurationSource;
[Description("A dependency variable indicating which partial configuration must be applied prior to this") : Amended] String DependsOn[];
[Description("The refresh mode for the server. Valid values are Pull, Push and Disabled.") : Amended] string RefreshMode;
};
[Description("Local Configuration Manager settings.") : Amended,AMENDMENT, LOCALE("MS_409")]
class MSFT_DSCMetaConfigurationV2
{
[Description("The time interval between consecutive runs for reapplying the configuration to get to the desired state.") : Amended] uint32 ConfigurationModeFrequencyMins;
[Description("Reboot node if needed.") : Amended] boolean RebootNodeIfNeeded;
[Description("The configuration apply mode for the server.") : Amended] string ConfigurationMode;
[Description("The refresh mode for the server. Valid values are Pull, Push and Disabled.") : Amended] string RefreshMode;
[Description("The action after reboot of the server. Valid values are ContinueConfiguration andStopConfiguration.") : Amended] string ActionAfterReboot;
[Description("The configuration ID used to get the configuration from the pull server.") : Amended] string ConfigurationID;
[Description("The time interval between consecutive runs to get the action from the server.") : Amended] uint32 RefreshFrequencyMins;
[Description("Overwrite modules when downloading from Pull Server.") : Amended] boolean AllowModuleOverwrite;
[Description("Debug mode. Valid values are None, ForceModuleImport, ResourceScriptBreakAll, ResourceScriptBreakpoint or All") : Amended] string DebugMode[];
[Description("Current version of local configuration manager.") : Amended] string LCMVersion;
[Description("Compatible versions of current local configuration manager.") : Amended] string LCMCompatibleVersions[];
[Description("Current state of local configuration manager.") : Amended] string LCMState;
[Description("State detail of local configuration manager.") : Amended] string LCMStateDetail;
[Description("Array of configuration download manager objects that contain location information to download configurations") : Amended] string ConfigurationDownloadManagers[];
[Description("Array of resource module managers pointing to a location to download missing DSCResources") : Amended] string ResourceModuleManagers[];
[Description("Array of report managers pointing to a location that would help generate reports for DSC") : Amended] string ReportManagers[];
[Description("Array of partial configurations that are specified to be applied") : Amended] string PartialConfigurations[];
[Description("Number of days to retain configuration status history.") : Amended] uint32 StatusRetentionTimeInDays;
[Description("AgentId of the current Dsc Agent.") : Amended] string AgentId;
[Description("Current signature validation policy.") : Amended] string SignatureValidationPolicy;
[Description ("The signature validation options of the node.") : Amended] string SignatureValidations[];
[Description ("The maximum module size in MB that can be downloaded.") : Amended] uint32 MaximumDownloadSizeMB;
};
@@ -0,0 +1,106 @@
#
# Module manifest for module 'PowerShellDSC'
#
# Copyright="© Microsoft Corporation. All rights reserved."
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'PSDesiredStateConfiguration.psm1'
# Version number of this module.
moduleVersion = '2.0'
# Supported PSEditions
CompatiblePSEditions = @('Core')
# ID used to uniquely identify this module
GUID = '779e0998-8c72-4567-89b5-49313fc15351'
# Author of this module
Author = 'Microsoft Corporation'
# Company or vendor of this module
CompanyName = 'Microsoft Corporation'
# Copyright statement for this module
Copyright = '© Microsoft Corporation. All rights reserved.'
# Description of the functionality provided by this module
# Description = ''
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '6.0'
# Name of the Windows PowerShell host required by this module
# PowerShellHostName = ''
# Minimum version of the Windows PowerShell host required by this module
# PowerShellHostVersion = ''
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# DotNetFrameworkVersion = ''
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# CLRVersion = ''
# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''
# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()
# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = @('Configuration',
'Get-DscResource')
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
# Variables to export from this module
VariablesToExport = '*'
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @()
# DSC resources to export from this module
# DscResourcesToExport = @()
# List of all modules packaged with this module
# ModuleList = @()
# List of all files packaged with this module
# FileList = @()
# HelpInfo URI of this module
HelpInfoURI = 'https://go.microsoft.com/fwlink/?linkid=390814'
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''
}
+1 -1
View File
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="3.4">
<id>PSDesiredStateConfiguration</id>
<version>6.2.0</version>
<version>2.0</version>
<title>PSDesiredStateConfiguration</title>
<authors>Microsoft</authors>
<owners>microsoft,powershell</owners>