From fb9ceaf5f38a0acb6dd7d1e689f26b8ea788a689 Mon Sep 17 00:00:00 2001 From: Paul Boyer Date: Thu, 4 Sep 2025 21:49:07 -0500 Subject: [PATCH] Update ps-connections.md Updated syntax for connection management PowerShell cmdlets. Also added a new connection string type to the table for Windows PCs which was previously undocumented. --- .../windows-admin-center/includes/ps-connections.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/WindowsServerDocs/manage/windows-admin-center/includes/ps-connections.md b/WindowsServerDocs/manage/windows-admin-center/includes/ps-connections.md index 5d6340052c..a34ffe1122 100644 --- a/WindowsServerDocs/manage/windows-admin-center/includes/ps-connections.md +++ b/WindowsServerDocs/manage/windows-admin-center/includes/ps-connections.md @@ -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 @@ -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` |