ISW-Tools

Nano Server erstellen Powershell Skripte

Jörn Walter Veröffentlicht Aktualisiert 3 Min. Lesezeit Windows Server 2016

Nano Server erstellen

Mit diesen Skripten erstellen wir ein virtuelles Nano Server Image.

FileServer mit Domänen Beitritt:
New-NanoServerImage -MediaPath ‚G:\SERVER 2016 ISO DE‘ -Edition ‚Standard‘ -DeploymentType Guest -TargetPath ‚G:\NANO SERVER IMAGE\NS16_FILER\NS16_FILER.vhdx‘ -MaxSize 34359738368 -DomainName ’ndsedv.de‘ -ReuseDomainNode -EnableRemoteManagementPort -SetupUI (‚NanoServer.Storage‘) -ComputerName ‚NS16_FILER‘ -SetupCompleteCommand (‚tzutil.exe /s „W. Europe Standard Time“‚) -LogPath ‚D:\NanoServerImageBuilder\Logs‘

FileServer ohne Domänen Beitritt:
New-NanoServerImage -MediaPath ‚G:\SERVER 2016 ISO DE‘ -Edition ‚Standard‘ -DeploymentType Guest -TargetPath ‚G:\NANO SERVER IMAGE\NS16_FILER\NS16_FILER.vhdx‘ -MaxSize 34359738368 -EnableRemoteManagementPort -SetupUI (‚NanoServer.Storage‘) -ComputerName ‚NS16_FILER‘ -SetupCompleteCommand (‚tzutil.exe /s „W. Europe Standard Time“‚) -LogPath ‚D:\NanoServerImageBuilder\Logs‘

DNS Server ohne Domäne und fester IP:
New-NanoServerImage -MediaPath ‚G:\SERVER 2016 ISO DE‘ -Edition ‚Standard‘ -DeploymentType Guest -TargetPath ‚G:\NANO SERVER IMAGE\NS16_DNS\NS16_DNS.vhdx‘ -MaxSize 34359738368 -EnableRemoteManagementPort -InterfaceNameOrIndex ‚1‘ -Ipv4Address ‚172.18.32.50‘ -Ipv4Dns ‚172.18.32.1‘ -Ipv4SubnetMask ‚255.255.255.0‘ -Ipv4Gateway ‚172.18.32.1‘ -EnableEMS -EMSPort 1 -EMSBaudRate 115200 -SetupUI (‚NanoServer.DNS‘) -ComputerName ‚NS16_DNS‘ -SetupCompleteCommand (‚tzutil.exe /s „W. Europe Standard Time“‚) -LogPath ‚D:\NanoServerImageBuilder\Logs‘

DNS Server mit Domäne und fester IP:
New-NanoServerImage -MediaPath ‚G:\SERVER 2016 ISO DE‘ -Edition ‚Standard‘ -DeploymentType Guest -TargetPath ‚G:\NANO SERVER IMAGE\NS16_DNS\NS16_DNS.vhdx‘ -MaxSize 34359738368 -DomainName ’ndsedv.de‘ -ReuseDomainNode -EnableRemoteManagementPort -InterfaceNameOrIndex ‚1‘ -Ipv4Address ‚172.18.32.50‘ -Ipv4Dns ‚172.18.32.1‘ -Ipv4SubnetMask ‚255.255.255.0‘ -Ipv4Gateway ‚172.18.32.1‘ -EnableEMS -EMSPort 1 -EMSBaudRate 115200 -SetupUI (‚NanoServer.DNS‘) -ComputerName ‚NS16_DNS‘ -SetupCompleteCommand (‚tzutil.exe/s „W. Europe Standard Time“‚) -LogPath ‚D:\NanoServerImageBuilder\Logs‘

Container mit Domänen Join:
New-NanoServerImage -MediaPath ‚G:\SERVER 2016 ISO DE‘ -Edition ‚Standard‘ -DeploymentType Guest -TargetPath ‚G:\NANO SERVER IMAGE\NS16_CON\NS16_CON.vhdx‘ -MaxSize 34359738368 -DomainName ’ndsedv.de‘ -ReuseDomainNode -EnableRemoteManagementPort -SetupUI (‚NanoServer.Containers‘) -ComputerName ‚NS16_CON‘ -SetupCompleteCommand (‚tzutil.exe /s „W. Europe Standard Time“‚) -LogPath ‚D:\NanoServerImageBuilder\Logs‘

Container ohne Domänen Join:
New-NanoServerImage -MediaPath ‚G:\SERVER 2016 ISO DE‘ -Edition ‚Standard‘ -DeploymentType Guest -TargetPath ‚G:\NANO SERVER IMAGE\NS16_CON\NS16_CON.vhdx‘ -MaxSize 34359738368 -EnableRemoteManagementPort -SetupUI (‚NanoServer.Containers‘) -ComputerName ‚NS16_CON‘ -SetupCompleteCommand (‚tzutil.exe /s „W. Europe Standard Time“‚) -LogPath ‚D:\NanoServerImageBuilder\Logs‘

IIS und Antimalware ohne Domänen Beitritt:
New-NanoServerImage -MediaPath ‚G:\SERVER 2016 ISO DE‘ -Edition ‚Datacenter‘ -DeploymentType Guest -TargetPath ‚G:\NANO SERVER IMAGE\NS16_IIS\NS16_IIS.vhd‘ -MaxSize 34359738368 -EnableRemoteManagementPort -SetupUI (‚NanoServer.IIS‘, ‚NanoServer.Defender‘) -ComputerName ‚NS16_IIS‘ -SetupCompleteCommand (‚tzutil.exe /s „W. Europe Standard Time“‚) -LogPath ‚D:\NanoServerImageBuilder\Logs‘

NanoServer_Powershell.txt

Create virtual Nano Server Image with Image Builder.zip

Porträt Jörn Walter

Jörn Walter

Inhaber von IT-Service Walter in Euskirchen, betreut Windows-Umgebungen von Unternehmen und entwickelt die ISW-ADTools.

Alle Beiträge von Jörn Walter