Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
```powershell
# Load the module
Import-Module "$env:ProgramFiles\windows admin center\PowerShell\Modules\ConnectionTools"
# Available cmdlets: Export-Connection, Import-Connection
Import-Module "$env:ProgramFiles\WindowsAdminCenter\PowerShellModules\Microsoft.WindowsAdminCenter.ConnectionTools\Microsoft.WindowsAdminCenter.ConnectionTools.psd1"
# Available cmdlets: Export-WACConnection, Import-WACConnection

# Export connections (including tags) to a .csv file
Export-Connection "https://wac.contoso.com" -fileName "WAC-connections.csv"
Export-WACConnection -Endpoint "https://wac.contoso.com" -FileName "WAC-connections.csv"
# Import connections (including tags) from a .csv file
Import-Connection "https://wac.contoso.com" -fileName "WAC-connections.csv"
# Import connections (including tags) from .csv files, and remove any connections that are not explicitly in the imported file by using the -prune switch parameter
Import-Connection "https://wac.contoso.com" -fileName "WAC-connections.csv" -prune
Import-WACConnection -Endpoint "https://wac.contoso.com" -FileName "WAC-connections.csv"
# Import connections (including tags) from .csv files, and remove any connections that are not explicitly in the imported file by using the -Prune switch parameter
Import-WACConnection -Endpoint "https://wac.contoso.com" -FileName "WAC-connections.csv" -Prune
```

### CSV file format for importing connections
Expand All @@ -21,6 +21,7 @@ The format of the CSV file starts with the following four headings, followed by

| Connection type | Connection string |
|------|-------------------------------|
| Windows PC | `msft.sme.connection-type.windows-client`|
| Windows Server | `msft.sme.connection-type.server` |
| Failover cluster | `msft.sme.connection-type.cluster` |

Expand Down