Powershell set Browser Properties for SubConnections

Powershell set Browser Properties for SubConnections

avatar

Hi,

we have our Browser Change in our RDM Database with over 300 WebBrowser Sessions.

We have RDM Session with ConnectionType "Webbrowser" and SubConnections also as Webbrowser.

I change for all "Webbrowser" the Browser from IE to Default, where i Global changed it to Edge.
with this script:

$sessions = get-rdmsession | Where-Object {$_.ConnectionType -eq "Webbrowser"}

foreach ($session in $sessions){
Set-RDMSessionProperty -ID $session.ID -Property WebBrowserApplication -Value "Default"
Set-RDMSessionProperty -ID $session.ID -Property ConnectionSubType -Value "Default"
}

But sadly the SubConnection is still with the Browser "IE" and i Cant filter the Subconnections like
$Sessions.SubConnections

How can i change the WebBrowser Properties for my SubConnections.or how can i list the ID's for all my SubConnections.

Thank for u help

All Comments (2)

avatar

I resolved it with this string.

$sessions = get-rdmsession
$subconnections = $sessions.Subconnections

foreach ($subconnection in $subconnections){

Set-RDMSessionProperty -ID $subconnection.ID -Property WebBrowserApplication -Value "Default"
Set-RDMSessionProperty -ID $subconnection.ID -Property ConnectionSubType -Value "Default"
}

avatar

Hello Gabriele,

Thank you for letting us know! We are glad to see that you have found a solution.

Best regards,

James Lafleur