Forum / Remote Desktop Manager - PowerShell Repository

Import simple CSV (name, url) of web bookmarks

cls;

$csv = Import-Csv $args[0];
Write-Host;

foreach ($connection in $csv)
{
Write-Host ("Importing : " + $connection.name);
Write-Host;

$session = New-RDM-Session -Name $connection.name -Kind "DataEntry"
$session.AddDataEntryKind(11 <# Web #> );
$session.DataEntry.ConnectionTypeInfos[0].SubConnectionType = ""
# set group name
# $session.Group = "CSV TEST"
$session.DataEntry.Url = $connection.url;
Set-RDM-Session -Session $session -NoRefresh;
}


edited by stefane on 4/11/2013

Stefane Lavergne

signaturesignature

Clock6 yrs