Forum / Remote Desktop Manager - PowerShell Repository

Powershell - Create new Entry

Im going to build up a folderstructure that will contains entrys like Password List, Login(Web), Login(Account), Note/SecureNote, Viso-documents.
Some of the entries will have dummy data that we will change later on. For example the password list will have 10 diffrent username
I have searched but have not found out for example how to create passwordlist and add username/password.
Do you have any tips that I can use? For example create the entry like i want it and then how can I check the property/values with powershell?

Clock7 days

Hello,

Here is a sample on how you can create a Password List entry type and add credentials in it.

The first step is to create the Password List entry.

$ps = New-RDMSession -Name $entryName -Type Credential -Group $group.Group
$ps.Credentials.CredentialType = "PasswordList"

Then, add an array of PasswordListItem objects in the Password List entry.

$psArray = @()
$psEntry = New-Object "Devolutions.RemoteDesktopManager.Business.PasswordListItem"
$psEntry.User = $username
$psEntry.Password = $passwd
$psEntry.Domain = $domain
$psEntry.Description = $description
$psArray += $psEntry

$ps.Credentials.PasswordList = $psArray
Set-RDMSession $ps -Refresh

Best regards,



Érica Poirier

Customers that use Devolutions Server are provided free remote sessions for performing upgrades. Please send a request to the Devolutions Service Desk to get the process started.

signaturesignature

Clock7 days

Hello,

I just forgot to inform you that this thread has been moved in the PowerShell Repository section.

Best regards,



Érica Poirier

Customers that use Devolutions Server are provided free remote sessions for performing upgrades. Please send a request to the Devolutions Service Desk to get the process started.

signaturesignature

Clock7 days

Thanks for the sample! smile

Clock2 days