< Back

Save-Config

Mon Jan 13, 2020 12:38 am

NAME Save-Config



SYNOPSIS

Saves a configuration





SYNTAX

Save-Config [-Name] <String> [[-Note] <String>] [-Force] [<CommonParameters>]



Save-Config [-Configuration] <ConfigurationInfo> [[-Note] <String>] [-Force] [<CommonParameters>]





DESCRIPTION

Saves a DSC configuration





PARAMETERS

-Configuration <ConfigurationInfo>

The Configuration Command



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

The name of the configuration



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Note <String>

Any notes about the configuration



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]

If set, will overwrite an existing configuration file.



Required? false

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.Nullable





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Save-Config -Name MyConfig















RELATED LINKS

Get-Config

Use-Config