I am unable to set the PowerShell.NoExit property on a powershell session. The default is set to True. How can I set this to false?
Hi,
To set the no exit property to false on a PowerShell session with PowerShell you can do it that way:$session = Get-RDMSession -Name PowerShellSessionName$session.PowerShell.NoExit = $falseSet-RDMSession -Session $session -Refresh
Best regards,
Olivier Désalliers
It's still not changing the checkbox after doing that.
Hi,
Do you want the No Exit property set to false by default everytime you create a new PowerShell session?
If you just want to change its value to false on a session, we are not able to reproduce your issue.
Do you have errors or warnings when use Verbose on the cmdlets?
What is your RDM version?
Is it a PowerShell session, a Macro/Script/Tool PowerShell Local or Remote, WASP PowerShell session?
Best regards,
Olivier Désalliers
Yes, we would like the No Exit be the default setting.
We are using RDM v12.0.8.0.
I will have to try verbose and let you know.
It is only for PowerShell sessions that we want this.
What I meant was we don't want No Exit checked by default.
Hi,
To change the default settings when you create a new session you need to use the Default Settings templates:
https://help.remotedesktopmanager.com/index.html?file_template_defaultsettings.htm
Best regards,
Olivier Désalliers
So I edited the default template for PowerShell sessions. Then I ran the script to create the session and included the following line:
$newSessionResetMenu.PowerShell.NoExit ="False"
The new sessions still have the No Exit check box checked even though I set the template to leave it unchecked. Is there anything else I should be checking?
Hi,
What is your data source type?
Can you try the latest RDM version to see if you have the same issue?
Best regards,
Olivier Désalliers
I'm using SQL as a datasource type. I am now using the latest version. Still no change in behavior. No errors are occurring.
Hello,
It might not be related but just in case, Are you using RDM 32-bit or 64-bit?
Best regards,
Mark Beausejour
I'm using 64-bit.
I'm using this to import the module:
Import-Module"${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.dll"
I guess that really doesn't matter since that's the only location for the module.
Hello,
Thank you for your reply.
Could you please try the 32-bit launcher instead to see if it makes a difference?
Best regards,
Mark Beausejour
I actually was running 32-bit. I was looking at an external RDM application with one inside on a different VM.
Hello,
Just so I understand, you are experiencing this issue on other machines?
You would like to redistribute the Default Settings you have set for PowerShell but through the Data Source?
Best regards,
Mark Beausejour