Configure Microsoft Hyper-V Server 2016

AKcryptoGUY
4 min readOct 7, 2018

--

Part 2: Be Your Own VPS

by AKcryptoGUY

Server Configuration utility (sconfig.cmd)

Introduction

Once you have installed the Hyper-V Server 2016 operating system, you are ready to complete the local setup of the server from the command line and PowerShell. This will prepare the server for remote management from another Windows computer on your network. Using the methods described in these Guides, you will be able to use one physical computer to host several virtual Windows or Linux computers which could each run wallets or masternodes without the need for you to purchase virtual hosting or VPS from a third party.

Before You Begin

  • Download and install Hyper-V Server 2016 as described in the first part of this series

Instructions

Since Hyper-V Server is a core installation, there is no Windows desktop to log into. All configuration will be done either remotely through another Windows computer or through the command prompt or PowerShell. For the first part of the initial server configuration, you will configure it on the local server through the command line. This guide will direct you in how to complete the initial server configuration. After the basic configuration is complete, the next segment of this series will talk about how to finish configuring the server remotely in addition to preparing the Hyper-V role to host its first guest operating systems.

Initial Setup

1. Log into the server using the Administrator password

2. Configure the following changes in the blue sconfig utility

  • Telemetry — switch to Security
  • Set Date and Time zone to your local time
  • Sync time with an internet source
  • In Network Settings, configure a static IP address
  • Enable Remote Desktop and require more secure connections
  • Set Windows Update to DownloadOnly
  • Enable Remote Management and allow Ping reply
  • Add a Local Administrator and enter a password
  • Rename the Computer, do not reboot yet
  • Connect to Workgroup

3. Reboot the server and log back in

4. Install all Windows Updates

  • Enter Download and Install Updates, choose option 6 in Server Config
  • Search for and install updates, reboot when prompted to
  • Search for additional updates and install them again, reboot
  • Repeat previous step and reboot until no new updates are detected

5. Disable password expiration — in command prompt, enter:

net accounts /maxpwage:unlimited

6. Enter PowerShell — in command prompt, enter:

powershell

7. Disable Windows Defender — in PowerShell, enter:

Uninstall-WindowsFeature -Name Windows-Defender

8. Create firewall rules to enable Remote Management

  • Enter each of the 4 following rules into the PowerShell prompt and press enter after each

Set-NetFirewallRule -DisplayGroup “Windows Management Instrumentation (WMI)” -Enabled true

Set-NetFirewallRule -DisplayGroup “Remote Event Log Management” -Enabled true

Set-NetFirewallRule -DisplayName “Windows Firewall Remote Management (RPC)” -Enabled True

Set-NetFirewallRule -DisplayName “Windows Firewall Remote Management (RPC-EPMAP)” -Enabled True

Firewall Rules to add on Hyper-V server to enable remote management

9. Shut down the computer

Tips and Troubleshooting

  • If you assign a static IP address on the server, make sure you reserve the same address on your router
  • Windows updates can take an hour or more to download and install, and you may have to download them and reboot more than once. This is normal.

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Watch this video on YouTube: https://youtu.be/xDesJX5RhzM

Credits:
Music is “Unfoldment, Revealment, Evolution, Exposition, Integration” by Chris Zabriskie

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Stay in Touch with us:

Twitter → https://twitter.com/AKcryptoGUY

Medium → https://medium.com/@AKcryptoGUY

Facebook → https://www.facebook.com/AKcryptoGUY

Instagram → https://www.instagram.com/akcryptoguy

YouTube → https://www.youtube.com/channel/UCIFu9OZWOtfxokGdFY6aTog

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Affiliate Links:

Windscribe VPN: Your online privacy is under attack:

https://windscribe.com/?affid=myxd75vi

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

If I helped you save, please consider helping me earn.

BTC: 3LbUJVW9WmXPgFStTXSLTBwjpnbVTtt8Ja

TRON: TLsday62mhM67Sv5G5Z5Ju66TezJuVFbiw

DGB: DUJ8W8QpmVex87posFPoDYGg5FrYCoMLGq

DOGE: DH9Sj3DQNVBaxb6kZBXc6X2MPQjbv7H6oy

ETH: 0xF2c21D9aCa782560169e23Cc83Ed195F9A3eA761

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Credits:
Unfoldment, Revealment, Evolution, Exposition, Integration by Chris Zabriskie is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)

Source: http://chriszabriskie.com/reappear/

Artist: http://chriszabriskie.com/

--

--