Windows server core install gui

Время на прочтение2 мин

Количество просмотров69K

В прошлом нашем посте мы рассказали как готовим стандартные клиентские виртуальные машины и показали на примере нашего нового тарифа с Ultralight windows vds за 99 рублей, как мы создавали стандартный образ Windows Server 2019 Core.

В службу поддержки стали поступать заявки как работать с Server 2019 Core без привычной графической оболочки. Мы решили показать работу с Windows Server 2019 Core и как установить на него GUI.

Не повторяйте это на рабочих машинах, не используйте Server Core как рабочий стол, отключите RDP, обезопасьте свою информационную систему, именно безопасность — это главная фишка «Core» инсталляции.

В одной из следующих наших статей мы рассмотрим таблицу совместимости программ с Windows Server Core. В этой статье мы затронем то, как установить оболочку.

Оболочка сторонними средствами

1. Сложный, но наиболее экономичный способ

В Server Core из коробки нет привычного нам explorer.exe, чтобы облегчить нам жизнь, мы скачаем explorer++. Он заменяет все, что умеет оригинальный explorer. Рассматривался только explorer++, но подойдет почти любой файловый менеджер, в том числе Total Commander, FAR Manager и другие.

Скачиваем файлы.

Сначала нам нужно скачать файл на сервер. Это можно сделать через SMB (общую папку), Windows Admin Center и Invoke-WebRequest, он работает с параметром -UseBasicParsing.

Invoke-WebRequest -UseBasicParsing -Uri 'https://website.com/file.exe' -OutFile C:\Users\Administrator\Downloads\file.exe

Где -uri это URL файла, а -OutFile полный путь куда его скачивать, указывая расширение файла и

C помощью Powershell:

На сервере создаём новую папку:

New-Item -Path 'C:\OurCoolFiles\' -ItemType Directory

Расшариваем общую папку:

New-SmbShare -Path 'C:\OurCoolFiles\' -FullAccess Administrator 
-Name OurCoolShare

На вашем ПК папка подключается как сетевой диск.

Через Windows Admin Center создаем новую папку выбрав пункт в меню.

Переходим в общую папку и жмем кнопку отправить, выбираем файл.

Добавляем оболочку в планировщик.

Если вы не хотите запускать оболочку вручную при каждом входе в систему, то нужно добавить её в планировщик задач.

$A = New-ScheduledTaskAction -Execute "C:\OurCoolFiles\explorer++.exe"
$T = New-ScheduledTaskTrigger -AtLogon
$P = New-ScheduledTaskPrincipal "local\Administrator"
$S = New-ScheduledTaskSettingsSet
$D = New-ScheduledTask -Action $A -Principal $P -Trigger $T -Settings $S
Register-ScheduledTask StartExplorer -InputObject $D

Без планировщика можно запустить через CMD:

CD C:\OurCoolFiles\Explorer++.exe

Способ 2. Запускаем родной Explorer

Remember, no GUI

Server Core App Compatibility Feature on Demand (FOD), вернет в систему: MMC, Eventvwr, PerfMon, Resmon, Explorer.exe и даже Powershell ISE. Подробнее можете ознакомиться на MSDN. Существующий набор ролей и компонентов он не расширяет.

Запустите Powershell и введите следующую команду:

Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0

Затем перезагрузите сервер:

Restart-Computer

После этого вы сможете запускать даже Microsoft Office, но потеряете примерно 200 мегабайт ОЗУ навсегда, даже если в системе нет активных пользователей.

Windows Server 2019 c установленным Features on Demand

Windows Server 2019 CORE

На этом всё. В следующей статье мы рассмотрим таблицу совместимости программ с Windows Server Core.

Предлагаем обновлённый тариф UltraLite Windows VDS за 99 рублей с установленной Windows Server 2019 Core.

На хостинге UltraVDS есть готовая для заказа конфигурация виртуальной машины, стоимость которой составляет всего 99 рублей в месяц. Этот VPS работает под управлением операционной системы Windows Server 2019 Core. По умолчанию на сервере отсутствует привычная графическая оболочка, поэтому данная статья посвящена тому, как установить GUI на Windows Server Core.

Конфигурация Windows Server Core

Метод первый — запуск Explorer++

В Windows Server Core изначально отсутствует привычный проводник Explorer. Исходя из этого первым шагом необходимо загрузить Explorer++, который вполне может послужить заменой оригинального explorer.exe. В данном контексте мы рассматриваем Explorer++, но применяться может практически любой файловый менеджер, включая FAR Manager, Total Commander или что-либо ещё.

Во-первых, необходимо загрузить на свою локальную рабочую станцию дистрибутив браузера. Сделать это можно, например, отсюда.

Далее, подключитесь к вашему VDS и создайте там директорию, которую будете использовать как общую папку для обмена файлами. Для чего из командной строки откройте PowerShell при помощи команды:

powershell

После чего создайте директорию:

New-Item -Path 'C:\xchange_catalog\' -ItemType Directory

И предоставьте директории общий доступ:

New-SmbShare -Path 'C:\xchange_catalog\' -FullAccess Administrator -Name SHARED_DIR

Здесь:

  • C:\xchange_catalog\ — созданная на сервере папка;
  • Administrator — пользователь, которому предоставлены права на полный доступ к папке;
  • SHARED_DIR — имя расшаренного ресурса.

Теперь вы сможете подключиться к вашему удалённому серверу. Для чего в проводнике наберите соответствующий путь к каталогу на VPS. В нашем случае путь до общего каталога выглядит как:

\\176.58.60.160\shared_dir

Вы же должны использовать IP-адрес вашего виртуального сервера и имя вашего расшаренного ресурса.

Общий каталог на сервере

Теперь необходимо найти загруженный ранее архив с дистрибутивом Explorer++, распаковать его и скопировать файл Explorer++.exe в общую папку на сервере.

После этого вы уже можете запустить Explorer++ из командной строки, перейдя в каталог с файлом Explorer++.exe и выполнив команду запуска приложения:

cd C:\xchange_catalog

Explorer++.exe

Но мы немного усложним задачу и сделаем так, чтобы не нужно было запускать Explorer++ при каждом входе в систему в ручную.

Для этого запустите из командной строки PowerShell и добавьте запуск браузера в планировщик:

$Act = New-ScheduledTaskAction -Execute 'C:\xchange_catalog\Explorer++.exe'

$Trg = New-ScheduledTaskTrigger -AtLogon

Register-ScheduledTask Explorer-Start -Action $Act -Trigger $Trg

При помощи данных команд мы создали задачу, которая называется Explorer-Start, и которая будет запускаться при каждом входе пользователя в систему.

Создание задачи в планировщике средствами PowerShell

То есть, если вы завершите сеанс подключения к VPS командой logoff, после чего снова войдёте на сервер, то Explorer++ откроется, когда произойдёт вход вашей учётной записи в систему.

Explorer++ - Установка GUI на Windows Server Core

Метод второй — установка родного браузера

В данном методе мы будем использовать дополнительный пакет компонентов, который необходимо будет добавить в установки основных серверных компонентов операционной системы. Речь идёт о Server Core App Compatibility Feature on Demand (FOD), который может вернуть в систему средство «Просмотр событий» (Eventvwr.msc), монитор ресурсов (Resmon,exe), Проводник (Explorer.exe) и даже Windows PowerShell (Powershell_ISE.exe).

Для установки пакета войдите в PowerShell и запустите следующую команду:

Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0

После чего необходимо перезапустить сервер:

Restart-Computer

В результате у вас появится возможность запускать даже Microsoft Office, но при этом система потеряет порядка двухсот мегабайт оперативной памяти. Причём потеряны они будут навсегда, и даже если в вашей системе не будет активных пользователей.

Но вернёмся к графической оболочке. Чтобы запустить проводник из командной строки необходимо набрать:

explorer

Запуск проводника из командной строки

Table of Contents

Introduction

Server Core was introduced in Windows Server 2008 but was confusing to many administrators. This was mainly because that you, as an administrator, were restricted to a command line and needed to know the commands for doing your tasks.

One of the main problems with it was that if you installed your server as a Server Core, you would need to reinstall it if you want the graphical user interface (GUI).

This changed in Windows Server 2012. It was now possible to install your server with a GUI and remove the GUI once you’ve set everything up.

It was also possible to install your server as a Server Core and then add the GUI by just entering a simple Powershell command.

In this blog post, I will explain how to install the GUI for a Windows Server Core installation or remove the GUI if you have Windows Server 2012 or Windows Server 2012 R2.

Enter this command into a Powershell prompt, running as Administrator.

Then run:

Install-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra
Add GUI to Windows Server Core installation using Powershell and server-gui-mgmt-infra

Once installed, you need to restart the server. Use this command:

If you do not have Internet connectivity, the installation will hang at 68% and, after a while, displays an error message to you:

Install-WindowsFeature: The request to add or remove features on the specified server failed.

This means that the source files for the GUI installation cannot be located.

Installation 68% Powershell Windows Server 2012 GUI Core

Installation failed source Windows Server 2012 Powershell

To solve the error, follow these steps:

Start by creating a mount directory (i.e C:\Mount), by opening a command prompt:

Get the index number of the WIM file for the GUI (if Windows Server 2012 R2 media is on D:). Since all of the Windows Server 2012 R2 installations are stored in the same *.wim, we need to specify what version we want to mount. In this case, we’ll be using the Datacenter version with GUI, which is Index #4

dism /get-wiminfo /wimfile:d:\sources\install.wim
dism Windows Server 2012 GUI Powershell Index Datacenter

Mount the WIM file:

dism /mount-wim /wimfile: d:\sources\install.wim /Index:3 /mountdir:C:\Mount\ /readonly
Dism Windows Server 2012 Mount Datacenter GUI Powershell

Install and specify the source:

Install-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra -Source C:\Mount\Windows\SXS
Install GUI Server Core Windows Server 2012 Powershell Datacenter

Once installed, you need to restart the server. Use this command:

Add GUI Windows Server 2012 Server Core Powershell Windows Feature

How to remove the GUI from a full installation, using the GUI:

Open Server Manager, open the Manage menu and go to Remove Roles and Features

Remove GUI Windows Server 2012 Core

Press Next until you reach the Features page

There are two different features that you can choose:

  • Graphical Management Tools and Infrastructure (server-GUI-mgmt-infra) basically provides Powershell, MMC, and Server Manager.
  • Adding the Server Graphical Shell (server-GUI-shell) will add the rest of the GUI experience. This feature is dependent on the first, so you can’t just add this one.

Note that if you remove Graphical Management Tools and Infrastructure, you will also remove Server Graphical Shell.

Remove GUI Windows Server 2012 Core

Once deselecting one of the features, you will get a popup. Here, press Remove Features.

Remove GUI Windows Server 2012 Server Core

The User Interfaces and Infrastructure feature should now be deselected. Proceed by pressing Next.

The final step is to confirm the removal process. Press Remove and select Restart the destination server automatically if required.

Remove GUI Windows Server 2012 Server Core

Removing the GUI from a full installation, using Powershell:

Enter this command:

Uninstall-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra
Remove GUI Powershell Windows Server 2012

Remove GUI Server Core Windows Server 2012 Powershell

References

  • Microsoft Docs – What is Server Core?

Related posts

  • Install .NET Framework 3.5 using DISM and other methods
  • What is Hyper-V Server 2012, and how do I install and administer it?

In this post, we’gonna explain if it’s possible to Switch from Windows Server 2016 Core to GUI (Desktop Experience).

Switch from Windows Server 2016 Core to GUI

You may be also interested to check Windows Server 2016: Expand Virtual Machine Hard Disk & Extend the Operating System Drive.


Switch from Windows Server 2016 Core to Desktop Experience

  1. 1
    Switch from Windows Server 2016 Core to Desktop Experience

    1. 1.1
      How to Convert from Windows Server 2016 Core to GUI?

    2. 1.2
      Is there any workaround to Switch from Windows Server 2016 Core to GUI Without Performing a Fresh Installation?

  2. 2
    Install Windows Server 2016 Step by Step

    1. 2.1
      Windows Server 2016 Hardware Requirements

    2. 2.2
      Download Windows Server 2016

    3. 2.3
      Windows Server 2016 Installation Steps

When I tried to install Windows Server 2016, I got the below dialog that ask me to select the operating system that I would like to install as shown below:

Switch from Windows Server 2016 Core to GUI

Actually, I have confused which option should I use

  • Windows Server 2016 Standard or,
  • Windows Server 2016 Standard (Desktop Experience).

Unfortunately, I selected the first option “Windows Server 2016 Standard“, after taking a long time to install the windows server 2016, it was the shock, I got the Windows Server 2016 console interface, not the normal Windows Server 2016 GUI Desktop Experience interface as shown below:

Convert from Windows Server 2016 Core to GUI

You might also like to read Convert from Windows Server 2019 Core to GUI


How to Convert from Windows Server 2016 Core to GUI?

Actually, In previous Windows Server releases like Windows Server 2012, 2008, we were able to add the Windows Server GUI functionality to the Windows Server core without performing a fresh installation.

But, In Windows Server 2016 and later, it’s no longer doable to convert from Windows Server 2016 core to Windows Server 2016 with Desktop experience and vice versa!

Is there any workaround to Switch from Windows Server 2016 Core to GUI Without Performing a Fresh Installation?

Unfortunately, there is no workaround to convert from Windows Server 2016 Core to GUI, the only available solution is performing a fresh installation from scratch again!


Install Windows Server 2016 Step by Step

In this section, we’ll explain how to install Windows Server 2016 Standard with GUI by doing the following:

  • Exploring Windows Server 2016 Hardware Requirements.
  • Download Windows Server 2016.
  • Install Windows Server 2016.

Windows Server 2016 Hardware Requirements

The hardware requirements for Windows Server 2016 with desktop experience is differ from Windows Server 2016 Core.

Below is the minimum hardware requirements for Windows Server 2016 with desktop experience:

  • CPU: 1.4 GHz 64-bit processor.
  • RAM: 2 GB, (512 for core)
  • Disk: 32 GB as absolute minimum value, (4 GB for core).

Download Windows Server 2016

Below are the official links to download Windows Server 2016 as well as Windows Server 2019.

  • Download Windows Server 2016 Evaluation ISO.
  • Download Windows Server 2019 Evaluation ISO.

The Windows Server 2016 Evaluation Period is 180 days that can be extended 6 times for additional 180 days.

To extend Windows Server 2016 Evaluation Period, please check Evaluation Period expired for Windows Server 2016, How to extend it?

Windows Server 2016 Installation Steps

  1. Mount your Windows Server 2016 ISO image.
  2. Run the Setup file.
  3. Select your language, time, currency format, and input method.
Switch from Server core to GUI in windows server 2016

  • Click on “Install now” button to start Windows Server 2016 installation.
  • Select, “Windows Server 2016 Standard (Desktop Experience)“, then click “Next”.
Install Windows Server 2016 with GUI (Desktop Experience)

Note: Windows Server 2016 Standard option refers to the core!

  • Accept the license terms and click “Next”.
Windows Server 2016 license terms

  • Select “Install Windows Only“.
Type of installation in Windows Server 2016

It’s strongly recommended to perform a clean installation for Windows Server 2016.

  • The Windows Server 2016 installation will start!
Switch from Windows Server 2016 Core to GUI

  • Finally, the Windows Server 2016 GUI has been installed with desktop experience as shown below!
Windows Server 2016 with GUI desktop experience


Conclusion

Unlike previous Windows Server releases, you can’t convert from Windows Server 2016 core to GUI and vice versa, the only solution is performing a fresh installation!

So in this post, we have learned how to download and install Windows Server 2016 and Which option should we select during Windows Server installation to install Windows Server 2016 with Desktop Experience instead of Windows Server 2016 Core.

Applies To
  • Windows Server 2019.
  • Windows Server 2016.
You might also like to read
  • Extend Volume option is disabled within Disk Management in Windows Server 2012.
  • Error extending volume: Size Not Supported, During extending Operating System partition In Windows Server 2012.
  • Windows failed to start: The Boot Configuration Data for your PC is missing or contains errors.
  • Extend SQL Server Evaluation Period.
Have a Question?

If you have any related questions, please don’t hesitate to ask it at deBUG.to Community.

The default install of the Windows Server 2016 (Tech preview 2) do not provide Graphical User Interface (GUI) and even the second option only installs the local administrative tools (Server Manager). Not the traditional desktop that we’re used to having in 2012 R2 or 2008 R2 server systems. So if you take the second option (with local admin tools) you basically end up with a server without a desktop and start menu.

I know that this is rather good as the server system gets very slim footprint, reducing the surface, but If you want to install a third party application(s) that needs the GUI and the usual desktop environment ,then you must add something – a full desktop GUI. Windows server 2016 GUI install can be done through PowerShell, and you only need a single line of code. You can also add the GUI by selecting a Feature through adding a new role and feature wizard. (as you do that in Windows Server 2012 R2…)

Note that I’m testing it with a built through VMware Workstation 11. I picked up the default config (Workstation 11 compatible VMs) and the ISO has been detected as Windows 10.

Windows Server 2016 Gui Install – How to:

Step 1: During the setup process I choose the second option – Windows Server Technical preview 2 (with local admin tools), but you could only install the core (tested that as well).

Windows Server 2016 GUI install

Step 2: After reboot, you’re asked to assign a new password to the user’s account. After that, you’ll end up with a console where the server manager launches automatically. Well, in my case I was using easy install with VMware workstation, so I had an automatical installation of VMware tools followed by another reboot…

But if I would have assigned that password in VMware workstation during the assistant walking me through the creation of the VM, then the double reboot would have happened without my interaction.

Anyway, through Server manager click Add roles and features > skip the first and second page and go directly to “features” where you choose the Server Graphical Shell. I picked the desktop experience in this example but that is not necessary. The desktop experience adds the usual package used for desktop environments:

  • Windows Search
  • Desktop wallpapers
  • Etc…

At the same time, you can tick the checkbox so the server can reboot automatically at the end of the installation process.

Windows Server 2016 GUI install

Validate the choice > Next > Install. And after a reboot the server shows well the Full desktop with Start menu and Server Manager.

Windows Server 2016 GUI install

Option 2: Install the GUI via PowerShell

In case you choose to install just the core (nano) and you don’t have server manager installed, you can use PowerShell. To install the GUI via PowerShell you can enter this single line of code in your PowerShell Window:

InstallWindowsFeature ServerGuiShellRestart Source wim:D:sourcesinstall.wim:4

Shoot from the lab:

Windows Server 2016 GUI Install

The server reboots automatically at the end (without a prompt). And after the reboot where you’ll see this usual screen…

Windows Server 2016 GUI Install

The server reboots and shows GUI, Start Menu AND the Server manager.

Windows Server 2016 GUI Install

As you can see, the process is quite similar to what’s available in Windows Server 2012 R2, and it’s quite simple.

I don’t think that the GUI will completely disappear. There will still be applications that won’t work in environments without a GUI. Look at the SMBs which usually have 1 or 2 Windows servers (physical, yeah) and which do need to provide not only file level service with domain authentication, but many more custom based enterprise applications, printing, and networks core services etc. So the Windows based servers (with GUI windows on it) will, IMHO, never die…

At the same time, it’s good that we have the option to deploy stripped down version of Windows server (who knows how the final version will look like) without any services. And add more services/roles later via Powershell or from remote workstation via administrative tools.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Unset environment variable windows
  • Что такое vmmem windows 10
  • Ati radeon hd 4300 4500 series драйвер windows 10
  • Запретить пользователю удалять программы windows 10
  • Как запустить службу беспроводной связи windows 10 на ноутбуке