Category: Windows 8.1

Hyper-V Enhanced Session Mode

10 hidden Hyper-V features you should know about!

Microsoft added some amazing new features and improvements to Hyper-V over the past few years. A lot of them you can use in Windows Server 2016 Hyper-V today, but there are also a lot of features hidden in the user interface and they are also included in Windows 10 Pro or Enterprise. I think this list should you a good idea about some of them.

Nested Virtualization

Hyper-V Nested Virtualization

Hyper-V Nested Virtualization allows you to run Hyper-V in a Hyper-V Virtual Machine. This is great for testing, demo and training scenarios and it work on Windows Server 2016 and Windows 10 Pro and Enterprise. Microsoft Azure will also offer some new Virtual Machine which will offer the Nested Virtualization feature in the Azure public cloud. Nested Virtualization is not just great if you want to run virtual machines inside a virtual machine, it is also great (and I think this will be the largest use case in the future) you can also run Hyper-V Container inside a Hyper-V or Azure Virtual Machine. Hyper-V Containers are a feature will brings the isolation of a Virtual Machine to a fast, light and small footprint container. To enable Nested Virtualization you have the following requirements:

  • At least 4 GB RAM available for the virtualized Hyper-V host.
  • To run at least Windows Server 2016 or Windows 10 build 10565 (and higher) on both the physical Hyper-V host and the virtualized host. Running the same build in both the physical and virtualized environments generally improves performance.
  • A processor with Intel VT-x (nested virtualization is available only for Intel processors at this time).
  • Other Hypervisors will not work

Configure the Virtual Machine for Nested Virtualization follow the following steps:

  • disable Dynamic Memory on Virtual Machine
  • enable Virtualization Extensions on the vCPU
  • enable MAC Address Spoofing
  • set Memory of the Virtual Machine to a minimum of 4GB RAM

To enable the Virtualization Extensions on the vCPU you can run the following PowerShell command

 
Set-VMProcessor -VMName "VMName" -ExposeVirtualizationExtensions $true

PowerShell Direct

PowerShell Direct Enter-PSSession

Hyper-V PowerShell Direct is also one of the great new features in Windows 10 and Windows Server 2016 Hyper-V. PowerShell Direct allows you to connect to a Virtual Machine using PowerShell without connecting over the network. Instead of the network, PowerShell Direct uses the Hyper-V VMBus to connect from the Hyper-V host to the virtual machine. This is handy if you are doing some automation or you don’t have network access to the virtual machine. In terms of security, you will still need to provide credentials to access the virtual machine.

To use PowerShell Direct you have the following requirements:

  • The virtual machine must be running locally on the Hyper-V host and must be started.
  • You must be logged into the host computer as a Hyper-V administrator.
  • You must supply valid user credentials for the virtual machine.
  • The host operating system must run Windows 10, Windows Server 2016, or a higher version.
  • The virtual machine must run Windows 10, Windows Server 2016, or a higher version.

To use PowerShell Direct just use the Enter-PSSession or Invoke-Command cmdlets with the -VMName, -VMId or VM parameter.

 
Enter-PSSession -VMName "VM01" -Credential (Get-Credential)

Hyper-V Virtual Switch using NAT

Hyper-V Virtual Switch NAT Configuration

If you are running Hyper-V on your workstation, laptop you know that networking could have been kind of a problem. With the Hyper-V Virtual Switch using NAT, you can now create an internal network for your virtual machines and still allow them to for example have internet access, like you would run your virtual machines behind a router. To use this feature you have the following requirements:

  • Windows 10 and Windows Server 2016 build 14295 or later
  • Enabled Hyper-V role

To enable you can first create an internal switch using PowerShell, the the IP Address on the Virtual NIC on the Management OS and then set the NAT configuration:

 
New-VMSwitch –SwitchName “NATSwitch” –SwitchType Internal
 
New-NetIPAddress –IPAddress 172.21.21.1 -PrefixLength 24 -InterfaceAlias "vEthernet (NATSwitch)"
 
New-NetIPAddress –IPAddress 172.21.21.1 -PrefixLength 24 -InterfaceAlias "vEthernet (NATSwitch)"

To create NAT forwarding rules you can for example use the following command:

 
Add-NetNatStaticMapping -NatName “VMSwitchNat” -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 172.21.21.2 -InternalPort 80 -ExternalPort 80

Virtual Battery for Virtual Machines

Hyper-V VM battery

With the Windows 10 Insider Build XXXX and later with the release of the Windows 10 Fall Creators Update, Microsoft enabled a Virtual Battery feature for Hyper-V Virtual Machines. This will allow Hyper-V VMs to see the battery status of the host. This is great when you are running Hyper-V on a notebook or if you have a SUV battery on your server

Hyper-V VMConnect – Enhanced Session Mode

Hyper-V Enhanced Session Mode

Interacting with Virtual Machines can be difficult and time consuming using the default VM console, since you can not copy paste or connect devices. VMConnect lets you use a computer’s local resources in a virtual machine, like a removable USB flash drive or a printer and in addition to this, Enhanced session mode also lets you resize the VMConnect window and use copy paste. This makes it almost as if you would use the Remote Desktop Client to connect to the Virtual Machine, without a network connection, instead you will make use of the VMBus.

The Enhanced Session Mode feature was introduced with Windows Server 2012 R2 and Windows 8.1. Enhanced session mode basically provides your Virtual Machine Connection with RDP (Remote Desktop Protocol) capabilities over the Hyper-V VMBus, including the following:

  • Display Configuration
  • Audio redirection
  • Printer redirection
  • Full clipboard support (improved over limited prior-generation clipboard support)
  • Smart Card support
  • USB Device redirection
  • Drive redirection
  • Redirection for supported Plug and Play devices

Requirements for the Enhanced Session Mode are:

  • The Hyper-V host must have Enhanced session mode policy and Enhanced session mode settings turned on
  • The computer on which you use VMConnect must run Windows 10, Windows 8.1, Windows Server 2016, or Windows Server 2012 R2 or higher
  • The virtual machine must have Remote Desktop Services enabled, and run Windows 8.1 (or higher) and Windows Server 2012 R2 (or higher) as the guest operating system.

You can simply use it, by pressing the enhanced session button (if you have all the requirementsOn the Windows 10 Client this is enabled by default on the “host”. On Windows Server you have to enable it first in the Hyper-V Manager under Hyper-V Settings

Hyper-V Manager Zoom Level

Hyper-V VMConnect Zoom Level

In the Windows 10 Creators Update, Microsoft introduced a new feature to the VMConnect Console. This feature allows you to control the zoom level of the Virtual Machine console, this is especially handy if you have a high DPI screen.

Virtual TPM Chip

Hyper-V Virtual TPM

If you are running Windows 10 or Windows Server 2016 or higher you can make use of a feature called Shielded Virtual Machines. This allows you to protect your virtual machines form being accessed from the outside. With this feature Microsoft added different levels of security enhancements. One of them is the possibility to add a Virtual TPM chip to the virtual machine. With that enabled you can use BitLocker or another encryption technology to encrypt your virtual machine disks from inside the VM.

Enable Hyper-V vTPM PowerShell

You can enable the Virtual TPM chip using the Hyper-V Manager or PowerShell. The virtual machine needs to be shut down.

 
Enable-VMTPM -VMName W10-01

Just to make sure, if you really need full protection, have a look at Shielded Virtual Machines with the Host Guardian Service (HGS).

VM Resource Metering

Hyper-V VM Resource Metering

With Windows Server 2012 Hyper-V Microsoft introduced a new feature in Hyper-V called VM Resource Metering which allows you to measure the usage of a virtual machine. This allows you to track CPU, Memory, Disk and network usage. This is a great feature especially if you need to do charge back or maybe even for trouble shooting.

You can enable VM Resource Metering using PowerShell

 
Enable-VMResourceMetering -VMName WS2016DX

To measure the virtual machine, you can used the following command

 
Measure-VM -VMName WS2016DX

Export and Share Hyper-V Virtual Machines

Export and Share Hyper-V Virtual Machine

Another feature a lot of people do not know about is that you can export Hyper-V Virtual Machines to copy them to another computer or server. The great thing about this, this can even be done while the virtual machine is running and you can even export the state of the virtual machine with it. You can use the UI to do this, or you just run PowerShell using the Export-VM cmdlet.

 
Export-VM -Name TomsVM -Path D:\

In the Windows 10 Fall Creators Update Microsoft also added a button to shared the Virtual Machine. This does not only export the virtual machine but it also create a compressed VM Export File (.vmcz).

Hyper-V Containers

Hyper-V Windows Containers

In Windows 10 and Windows Server 2016 you can run Windows Containers using Docker. While on Windows Server you can choose between running a Windows Container or a Hyper-V Container, you will always run a Hyper-V Container on Windows 10. While Hyper-V Containers and Windows Containers are fully compatible with each other, what means you can start a Windows Container in a Hyper-V Container runtime and the other way around, the Hyper-V Container gives you an extra layer of isolation between your containers and your operating system. This makes running containers not just much more secure but since the Windows 10 Fall Creators Update and Windows Server RS3 (Redstone 3), it will also allow you to run Linux Containers on a Windows Container Host, which will make Windows the best platform to run Windows Containers and Linux Containers side by side.

I hope this short list was helpful and showed you some features you didn’t know were there in Hyper-V. Some of these features are still in preview and are might not available in production versions of Hyper-V. Leave your favorite secret Hyper-V features in the comments!



Open website from PowerShell

Open website from PowerShell

If you want to directly open a website from the PowerShell console, you can use the Start-Process cmdlet. This will open the website in the default browser:

 
Start-Process "https://www.thomasmaurer.ch"

You can also use “Start” which is an alias for Start-Process:

 
Start "https://www.thomasmaurer.ch"

Yes this is a very short post, but I hope this was helpful and you can now open a website from PowerShell.



Installation Windows Server 2016 VPN

How to Install VPN on Windows Server 2016

This post shows you how you can install a VPN Server on Windows Server 2016 Step-by-Step. It shows you how you can easily setup a VPN server for a small environment or for a hosted server scenario. This blog post covers how you can use Windows Server VPN.

This is definitely not a guide for an enterprise deployment, if you are thinking about a enterprise deployment you should definitely have a look at Direct Access.

I already did similar blog posts for Windows Server 2008 R2, Windows Server 2012 and Windows Server 2012 R2.

You can simply follow this step by step guide:

Install the Windows Server VPN Role

First install the “Remote Access” via Server Manager or Windows PowerShell.

Install Remote Access Role VPN

Select the “DirectAccess and VPN (RAS)” role services and click next.

DirectAccess and VPN (RAS)



diskpart-usb-drive

Create a USB Stick for Windows Server 2016 Installation

If you have download the latest version of Windows Server 2016 you can create a USB stick to install it on a physical server. This blog goes through how you create a USB Stick for Windows Server 2016.

For UEFI Systems:

  • The at least a 8GB USB drive has to be formatted in FAT32
  • The USB needs to be GPT and not MBR
  • Copy all files from the ISO to the USB drive

diskpart-usb-drive

This is it, and here is how you do it:

First plugin your USB drive to your computer. The USB drive should be bigger than 6GB.

Open a CMD prompt or PowerShell using the Run as Administrator option and open diskpart. Now you can do list all this by using

 
list disk

Select the USB disk, in my case this was disk 1

 
select disk 1

Clean the disk. Be careful this will remove all files and partitions on the USB media.

 
clean

Now convert it to GPT

 
convert gpt

Create a new primary partition. But make sure the partition is not greater than 16GB otherwise it can be formatted with FAT32.

 
create partition primary
 
# If your USB drive is bigger than 16GB use the following command
 
create partition primary size=16000

Format the partition with FAT32

 
format fs=FAT32 quick

Assign a drive letter to the volume

 
assign letter=k

now you can exit the diskpart and copy all files from the Windows or Windows Server to the USB drive and boot it. This works with Windows 8, Windows 8.1, Windows 10, Windows Server 2012, Windows Server 2012 R2 and Windows Server 2016 or even Hyper-V Server in the same editions.

For MBR systems:

  • The at least a 8GB USB drive has to be formatted in FAT32
  • The USB needs to be MBR
  • Partition need so be set active
  • Copy all files from the ISO to the USB drive

diskpart-usb-drive-mbr

 

This is it, and here is how you do it:

First plugin your USB drive to your computer. The USB drive should be bigger than 6GB.

Open a CMD prompt or PowerShell using the Run as Administrator option and open diskpart. Now you can do list all this by using

 
list disk

Select the USB disk, in my case this was disk 1

 
select disk 1

Clean the disk. Be careful this will remove all files and partitions on the USB media.

 
clean

Create a new primary partition. But make sure the partition is not greater than 16GB otherwise it can be formatted with FAT32.

 
create partition primary
 
# If your USB drive is bigger than 16GB use the following command
 
create partition primary size=16000

Format the partition with FAT32

 
format fs=FAT32 quick

Set Active

 
active

Assign a drive letter to the volume

 
assign letter=k

now you can exit the diskpart and copy all files from the Windows or Windows Server to the USB drive and boot it. This works with Windows 8, Windows 8.1, Windows 10, Windows Server 2012, Windows Server 2012 R2 and Windows Server 2016 or even Hyper-V Server in the same editions.

 

Important:

If Install.wim is larger than 4GB, you cannot copy the file to the drive, because of theFAT32 based partition limitation. The solutions for this is to split the wim file into smaller files.

split wim file using dism (you may have to change the drive letters):

 
dism /Split-Image /ImageFile:e:\sources\install.wim /SWMFile:k:\sources\install.swm /FileSize:4096

 



PowerShell get Drvier Version

Get Installed Driver Version using PowerShell

If you are using Windows Server Core or you just want to check the driver version using PowerShell you can using the following command:

 
Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion, Manufacturer

You can also filter a specific driver name using the following command:

 
Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion, Manufacturer | where {$_.DeviceName -like "*Intel*"}

 



FindTime for Outlook – Doodle for Business

Scheduling meetings can be a real pain you have to do calls, ask people and check calendars which can be a huge time effort. Lucky there are solutions like Doodle to schedule meetings and a lot of us are using Doodle in our personal life which is great, but it could be a lot better, especially if you are using it for business meetings. Microsoft released a Outlook solution for this a couple of months ago called FindTime for Outlook. But since not a lot of people seem to know about FindTime I decided to write a quick blog post about it.

FindTime is a Office Plugin for Outlook which allows you to schedule and plan meetings. To use FindTime just do the following steps:

  1. Install FindTime
  2. Restart Outlook and the Plugin will automatically appear (btw. Works with Outlook 2013, Outlook 2016, Outlook for Mac and Outlook on the Web)
  3. Compose a new email or reply to an existing email
  4. Click “New Meeting Poll” in the Message tab of the email. This will open a new poll and will automatically check if people in your organization are available or not, depending on there calendar. External people will just show up in grey.
    FindTime New Meeting Availability
  5. You also have different options from Online Meetings (using Skype for Business) or meetings in different locations. People will then get the link to vote for the meeting date. You also have different options like Notifications when someone votes, Auto scheduling of the meeting if everyone required has voted and more.
    FindTime Send Invite
  6. People can now vote on the FindTime website. People can also use preferred dates and can see how others have voted. You can schedule the meeting manual or you can set the option to auto schedule, this will automatically send the invites after everyone required for the meetings has voted.
    FindTime Meeting Voting

For me FindTime for Outlook is a huge time saver if you have to schedule meetings and appointments with other attendees. So make sure you have a look at it, the only thing your organization needs, is a Office 365 subscription.



Surface Hub Skype Meeting

My Microsoft Surface Hub Review

Last week we finally go our Microsoft Surface Hub for our itnetX office in Bern and I had the chance to do some testing. The Surface Hub is an interactive whiteboard developed by Microsoft ideally for business meetings. Before I get started let me show you the specs for the Surface Hub devices. Microsoft offers two models right now, a 84-inch model and a 55-inch model.

Microsoft Surface Hub

The Surface Hub 84” model is ideal for medium and large conference room and it allows three people to comfortably interact with the screen simultaneously. The 84” version has also a 4K resolution, an Intel i7 processor, 128GB SSD, 8GB of RAM and a NVIDIA Quadra K2200 graphics card. The Surface Hub 55” model is perfect for smaller conference rooms and in work environments where you’ll move your Surface Hub into different spaces. The 55” model comes with a Full HD resolution, an Intel i5 processor, 128GB SSD, 8GB of RAM and integrated Intel graphics.

Surface Hub Keyboard Surface Hub Pen

Both model feature a 100-point multi-touch display, 2 passive Infrared Presence Sensors, Ambient Light Sensors, 2 front-facing stereo speakers, 2 wide angle HD cameras, active pen support, Windows 10 and a wireless keyboard. To see the full specs of both devices check out the Microsoft Surface Hub website.

My first impression of the Surface Hub

Surface Hub Welcome Screen

My first impression was the Surface Hub looks great, it is perfect for every meeting room and it is very easy to use. The quality of the devices is, as usual for Microsoft Surface devices, really great and feels like a high quality premium device. When you come in come in the conference room use first see the big screen and showing the time, the next scheduled meetings and the most important apps like the whiteboard, wireless screen sharing.

Different Meeting Options

Surface Hub Startscreen

The Microsoft Surface Hub offers different meeting options. You can use it for in person meetings in the meeting room as a beamer replacement or wireless display for your notebook, as a whiteboard or use other apps like Office (Word, Excel, PowerPoint), Maps app or many more to come. The other thing the Surface Hub does very well is video conferencing using Skype for Business using the same apps and features.

The Surface Hub works perfectly with different deployment types

Perfect for in-person meetings

Surface Hub Whiteboard

If you are using the meeting room for a meeting with persons in the room, the multi touch screen and the apps are great. I really like the whiteboard app which allows you to draw diagrams and other stuff. A nice feature is that when you take on of the pens out of the holder it automatically open ups the whiteboard app and you can immediately start drawing. You can also use the screen as a display for your notebook as beamer replacement.

Surface Hub Screen Sharing

You can use the screen as a wireless display using Windows 10, Windows 8 or Windows 10 Mobile and of course the display also features cable input for DisplayPort, HDMI or VGA. If you use the wireless display connection in Windows 10 you can also allow input from the Surface Hub screen back to your Windows 10 computer. For example you project your screen to the Surface Hub to show a PowerPoint slide deck for example, you can stand up and touch the screen for the next slide or draw on the slide it self. By the way, connecting wirelessly is very fast, I used several different devices to connect with my Windows 10 devices using Miracast, like the Xbox One or the Microsoft Wireless Adapter, but none of the devices connected as fast as to the Surface Hub.

 

And of course this also works with other devices supporting Miracast like Windows 10 Mobile (especially cool with the Windows Continuum feature) and for example Android smartphones.

Skype for Business Video Conferencing

Surface Hub Skype for Business

The other great scenario is using the Microsoft Surface Hub for conference calls. You can join Skype for Business Meeting adding the Surface Hub device as a resource and it will automatically show the Skype for Business Meeting and you can join the meeting. You can also just invite other people using sending Skype for Business invites or using phone numbers to call them. You can also add the Surface Hub to an existing Skype for Business meeting or call your Surface Hub using a phone number. The two wide angle Full HD video cameras are great and show the whole meeting room. If there is a single attendee in the room the camera also focus on him and follows him instead of showing the whole room.

Surface Hub Wireless Display 1

The great thing here is that you again can use the same features and apps like the whiteboard, screen sharing and the apps. For example one scenario can be that several people sitting in the meeting room and one of the shares the screen to the Surface Hub, the Surface Hub is joined to a Skype for Business meeting with some remote attendees. The screen of the Surface Hub, showing the screen of the notebook of attendee in the meeting room is also shared with the Skype for Business remote attendees. Or you can see the screen sharing or presentation of remote attendees.

Surface Hub Call Skype User

The most important thing here is, that is very easy and simple to use and it just works as expected. It looks like we are getting now more Surface Hubs for all the different office locations, so we can do meetings between the office in Bern and Zürich.

Cleaning up a meeting

Surface Hub Cleanup

Now setting up a meeting or joining a meeting is really simple, and basically everything is possible. But what after the meeting is finished? You can very simple clean up your workspace and everything is gone, and no one can access your data.

Apps for the Surface Hub

Surface Hub Apps

As mentioned the Surface Hub comes with different apps like the whiteboard which lets you also do drawings, Office which lets you to use office documents like Word, Excel or PowerPoint and you also have the Maps app and the Microsoft Edge browser available. The Apps for the Surface Hub seem to be limited right now, but my guess is that Microsoft will soon enable the Windows Store to let you download and install apps on the Surface Hub. Microsoft has some example of apps on there Surface Hub website.

You can open Office documents from SharePoint, OneDrive, OneDrive for Business or SharePoint Online using Office 365 or connected USB devices directly from the Surface Hub, or you can share them from your notebook using screen sharing.

Overall Impression

The Surface Hub is an amazing device and we are very happy with the it, the device is great, works very easy and simple and it adds a lot of value to your meetings. If you ever have done a meeting using the Surface Hub you really want to have one for your self. If you have more question about the Surface Hub and his features and functionality just leave a comment.