Backup-DHASConfiguration
Backs up the configuration.
Syntax
Default (Default)
Backup-DHASConfiguration
[-Path] <String>
[-Force]
[<CommonParameters>]
Description
The Backup-DHASConfiguration cmdlet backs up the Device Health Attestation service configuration from the web.config file.
You must have administrator rights to run this cmdlet.
Examples
Example 1: Back up the service configuration
PS C:\> Backup-DHASConfiguration -Path "c:\backup.xml"
This commands backs up the service configuration from the web.config file to the file specified by the Path parameter.
Parameters
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Path
Specifies the location in which to save the backup configuration file.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
String
This cmdlet returns a string with the backup file path.