# Export-AmsServerDiagnostics

## SYNOPSIS

This cmdlet is used to export diagnostic information that may be requested by Lithnet support

## SYNTAX

```
Export-AmsServerDiagnostics -File <String> [-Force] [<CommonParameters>]
```

## DESCRIPTION

## EXAMPLES

### Example 1

```powershell
PS C:\> Export-AmsServerDiagnostics -File c:\diagnostics.zip
```

This example exports the diagnostics to a file called \`c:\diagnostics.zip\`

## PARAMETERS

### -File

The name and path of the export ZIP file to create

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```

### -Force

Overwrites any existing output file without prompting for confirmation

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

### System.Void

## NOTES

## RELATED LINKS
