Dear fellow RDM'ers,
I'm not very proficient with powershell yet. We have created a new folderstructure for our sessions:
=====Core Infra Services
=======DC01 (RDP Session)
=======DC02 (RDP Session)
=======DB01 (RDP session)
=======DB02 (Putty session)
=======SW01 (Putty session)
=======SW02 (HTTPS session)
It seems i cannot figure out how to create folders in folders to achive the above structure.
I keep getting error messages like "Padding is invalid and cannot be removed" or "Unexpected token TEST in expression or statement"
Anyone an example script how to create a folder structure?
Thanks in advance.
To create folder structure with the commandlet New-RDMSession, you have to put the folder structure in the Group parameter for each subfolders. The main folder at the root level doesn't need this parameter.
$group = New-RDMSession -Kind "Group" -Name "CustomerA"
$group = New-RDMSession -Group "CustomerA" -Kind "Group" -Name "Servers"
$group = New-RDMSession -Group "CustomerA\Servers" -Kind "Group" -Name "Core Infra Services"
and so on...