Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Backup-DHASConfiguration

Last Updated: 3/26/2017

SYNOPSIS

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.

PARAMETERS

-Force

Forces the command to run without asking for user confirmation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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

-Path

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

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

String

This cmdlet returns a string with the backup file path.

NOTES

Restore-DHASConfiguration

© 2017 Microsoft