2017年9月30日星期六

Install and configure Nano Server

In Windows Server 2016, Microsoft released Nano Server, a new installation option.  it has no local user interface, no 32-bit application support, and only the most basic configuration controls. There is no support for Remote Desktop to administer the system, you need use  remote PowerShell connection.

Advantage:
  • Extremely small footprint
  • Boot the fast, only few seconds
  • Dramatically faster than Windows Server or Server Core
  • Fewer updates
  • Smaller attack surface
  • Reduced shutdown time
  • Fewer open ports


Management Tools:
  • Powershell
  • MMC
  • Server Manager
  • System Center


Install Nano Server
Put the Windows Server 2016 system disk into the CD-ROM, or use the virtual CD-ROM loading the system ISO image. Under D:\NanoServer\NanoServerImageGenerator directory, Where D is your CD-ROM or virtual  CD-ROM letter. Copy three powershell script files to C:\Nano directory. (Note: This directory requires you to create, and the directory used to store the Nano Server VHD file.)






















Run as administrator the Powershell and enter “Import-module C:\Nano\NanoServerImageGenerator.psm1”. ( The C:\Nano directory is just copy the file directory, NanoServerImageGenerator. Psm1, is just copy one of the three files.)







Note: If appears “Running scripts is disabled on this system”error, use the "set-executionpolicy" to select the appropriate Powershell script policy.


Run “New-NanoServerImage -Edition Datacenter -MediaPath D:\ -BasePath c:\nano -TargetPath c:\nano\NanoSvr.vhd -MaxSize 20GB -DeploymentType  Guest”
Edition:The version of the Nano Server, Standard edition or Datacenter edition;
MediaPath: Specifies the path to the root of the Windows Server 2016 installation disk or mounted image.
BasePath:Specify a local path for storing files generated during the creation of the Nano Server, such as Packagers, Nano server.wim, etc
TargetPath:The full path and file name of the Nano Serve disk, the file extension VHD is used for the first generation virtual machine, and the VHDX is for the second generation virtual machine.  
MaxSize:Virtual disk Max size
DeploymentType: Specifies whether the image file should be used on a Hyper-V virtual machine (Guest) or a physical server (Host)
Note: In the process of creation, you need enter the "AdministratorPassword", which is the Administrator password for your Nano Server, and the user is "Administrator".







You can add other parameters that come from defining your Nano Server, such as:
ComputerName: Specifies the computer name that should be assigned to the Nano Server
InterfaceNameOrIndex:The name or index number of the network adapter
Ipv4Address:Address of IPv4
Ipv4SubnetMask: Subnet Mask of IPv4
Ipv4Gateway:Default Gateway of IPv4
Ipv4Dns:DNS of IPv4





Create a virtual machine, select "Use an existing virtual hard disk" on the Connect virtual hard disk page, and select "Browse" to select the virtual disk of the Nano Server you created earlier.


























Open the virtual machine, use the Administrator account and password login system; At this point the Nano Server does not join the domain, so the following Domain does not need to fill in, enter the user password, press Enter to enter the system.







Configuration Nano Server
After entering the system, we can carry out some simple configuration of the system, such as;
Networking: Configuration Network
Inbound Firewall Rules and Outbound Firewall Rules:Inbound and outbound rules for firewalls
Up/Dn: Move the cursor up and down
ESC: return to the previous page, here (home page) is canceled
F5: Refresh
Ctrl + F6: Restart
Ctrl + F12: Shutdown
Enter: Select





Select Networking to configure the network, then select the network adapter;


Here is the network card that some information, such as MAC, IP, etc., can be configured through F11 IPv4, F12 configuration IPv6;





The default is through the DHCP to obtain the IP address, if you want to change to manual, select F4



At this point the status of DHCP into a Disable, in the following input IP, subnet and default gateway, through the Enter to save;



save? Continue to press Enter;



Continue via Enter or ESC to return to the Network Adapter Settings page



Select the firewall rule



Select the firewall rules you want to change



Change the status of Enable by F4, Yes/No


Add the Nano Server to the domain
Run as administrator on the domain controller "djoin /provision /domain <You Domain Name> /machine Nanosvr1 /savefile  <FileName>"



Open Active Directory Users and Computer, select the OU you want to store the Nano Server, right-click to select the new computer, enter the Nano Server computer name;




















Access “ \\Nano Server IP or Computer Name\C$”, and copy the files created through the Djoin command to the Nano Server's C root directory


















Note: To access the share normally, you need to open the File and Printer Sharing rule for the firewall




Open the Powershell, use New-PSSession to create a new session, and then use Enter-PSSession to enter the session;
Since the DNS of my remote computer is not able to resolve the Nano Server, I am using IP Address here;




Run “djoin /requestodj /loadfile <FileName> /Windowspath C:\Windows /Locals”. The FileName of the offline join domain file



Restart the Nano Server, then you can use the Domain login, and you can view the Nano Server has joined the domain;




At this point you can manage the Nano Server through the Server Manager, and add the Nano Server to the Server Manager



Once added, right-click the Nano Server and select Windows Powershell

2017年8月12日星期六

Introduction and Installing Windows Server 2016

Introduction:
Determine Windows Server 2016 installation requirement
1. Which Windows Server 2016 edition should you install?                  
Cost of the  license
2. Which installation option should you use?   GUI, Core or  Nano? 
Save hardware resources
3. Which roles and features does the server need?                    
Server load and license;    note third-party applications resources load
4. What virtualization strategy should you use?                                
Easy to manage


Minimum hardware requirements
Processor architecture:X64
Processor Speed:1.4 GHz
Memory(RAM):512  MB for Server Core, 2 G for Server with Desktop Experience
Hard Disk drive Space: Minimum 32 GB

Note: The system partition also needs additional space if you install the system over a network or if the computer has more than 16 GB of RAM. The additional disk space is required for paging, hibernation, and dump files.

Maximum hardware and Virtualization limit
Processors:A server host supports up to 512 logical processors (LPs) if Hyper-V is installed.
Memory:Up to 24 terabytes per host server and up to 12 terabytes per virtual machine.
VHDX size:Up to 64 terabytes.
Virtual machines:Up to 1,024 per host server.
Virtual machine processors:Up to 240 per virtual machine.

Determine appropriate Windows Server 2016 edition
Windows Server 2016 Datacenter and Windows Server 2016 Standard
Windows Server 2016 Datacenter and Standard Key differences:
Feature
Datacenter
Standard
Core functionality of Windows Server
yes
yes
Hyper-V containers
Unlimited
2
Windows Server containers
Unlimited
Unlimited
Host Guardian Service
yes
yes
Nano Server installation option
yes
yes
Storage Spaces Direct
yes
no
Storage Replica
yes
no
Shielded Virtual Machines
yes
no
Networking stack
yes
no

Windows Server 2016 Essentials
  • Includes nearly all the features in the Standard and Datacenter editions
  • Don't have the Server Core installation option
  • physical or virtual machine, only limited to one
  • maximum of 25 users and 50 devices


Windows Server 2016 MultiPoint Premium Server
Available only through academic licensing, the Multipoint edition enables multiple users to access a single server installation.

Windows Storage Server 2016 Server
Available only through OEM channels, bundled of a dedicated storage hardware

Windows Hyper-V Server 2016
  • No cost
  • Without a graphical interface
  • Only can be used to run virtual machines


Performing a clean installation
1. The system CD into the CD-ROM and boot from the CD-ROM, or using other startup mesons to start. When loading the System CD, you need to press any key to boot from CD or DVD. If the hard driver does not have the OS, you can skip this step.











2. Select the language to install (generally keep the default), and select "Next";

























3. Select "Install now";
Note: Because the version of the problem, so do not have enter key option. If the retail version, After select "Install now", Could have let you enter key option, you can enter you already have the key or select "I do not have a product key" skip this step.























4. Select the version of the OS that you want to install, and select "Next"; (as long as you choose one of the versions,in below you well see on this version of the description.)

























5. Reading applicable notices and license terms and select I accept the license terms check box, and select "Next";

























6. Because we are new installation system, so here, select "Custom:Install Windows only(advanced)"


7. Here will list your server above all disks or partitions,  because here is new installation, so you need to create a new partition. Select "New" new partition.
Refresh: Upgrade partitions
Load driver: You to add disk drivers from an external medium, such as a CD-ROM,or USB drive.
Delete: Removes an existing partition from a disk
Extend: You to make an existing partition larger
Format: You to format an existing partition on a disk
New: Creates a new partition on a disk


























8. In the "Size" dialog box, enter the partition you want create a new partition size, and select "Apply". When Selecting "Apply", will pop up a dialog box to tell you "To ensure all windows features work correctly, Windows might create additional partitions for system files". Select "OK", and select "Next";
Note: Because here is test environment, so only have a partition. If is the production environment, be sure to divide two or more partition. One for the OS, the other for data storage;


















9. Select Next. If the partition already exists, you can using "Delete and Format" to change the partition;

























10. Installing, you need to wait a moment, the installation process will restart several times ( Automatically ), until the system installation complete.

























11. After the System is installed, there will be a custom setting, give you set administrator password. Enter the password twice, and select "Finish";





















12. According to the prompt, press "Ctrl + Alt + Delete" to unlock;
























13. Enter the password, access OS;




2017年3月1日星期三

Install Exchange 2016 on Windows 2016 server reported Server-GUI-Mgmt-Infra wrong

Error content:
The Windows component Server-Gui-Mgmt-Infra isn't installed on this computer and needs to be installed before Exchange setup can begin.




Exchange 2016 pre CU3 does not support Windows 2016, therefore you need to download Exchange 2016 CU3.

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