Bonjour,
J'ai un petit soucis sur la commande powershell Export-RDMSession
Ce code (export HTML) :
$ds = Get-RDMDataSource -Name "TEST"
Set-RDMCurrentDataSource $ds
$Repos = Get-RDMRepository
$Passwd = ConvertTo-SecureString -AsPlainText -Force "test"
$Path = "C:\ExportRDM\ExportEntries.html"
foreach ($repo in $Repos){
Set-RDMCurrentRepository $repo
Update-RDMUI
$Sessions = Get-RDMSession
Export-RDMSession -Path $Path -Sessions $Sessions -HTML -Password $Passwd
}
Me donne une erreur de type null (Export-RDMSession : La valeur ne peut pas être null.)
Mais ce code-ci (export CSV) fonctionne très bien :
$ds = Get-RDMDataSource -Name "TEST"
Set-RDMCurrentDataSource $ds
$Repos = Get-RDMRepository
$Passwd = ConvertTo-SecureString -AsPlainText -Force "test"
$Path = "C:\ExportRDM\ExportEntries.zip"
foreach ($repo in $Repos){
Set-RDMCurrentRepository $repo
Update-RDMUI
$Sessions = Get-RDMSession
Export-RDMSession -Path $Path -Sessions $Sessions -CSV -Password $Passwd
}
Je n'arrive pas bien à comprendre pourquoi la commande Export-RDMSession avec l'argument -HTML me renvoie un résultat null.
Note : J'ai bien chargé la dernière version du module Powershell RDM.
Si vous pouvez m'éclairer sur ce problème, merci !
Benoit.
Bonjour Benoit,
Je suis capable de répliquer votre problème, je vais ouvrir un billet à l'interne avec l'équipe de développement.
Cordialement,
Richard Boisvert
Bonjour Richard,
Merci pour votre retour.
Nous attendrons donc la résolution du problème.
Cordialement,
Benoit
Bonjour Benoit,
Une nouvelle version du module PowerShell est disponible avec les correctifs : 2022.1.2.0 - https://www.powershellgallery.com/packages/RemoteDesktopManager/2022.1.2.0
Cordialement,
Richard Boisvert