Is there a way to modify an embedded PowerShell script using a PowerShell module? Example of an entry:
<?xml version="1.0" encoding="utf-8"?>
<RDMExport>
<Connections>
<Connection>
<ConnectionType>SessionTool</ConnectionType>
<Group>AAA</Group>
<ID></ID>
<Name>Script AAA</Name>
<OpenEmbedded>true</OpenEmbedded>
<PowerShell>
<EmbeddedScriptCompressed>U/EMULBV0PDMK8vPTtUNT00KSi0sTS0uUdANLcpUUMooKSkottLXTyzI1MutzCzQS87PVVKoUXDOzytLLSpxK8rP1fUqzs/T1PMM4OUKTi3Rdc7JLEjKTyxKUVDxDAAA</EmbeddedScriptCompressed>
<IsEmbeddedScript>true</IsEmbeddedScript>
</PowerShell>
<Tools>
<ConnectionType>PowerShellLocal</ConnectionType>
</Tools>
</Connection>
</Connections>
<DatabaseID></DatabaseID>
<Version>2</Version>
</RDMExport>
Hello,
It's indeed possible. Please see this other forum's thread that explains it.
https://forum.devolutions.net/topics/31591/setting-the-embedded-script-in-a-powershell-session
Best regards,
Érica Poirier
Thanks a lot.