New WebBrowser entry in Private browser

New WebBrowser entry in Private browser

avatar

Hey,

I'm using the following code to create a new web browser entity:

    $wb = New-RDMSession -Name $EntryName -Type WebBrowser -Group "$g" -ErrorAction Stop
    $wb.Host = $Hostname
    $wb.OpenEmbedded = $false

Is there a way to specify it should be in a private web browser?

I've looked through an object via Get-RDMSession, but I'm not seeing anything that might specify a private browser.

Thanks,

Chris

All Comments (1)

avatar

Hello Chris,

You will need to set the "Web.PrivateSessionMode" property; here is an example:

$wb = New-RDMSession -Name $EntryName -Type WebBrowser -Group "$g" -ErrorAction Stop
$wb.Host = $Hostname
$wb.OpenEmbedded = $false
$wb.Web.PrivateSessionMode = 'Enabled'
Set-RDMSession -session $wb


You can refer to the following KB for more information on how to retrieve the values: https://docs.devolutions.net/rdm/windows/powershell-scripting/tips-tricks/#reverse-engineering-an-entrys-structure

Best regards,

Richard Boisvert