< Back

Convert-DscResourceToCommand

Tue Jan 14, 2020 3:49 am

NAME Convert-DscResourceToCommand



SYNOPSIS

Creates commands from DSC resources.





SYNTAX

Convert-DscResourceToCommand -Resource <DscResourceInfo[]> [-CommandDefinition <Hashtable>] [-IncludeVerb

<String[]>] [-ExcludeVerb <String[]>] [-ExcludeProperty <String[]>] [-ExcludeMandatory] [-MockWhatIf] [-HardPrefix

<String>] [-DefaultResourceModuleName <String>] [-NoValidateSet] [-ModuleName <String>] [-PassThru]

[<CommonParameters>]



Convert-DscResourceToCommand -Resource <DscResourceInfo[]> [-CommandDefinition <Hashtable>] [-IncludeVerb

<String[]>] [-ExcludeVerb <String[]>] [-ExcludeProperty <String[]>] [-ExcludeMandatory] [-MockWhatIf] [-HardPrefix

<String>] [-DefaultResourceModuleName <String>] [-NoValidateSet] [-ModuleName <String>] -AsCustomObject [-Force]

[<CommonParameters>]



Convert-DscResourceToCommand -Resource <DscResourceInfo[]> [-CommandDefinition <Hashtable>] [-IncludeVerb

<String[]>] [-ExcludeVerb <String[]>] [-ExcludeProperty <String[]>] [-ExcludeMandatory] [-MockWhatIf] [-HardPrefix

<String>] [-DefaultResourceModuleName <String>] [-NoValidateSet] [-ModuleName <String>] [-Prefix <String>]

[-NoClobber] [-DisableNameChecking] [-PassThru] -Import [-Force] [<CommonParameters>]



Convert-DscResourceToCommand -Resource <DscResourceInfo[]> [-CommandDefinition <Hashtable>] [-IncludeVerb

<String[]>] [-ExcludeVerb <String[]>] [-ExcludeProperty <String[]>] [-ExcludeMandatory] [-MockWhatIf] [-HardPrefix

<String>] [-DefaultResourceModuleName <String>] [-NoValidateSet] -AsString [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Resource <DscResourceInfo[]>



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-CommandDefinition <Hashtable>



Required? false

Position? named

Default value Module Defaults

Accept pipeline input? false

Accept wildcard characters? false



-IncludeVerb <String[]>



Required? false

Position? named

Default value *

Accept pipeline input? false

Accept wildcard characters? true



-ExcludeVerb <String[]>



Required? false

Position? named

Default value Get

Accept pipeline input? false

Accept wildcard characters? true



-ExcludeProperty <String[]>



Required? false

Position? named

Default value *:DependsOn

Accept pipeline input? false

Accept wildcard characters? true



-ExcludeMandatory [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-MockWhatIf [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-HardPrefix <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DefaultResourceModuleName <String>



Required? false

Position? named

Default value PSDesiredStateConfiguration

Accept pipeline input? false

Accept wildcard characters? false



-NoValidateSet [<SwitchParameter>]



Required? false

Position? named

Default value $AsCustomObject

Accept pipeline input? false

Accept wildcard characters? false



-ModuleName <String>



Required? false

Position? named

Default value Idempotion.Tincture

Accept pipeline input? false

Accept wildcard characters? false



-Prefix <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NoClobber [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-DisableNameChecking [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-PassThru [<SwitchParameter>]



Required? false

Position? named

Default value Always active when creating a module without importing it

Accept pipeline input? false

Accept wildcard characters? false



-Import [<SwitchParameter>]



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-AsCustomObject [<SwitchParameter>]



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-AsString [<SwitchParameter>]



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSModuleInfo



System.Management.Automation.PSModuleInfo



System.Management.Automation.PSObject



System.String







RELATED LINKS