Website under construction



Download 13,37 Mb.
Pdf ko'rish
bet83/131
Sana27.03.2022
Hajmi13,37 Mb.
#512480
1   ...   79   80   81   82   83   84   85   86   ...   131
Bog'liq
9780735697744 Introducing Windows Server 2016 pdf

Specializing Nano Server 
Just like Server Core, you can use a subset of what is available via Unattend to specialize a Nano 
Server image. In an effort to further reduce the deployment time beyond just the smaller footprint, a 
couple of commonly used Unattend settings are available to set offline: 

Computer name 

Domain join using Djoin.exe 
More info For information on how to perform an offline domain join using Djoin.exe, see 
https://technet.microsoft.com/windows-server-docs/compute/nano-server/getting-started-with-
nano-server
. 
When you deploy a Nano Server image with these settings configured in the offline section of the 
Unattend file, Nano Server is specialized on first boot. This eliminates the second boot that occurs 
with Server Core during specialization, further reducing deployment time. 


94 
CHAPTER 3 | Application platform 
Remotely managing Nano Server 
Nano Server is truly headless—there is no way to use Remote Desktop to connect remotely. As a 
result, you must perform all Nano Server management remotely, either via Windows PowerShell
Windows Management Instrumentation (WMI), Windows Remote Shell (WinRS), Emergency 
Management Services (EMS), or remote GUI tools. 
Note The options discussed in this section to remotely manage Nano Server are the same 
mechanisms that you can use to remotely manage Server Core. The only difference in managing 
Nano Server is that you must do it all remotely. 
Windows PowerShell 
Nano Server includes a refactored subset of Windows PowerShell called Core PowerShell, which is 
based on the CoreCLR. Core PowerShell provides the following: 

Full Windows PowerShell language compatibility 

Full Windows PowerShell remoting 

Most core engine features 

Support for all cmdlet types, including C#, Windows PowerShell, and CIM 
Because Nano Server includes Core PowerShell, it is possible to use Windows PowerShell Remoting to 
manage Nano Server. To do so, you need to be an administrator on the Nano Server machine and add 
its IP address to the management machine's trusted hosts. To do that, from an elevated Windows 
PowerShell prompt, run the following command (which, for this example, assumes the Nano Server 
machine’s IP address is 192.168.1.10): 
PS C:\> Set-Item WSMan:\localhost\Client\TrustedHosts "192.168.1.10"
The following is an example of how to start an interactive remoting session: 
PS C:\NanoServer> $ip = "192.168.1.10"
PS C:\NanoServer> $user = "Administrator"
PS C:\NanoServer> Enter-PSSession -ComputerName $ip -Credential $user
After you have done this, you can now run any available Windows PowerShell command as if you 
were entering it directly into the Nano Server console; for example: 
[192.168.1.10]: PS C:\users\user1\Documents> Get-Process w*
[192.168.1.10]: PS C:\users\user1\Documents> ipconfig /all 
Not all Windows PowerShell commands are available in Nano Server. To see which cmdlets are 
available, run the following command: 
[192.168.1.10]: PS C:\users\user1\Documents> Get-Command -CommandType Cmdlet 
To end the remoting session, run this command: 
[192.168.1.10]: PS C:\users\user1\Documents> Exit-PSSession 
WMI 
Nano Server includes WMI v1 and WMI v2 as well as the providers for the included functionality. 


95 
CHAPTER 3 | Application platform 
WinRM 
You can use CIM sessions and CIM instances in Windows PowerShell to run WMI commands remotely 
over WinRM, as demonstrated here: 
PS C:\NanoServer> $ip = "192.168.1.10"
PS C:\NanoServer> $user = "Administrator"
PS C:\NanoServer> $cim = New-CimSession 

Credential $user 

ComputerName $ip
When the CIM session is established, you can run various WMI commands, such as the following: 
PS C:\NanoServer> Get-CimInstance 

CimSession $cim 

ClassName Win32_ComputerSystem | Format-List *
PS C:\NanoServer> Get-CimInstance -Query "SELECT * from Win32_Process WHERE name LIKE 'p%'"
WinRS 
Using Windows Remote Management (WinRM), you can run programs remotely. Before you can use 
WinRS, you need to configure the WinRM service and set the code page, as follows: 
C:\NanoServer> winrm quickconfig 
C:\NanoServer> winrm set winrm/config/client @{TrustedHosts="*"} 
After you configure the WinRM service, you can run commands remotely, as if you were running them 
from the command line: 
C:\NanoServer> winrs 

r:192.168.1.10 -u:Administrator -p:Tuva ipconfig 

Download 13,37 Mb.

Do'stlaringiz bilan baham:
1   ...   79   80   81   82   83   84   85   86   ...   131




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish