This project has moved. For the latest updates, please go here.

Import from mremote

Topics: User Forum
Jun 2, 2014 at 12:23 PM
This is a nice connection manager! It will be great if we could import mremote connections file (.xml)
Jun 3, 2014 at 7:31 AM
based on the powershell script from the doc ( https://terminals.codeplex.com/wikipage?title=Powershell%20script%20to%20create%20import%20file ) here is what i've done :
#read mremote connections
[xml]$mremote=get-content "c:\mremote\confcons.xml"

$mremote.Connections.Node | ? {$_.type -eq "Container"} |%{
    $tag=$_.name
    $_.node  |%{
                #set default credential
        if ($_.username -eq "") {$_.username="domaincredential"}
        $favCollection += New-Favorite -name $_.name -serverName $_.hostname -tags $tag -notes "imported from mremote" -credential $_.username
    }
}   
Marked as answer by kayasax on 6/3/2014 at 12:31 AM