Hi there,
Is possible to export templates as a bulk job? I've got now tons of templates and I'm in the process of migrating them to another server but I cannot select multiple entries, only one by one.
Is there a way around it?
Thanks
Get-RDMDatasource
Set-RDMCurrentDataSource < ID from source >
$template = Get-RDMTemplate
Set-RDMCurrentDataSource < ID from target >
$template | set-rdmtemplate
not sure what $template = Get-RDMTemplate and $template | set-rdmtemplate" will do exactly, could you please explain a bit more? I tried here but didn't work so I guess I'm doing something wrong. Thanks!
https://help.remotedesktopmanager.com/index.html?powershell_cmdlets.htm
Import the Powershell module in Powershell or run it from within RDM.
Then you can list your datasources;
Get-RDMDatasource
Then set the current datasource to where your templates are;
Set-RDMCurrentDataSource < ID from source >
Then grab all templates and put them in a variable;
$template = Get-RDMTemplate
Then you change the datasource to what the target for the templates would be;
Set-RDMCurrentDataSource < ID from target >
and then you import the templates in the variable $template in the target datasource;
$template | set-rdmtemplate
Yeah I tried exactly that before, tried again now but no luck, none of the templates are showing on the other database, running powershell in admin just in case and no errors are shown, so something is happening, just not in the way I was hoping for.
I'm wondering the the variable can hold the data, I've about 30 templates so I'm wondering it may have some sort of size limit as well?
Thanks for you help.
No size limit
Can you post the output of just Get-RDMTemplate ?
get template list all of the templates:
https://imgur.com/3X4GmK1
and this is when I run all the PS commands
https://imgur.com/ouw52it
Looks OK to me.
This is the expected outcome.
Did you check if the templates are now present in the target database?
I tried but it didn't copy the templates to the new database, I ended up having to do it manually as I was running out of time. Thanks for the help anyway.