about EnabledMode and Enabled property of PubRDSApp

alext7

Bit poster
I'm writing a powershell script to query the "enabled" status of each published application using command "Get-RASPubRDSApp |select-object name, enabled".

If there is folder structure, the "enabled" status of icon may be incorrect.
e.g. If I have a "FolderA" in which there are App1 and App2, in case we have disable App1 and App2 by disabling "FolderA" (it will inherit to App1 and App2), the command above will still return "Enabled=true". From "parallels remote application server console", they should be in "Disabled" status.
How can I get the status of the application correctly?
 
I'm writing a powershell script to query the "enabled" status of each published application using command "Get-RASPubRDSApp |select-object name, enabled".

If there is folder structure, the "enabled" status of icon may be incorrect.
e.g. If I have a "FolderA" in which there are App1 and App2, in case we have disable App1 and App2 by disabling "FolderA" (it will inherit to App1 and App2), the command above will still return "Enabled=true". From "parallels remote application server console", they should be in "Disabled" Geometry Dash status.
How can I get the status of the application correctly?
I understand the issue. You're using PowerShell to get the 'enabled' status of published applications, but Get-RASPubRDSApp doesn't seem to account for folder-level disabling, incorrectly reporting apps as enabled even when their parent folder is disabled. It seems you need a way to traverse the folder structure and check the status of each parent folder to accurately determine the application's effective status. Since Get-RASPubRDSApp only returns the application's explicitly set status and not the inherited status from its parent folders, you'll need to find a way to get the folder hierarchy information, perhaps using a command like Get-RASPubRDSFolder, and then write logic to walk up the folder tree for each application, checking if any of the parent folders are disabled. If any parent folder is disabled, then the application is effectively disabled, regardless of its own Enabled property. It's a bit more complex than just checking the application's property directly, but necessary to get the correct status.
 
I'm writing a powershell script to query the "enabled" status of each published application using command "Get-RASPubRDSApp |select-object name, enabled".

If there is folder structure, the "enabled" status of icon may be incorrect.
e.g. If I have a "FolderA" in which there are App1 and App2, in case we have disable App1 and App2 by disabling "FolderA" (it will inherit to App1 and App2), the command above will still return "Enabled=true". From "parallels remote application server console", they should be in "Disabled" status.
How can I get the status of the application correctly for wheel of names?


The Enabled property returned by Get-RASPubRDSApp appears to reflect the application's own enabled/disabled setting, but it does not take the parent folder's inherited status into account.

For example, if FolderA is disabled and App1 and App2 inherit that setting, Get-RASPubRDSApp | Select-Object Name, Enabled may still show Enabled = True for the applications even though they are effectively disabled in the Parallels RAS Console.

I believe the correct approach would be to evaluate the application's effective status by checking its parent folder(s) and determining whether any inherited folder is disabled.

Is there a property or PowerShell cmdlet/API in Parallels RAS that returns the effective enabled/disabled status of a published application, including inherited settings from its folder hierarchy?

If not, could you please advise on the recommended way to calculate the effective status programmatically?
 
Back
Top