Faka i-GUI ku-Windows Server Core

Esikhathini esidlule okuthunyelwe sitshele ukuthi siyilungiselela kanjani imishini ebonakalayo yeklayenti ejwayelekile futhi sabonisa ukuthi sidale kanjani isithombe esijwayelekile se-Windows Server 120 Core sisebenzisa intela yethu entsha ye-Ultralight yama-ruble angu-2019 njengesibonelo.

Isevisi yokusekela iqale ukuthola izicelo zokuthi kusetshenzwa kanjani ne-Server 2019 Core ngaphandle kwegobolondo elivamile lesithombe. Sinqume ukukhombisa ukuthi singasebenza kanjani ngeWindows Server 2019 Core kanye nendlela yokufaka i-GUI kuyo.

Faka i-GUI ku-Windows Server Core

Ungakuphindi lokhu emishinini yokusebenza, ungasebenzisi i-Server Core njengedeskithophu, khubaza i-RDP, vikela isistimu yakho yolwazi, ukuphepha kuyisici esiyinhloko sokufakwa kwe-β€œCore”.

Kwesinye sezindatshana zethu ezilandelayo, sizobheka ithebula lokuhambisana kohlelo neWindows Server Core. Kulesi sihloko, sizothinta indlela yokufaka igobolondo.

Shell ngezindlela zezinkampani zangaphandle

Faka i-GUI ku-Windows Server Core

1. Indlela eyinkimbinkimbi kodwa eyonga kakhulu

I-Server Core ayinayo i-explorer.exe ejwayelekile ngaphandle kwebhokisi, ukuze senze ukuphila kube lula kithi, sizolanda i-explorer++. Ingena esikhundleni sayo yonke into engenziwa umhloli wangempela. Kucatshangelwe i-explorer++ kuphela, kodwa cishe noma yimuphi umphathi wefayela ozokwenza, okuhlanganisa i-Total Commander, i-FAR Manager nabanye.

Ilanda amafayela.

Okokuqala sidinga ukulanda ifayela kuseva. Lokhu kungenziwa nge-SMB (ifolda eyabelwe), i-Windows Admin Center kanye I-Invoke-WebRequest, isebenza nenketho -UseBasicParsing.

Invoke-WebRequest -UseBasicParsing -Uri 'https://website.com/file.exe' -OutFile C:UsersAdministratorDownloadsfile.exe

Kuphi -uyi yi-URL yefayela, futhi -OutFile iyindlela egcwele yokuyilanda, icacisa isandiso sefayela kanye

Ukusebenzisa i-Powershell:

Dala ifolda entsha kuseva:

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

Ukwabelana ngefolda eyabelwe:

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

Ku-PC yakho, ifolda ixhunywe njengedrayivu yenethiwekhi.

Faka i-GUI ku-Windows Server Core
Nge-Windows Admin Center, dala ifolda entsha ngokukhetha into kumenyu.

Faka i-GUI ku-Windows Server Core

Iya kufolda okwabelwana ngayo bese uchofoza inkinobho yokuthumela, khetha ifayela.

Faka i-GUI ku-Windows Server Core
Ukwengeza igobolondo kusihleli.

Uma ungafuni ukuqala igobolondo mathupha njalo uma ungena ngemvume, udinga ukulengeza kusihleli somsebenzi.

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

Ngaphandle kwesihleli, ungaqalisa nge-CMD:

CD C:OurCoolFilesExplorer++.exe

Indlela 2. Yethula Isihloli somdabu

Faka i-GUI ku-Windows Server Core
Khumbula, ayikho i-GUI

Isici Sokuhambisana Kohlelo Lokusebenza Oluyinhloko Lweseva (i-FOD), sizobuyela ohlelweni: MMC, Eventvwr, PerfMon, Resmon, Explorer.exe kanye ne-Powershell ISE. Imininingwane eyengeziwe ingatholakala ku-MSDN. Ayikhulisi isethi ekhona yezindima nezici.

Qalisa i-Powershell bese ufaka umyalo olandelayo:

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

Bese uqala kabusha iseva:

Restart-Computer

Faka i-GUI ku-Windows Server Core

Ngemuva kwalokho, ungasebenzisa i-Microsoft Office, kodwa uzolahlekelwa cishe ama-megabytes angu-200 we-RAM unomphela, noma ngabe abekho abasebenzisi abasebenzayo ohlelweni.

Faka i-GUI ku-Windows Server Core
I-Windows Server 2019 enezici ezifunwayo zifakiwe

Faka i-GUI ku-Windows Server Core
IWindows Server 2019 Core

Yilokho kuphela. Esihlokweni esilandelayo, sizobheka ithebula lokuhambisana kohlelo neWindows Server Core.

Faka i-GUI ku-Windows Server Core

Source: www.habr.com

Engeza amazwana