Backup-DHASConfiguration

Backs up the configuration.

Syntax

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.

Required Parameters

-Path

Specifies the location in which to save the backup configuration file.

Type: String
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Optional Parameters

-Force

Forces the command to run without asking for user confirmation.

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Outputs

String

This cmdlet returns a string with the backup file path.