70-740, Teil 1.2.2. Nanoserver installieren

70-740, Teil 1.2.2.

Nanoserver installieren

Ideen für die Recherche im Web:

technet Nano Server

Zum Nachschlagen:

https://docs.microsoft.com/de-de/windows-server/get-started/nano-in-semi-annual-channel

https://technet.microsoft.com/de-de/windows-server-docs/get-started/getting-started-with-nano-server

https://docs.microsoft.com/en-us/powershell/module/nanoserverimagegenerator/new-nanoserverimage?view=win10-ps

https://technet.microsoft.com/de-de/library/hh848537.aspx

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/convertto-securestring?view=powershell-5.1

https://technet.microsoft.com/de-de/windows-server-docs/get-started/nano-server-quick-start

https://technet.microsoft.com/de-de/windows-server-docs/get-started/deploy-nano-server

https://www.microsoft.com/en-us/download/details.aspx?id=54065

https://docs.microsoft.com/de-de/windows-server/get-started/iis-on-nano-server

Übungen:

# Beispiel 1

Copy-Item D:\NanoServer\NanoServerImageGenerator -Destination C:\ -Recurse

cd C:\NanoServerImageGenerator

Get-ExecutionPolicy

# Bei Bedarf: Set-ExecutionPolicy RemoteSigned

Import-Module .\NanoServerImageGenerator -Verbose

djoin /provision /domain die.weiterbildung /machine wd2016nano3 /savefile wd2016nano3.odj

dir wd2016nano3.odj

New-NanoServerImage -Edition Standard -DeploymentType Guest -MediaPath E:\ -BasePath .\Base -TargetPath .\wd2016nano3.vhdx -MaxSize 1TB -Compute -Package Microsoft-NanoServer-DNS-Package -Ipv4Address 10.1.1.3 -Ipv4SubnetMask 255.0.0.0 -Ipv4Gateway 10.0.1.1 -Ipv4Dns 10.1.1.1 -EnableRemoteManagementPort -DomainBlobPath wd2016nano3.odj -ReuseDomainNode -Storage -InterfaceNameOrIndex Ethernet

$var_Switch=(Get-VMSwitch | Where {$_.SwitchType -eq “External”}).Name

$var_Switch

New-VM -VHDPath C:\NanoServerImageGenerator\wd2016nano3.vhdx -Generation 2 -MemoryStartupBytes 4GB -Name wd2016nano3 -SwitchName $var_Switch

get-vm

Start-VM wd2016nano3

get-vm

Enter-PSSession -VMName wd2016nano3

hostname

Get-Service | Measure-Object

Get-WindowsOptionalFeature -Online | ft

Enable-WindowsOptionalFeature -FeatureName DNS-Server-Full-Role -Online

###

# Beispiel 2

Copy-Item D:\NanoServer\NanoServerImageGenerator -Destination C:\ -Recurse

cd C:\NanoServerImageGenerator

Get-ExecutionPolicy

# Bei Bedarf: Set-ExecutionPolicy RemoteSigned

Import-Module .\NanoServerImageGenerator -Verbose

New-NanoServerImage -Edition Standard -DeploymentType Guest -MediaPath D:\ -BasePath .\Base -TargetPath .\wd2016nano1\wd2016nano1.vhdx -ComputerName wd2016nano1

get-vm

Enter-PSSession -VMName wd2016nano1

New-NanoServerImage -DeploymentType Guest -Edition Datacenter -TargetPath .\wd2016nanoC5\wd2016nanoC5.vhdx -BasePath .\Base -Compute -ComputerName wd2016nanoC5 -Containers -DomainName gemuetliche.pause -EnableRemoteManagementPort -InterfaceNameOrIndex Ethernet -Ipv4Address 10.10.3.5 -Ipv4Dns 10.10.3.1 -Ipv4Gateway 10.10.3.1 -Ipv4SubnetMask 255.0.0.0 -ReuseDomainNode -Storage

###

# Beispiel 3

Copy-Item E:\NanoServer\NanoServerImageGenerator -Destination C:\ -Recurse

cd C:\NanoServerImageGenerator

Get-ExecutionPolicy
# Bei Bedarf: Set-ExecutionPolicy RemoteSigned
# https://technet.microsoft.com/de-de/library/ee176961.aspx

Import-Module .\NanoServerImageGenerator -Verbose

get-help New-NanoServerImage -ShowWindow

get-help New-NanoServerImage -Online

dir E:

Get-VMSwitch

$Secure = Read-Host -AsSecureString
#https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/convertto-securestring?view=powershell-5.1

1..5 | % {
New-NanoServerImage -DeploymentType Guest -Edition Datacenter -TargetPath .\wdN$_.vhdx -Clustering -Compute -ComputerName wdN$_ -Containers -DomainName gemuetliche.pause -EnableRemoteManagementPort -InterfaceNameOrIndex Ethernet -Ipv4Address 10.104.4.$_ -Ipv4Dns 10.4.4.1 -Ipv4Gateway 10.0.4.1 -Ipv4SubnetMask 255.0.0.0 -MaxSize 100GB -MediaPath E:\ -Package Microsoft-NanoServer-DNS-Package, Microsoft-NanoServer-IIS-Package -ReuseDomainNode -Storage -AdministratorPassword $Secure
#https://docs.microsoft.com/en-us/powershell/module/nanoserverimagegenerator/new-nanoserverimage?view=win10-ps

New-VM -VHDPath C:\NanoServerImageGenerator\wdN$_.vhdx -Generation 2 -MemoryStartupBytes 4GB -Name wd$_ -SwitchName Switch1
#https://technet.microsoft.com/de-de/library/hh848537.aspx

}

Start-VM -VMName wdN2

Enter-PSSession -VMName wdN2

Get-NetFirewallRule -DisplayGroup “*Remote*” | ft DisplayName, Enabled

Get-NetFirewallRule -DisplayGroup “*Remote*” | Enable-NetFirewallRule

###

# Beispiel 4

Bild1: Thema 1.2.2 Nanoserver installieren (relevante Zertifizierungspfade: MCSA, MCSE)