Esikhathini esidlule
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.
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
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.
Nge-Windows Admin Center, dala ifolda entsha ngokukhetha into kumenyu.
Iya kufolda okwabelwana ngayo bese uchofoza inkinobho yokuthumela, khetha ifayela.
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
Khumbula, ayikho i-GUI
Isici Sokuhambisana Kohlelo Lokusebenza Oluyinhloko Lweseva (i-FOD), sizobuyela ohlelweni: MMC, Eventvwr, PerfMon, Resmon, Explorer.exe kanye ne-Powershell ISE.
Qalisa i-Powershell bese ufaka umyalo olandelayo:
Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0
Bese uqala kabusha iseva:
Restart-Computer
Ngemuva kwalokho, ungasebenzisa i-Microsoft Office, kodwa uzolahlekelwa cishe ama-megabytes angu-200 we-RAM unomphela, noma ngabe abekho abasebenzisi abasebenzayo ohlelweni.
I-Windows Server 2019 enezici ezifunwayo zifakiwe
IWindows Server 2019 Core
Yilokho kuphela. Esihlokweni esilandelayo, sizobheka ithebula lokuhambisana kohlelo neWindows Server Core.
Source: www.habr.com