Last updated by at .

  • What's new in Hyper-V 2016
  • Microsoft Azure

Tag: Windows

cmd clip

Pipe cmd prompt commands into the clipboard

This is a very all but very useful command if you work with the Windows Command Prompt. This allows you to output text from commands into the Windows clipboard.

Scott Hanselman from Microsoft just reminded the community about this feature, which is available in Windows since Windows Vista.

PowerShell v5 got some similar command using Set-Clipboard and Get-Clipboard.



SurfaceBook

10 reasons why the Surface Book is great for IT Pros

As I mentioned in my little Surface Book review a couple of days ago, I really like the Microsoft Surface Book and it is my daily driver since November 2015. The Surface Book has a lot of reasons why it is a great device, but I want to highlight  some reasons why it is not only a great device for artists, but also for the IT professionals.

The performance is incredible

SurfaceBook

As many of you know I am using my Surface Book for a lot of demos and also testing a lot of stuff. I run Hyper-V on my Windows 10 machine and it is extremely fast. Virtual Machines boot up in just a couple of seconds and if you for example run the new Nano Server in a Virtual Machine, the installation of a new Nano Server Virtual Machine is done in under 3 seconds. If you want to run more Virtual Machines on your device, make sure you get the 16GB RAM model. Not only do you get plenty of power with the Intel Core i5 or Core i7 chip, the NVMe SSD disk is blazing fast and can be up to 1TB.

The touchscreen with the pen support is great

Surface Pro and Surface Book

If you have a touch screen machine you just get used to use your fingers while browsing or writing stuff down in OneNote. The pen is just perfect for taking notes or doing presentations or workshops with customers. Since I got my first Surface device, I never really used a whiteboard or something like that. I just used OneNote and a projector to draw and after the meeting I could easily sent the drawings to all the attendees.

Tablet Mode can be handy

Surface Book Tablet Mode

I wouldn’t consider myself as a huge tablet user, but there are several scenarios where you will love the possibility to convert your Surface Pro or Surface Book into a tablet. For my job I travel a lot and I realized, I used the tablet mode a lot while for example being in a plan or train, to just read some stuff or watch movies. This is also really handy if you sit at home in front of the TV or if you are in a hotel room and just wanted to watch some Netflix, before you go to sleep. But there are two other very useful scenarios for me. The first one is while I am doing presentations for customer I use the Surface Pen a lot, but instead of sitting in front of my Surface Book, I can take the keyboard of and walk around while doing the presentation and draw on my Surface. The second one is when I am in a meeting and I want to take handwritten notes, the tablet mode is perfect, I can just use it as a piece of paper, which makes it much more attractive to write on and also I am not hiding behind a computer screen. By the way, the tablet or screen it self is extremely light so even holding it with one hand is great.

Enterprise Security and Windows Hello

Surface Book Windows Hello

Well if you are working and traveling a lot, security is a very important part. Protecting your data using the Surface Book is very easy, since it comes with a TPM 2.0 chip you can encrypt your SSD and all the data stored on. The other thing I really like is the camera supporting face detection using Windows Hello. First I thought this feature is just a nice toy, but hey, I really got used to it, I just open my Surface Book and I get logged in without typing the password.

Battery Life is awesome

When did you get a thing and light device and you didn’t had to worry about battery life for a whole day? With the Surface Pro 3 I was very close to it, but the Surface Book finally gets me trough a whole day without the need to recharge. I get around 8-12 hours of battery life depending on the workload I am running. In the morning I can leave without a power supply and can work the whole day.

The Screen

Surface Book

This is another great feature of the Surface Book, the screen is sharp and the colors are amazing, but this is not the only reason I love the Surface Book screen. The Surface Book comes with a 13.5” PixelSense display with a 3:2 aspect ratio and a resolution of 3000 x 2000 (267 PPI). This gives you enough space on the screen to get some work done, without making the device to big. Especially the 3:2 aspect ratio is one thing I really like, especially while writing and reading.

Connectivity and accessories

Microsoft also adds a lot of great accessories to the Surface product line. The Surface Book comes with 2 USB 3.0 ports, a full-sized SD card slot, a headset jack, a Mini DisplayPort and a Surface Connect port, which allows you to connect the power supply or the Surface Docking station. It also used the latest Wifi and Bluetooth connections to connect wirelessly to networks or devices. The Surface Book comes also with great cameras, stereo microphones and speakers which make the device great for video or voice conference calls. But also the small things you will start to like, for example the additional USB port in the power supply, which allows you to charge other devices like your smartphone or your Microsoft Band, without having to carry another charger.

The Docking Station makes it a great workstation

Surface Book Home Office

If I am at home or in our company office I can connect the Surface Book to the Surface Docking Station, which turns it into a full workstation. At home I use 2 Dell 27” screens using the 2 Mini DisplayPort adapters on the Surface Docking station. I also like the additional USB 3.0 ports you get with the docking station.

Perfect device to travel

Surface Book Travel

The Surface Book and also the Surface Pro are in my opinion some of the best options if you travel a lot. First the devices are light and have a small footprint, so carrying them is easy. But they still have a lot of performance to run some heavy workloads where ever you are, and with the battery life you get, even long flights or long work days are not a problem at all. But what really makes it great, you just need one device, you don’t have to carry a notebook and a tablet to have all the options, you can simply unplug the keyboard and you can go from laptop mode to tablet mode. With Windows 10 owning a 2in1 or 3in1 devices makes even much more fun.

Deliver great presentation using the Wireless Display Adapter

Surface Book Presentation

As I mentioned before, I use the Surface Book for a lot of presentations and workshops. With the Microsoft Wireless Display Adapter you can even do this wirelessly, which makes especially workshops more interactive and fun.



Hyper-V Manager Windows 10 Build 14361

Hyper-V Manager just got some new Icons in Windows 10 Build 14361

Microsoft just released a new Windows 10 Insider Preview Build (14361) with a lot of different improvements. The also worked on some changes to the Hyper-V Manager. The Hyper-V Manager finally got some updated Icons. Hyper-V also introduced a new VM Configuration version 8.0 (from 7.1 in the latest Windows 10 and Windows Server 2016 Technical Preview 5 build)

Hyper-V Manager Icon:

Hyper-V Manager Icon Windows 10 Build 14361

Hyper-V Manager:

Hyper-V Manager Windows 10 Build 14361

Hyper-V Settings:

Hyper-V Settings Windows 10 Build 14361

Hyper-V VM Settings:

Hyper-V VM Settings Windows 10 Build 14361

There are also a lot of other improvements espeically to the UI, Windows Ink and they officially introduced Hyper-V Containers on Windows 10.

Introducing Hyper-V Container: You can now use Docker natively on Windows 10 with Hyper-V Containers, to build, ship and run containers utilizing the Windows Server 2016 Technical Preview 5  Nano Server container OS image. A new version of the Docker engine for Windows has also been made available that extends the support of containers while also improving the DockerFile syntax and getting started experience for users. For more details on how to get started with this check out the Windows container documentation or the Windows 10 Getting Started Guide.

 



unatted xml file for VM

Add unattend.xml to VHDX File for VM automation

If you for example don’t have System Center Virtual Machine Manager or another tool to create Virtual Machine Templates and automate the deployment, you can also do this using Sysprep, PowerShell and an unattend.xml file to automate or simplify the Virtual Machine creation process. In other blog posts I already wrote how you can sysprep Virtual Machines or how you can create Hyper-V Virtual Machines using PowerShell. In this post I will show you how you can add an unattend.xml file to your VHD or VHDX so your virtual machine gets some default settings like regional information.

Here we have a basic unattend.xml file. If you want to enhance it, or create your own, you can also use the Windows ADK.

To use this unattend.xml you first have to sysprep a virtual machine and create a sysprep VHD file. After that you can mount the VHDX file and insert the unattend.xml file to the VHD. Copy the unattend.xml file to the following location: D:\Windows\Panther (in my case the VHD was mounted as D drive).

You can mount the VHDX using the UI or PowerShell:

There are more paths as well. You can check out the Windows Setup Automation Overview on TechNet where you can see all the possible paths to place the unattend.xml file.



sysprep.exe vm mode

Windows Sysprep for Virtual Machines

For using the same system image for different virtual machines or physical computer, Microsoft created a tool called sysprep.exe. Most people should be already familiar with that tool. If not here is the description:

Sysprep prepares a Windows installation (Windows client and Windows Server) for imaging, allowing you to capture a customized installation. Sysprep removes PC-specific information from a Windows installation, “generalizing” the installation so it can be reused on different PCs. With Sysprep you can configre the PC to boot to audit mode, where you can make additional changes or updates to your image. Or, you can configure Windows to boot to the Out-of-Box Experience (OOBE).

This is great so you can sysprep a virtual machine copy the VHD or VHDX file and use it for the first boot of different VMs. In Windows Server 2012 and Windows 8, Microsoft added an addition to sysprep called the mode switch “/mode:vm”. The mode:vm switch allows you to identify the Windows as a Virtual Machine and sysprep.exe will generalize a Virtual Hard Disk (VHD or VHDX) so that you can deploy the VHD as a VHD on the same Virtual Machine (VM) or hypervisor. You must deploy the VHD on a Virtual Machine (VM) or hypervisor with the same hardware profile. For example, if you created VHD in Microsoft Hyper-V, you can only deploy your VHD to Microsoft Hyper-V VMs with a matching hardware profile, and you can only run VM mode from inside a VM.

This will boost the performance and time for the virtual machine for the first startup and installation. This also work of course with virtual machines running on other hypervisors such as VMware or Xen.

Run the following command inside the Virtual Machine (You find sysprep.exe in the  C:\Windows\System32\Sysprep folder):

Now you can copy the VHD or VHDX file from that virtual machine and use it for other VMs.



Surface Book

My Surface Book User Review

A couple of months ago I got a myself a Surface Book while I was in the US. You may know that I am a Surface user for a long time now. I started with the original Surface Pro, upgraded to the Surface Pro 2 and the Surface Pro 3, which was my main device for the last year. Microsoft announced the Surface Book together with the Surface Pro 4, the new Microsoft Band 2 and the Lumia 950 as well as the Lumia 950 XL.

The Surface Book is the first laptop Microsoft has ever created and Microsoft doesn’t call it the ultimate laptop for no reason. I have used the Surface Book now for the past months while I was traveling, giving presentations, working at customer sites or at home writing blog posts. With that I got a great impression of the Surface Book in the real world, not just reviewing it for a couplnowe of hours, as other tech sites do, this is more kind of a real user review.

Technical Specifications

Surface Book Box

  • Software: Windows 10 Pro
  • Exterior: Casing: Magnesium, Color: Silver, Physical buttons: Volume, Power
  • Dimensions: 12.30” x 9.14” x 0.51 – 0.90” (312.3mm x 232.1mm x 13.0 – 22.8mm)
  • Weight: Starting at 3.34 pounds (1,516 grams) including keyboard
  • Storage: Solid state drive (SSD) options: 128GB, 256GB, 512GB, or 1TB.
  • Display: Screen: 13.5” PixelSense™ display
  • Resolution: 3000 x 2000 (267 PPI)
  • Aspect ratio: 3:2
  • Touch: 10 point multi-touch
  • Battery life: Up to 12 hours of video playback4
  • Processor: 6th Gen Intel® Core™ i5 or i7
  • Graphics i5: Intel® HD graphics 520, i5/i7: NVIDIA GeForce GPU with 1GB GDDR5 memory
  • Security: TPM chip for enterprise security
  • Memory: 8GB or 16GB RAM
  • Wireless: 802.11ac Wi-Fi wireless networking; IEEE 802.11a/b/g/n compatible
  • Bluetooth 4.0 wireless technology
  • Ports: Two full-size USB 3.0, Full-size SD™ card reader, SurfaceConnectTM, Headset jack, Mini DisplayPort
  • Cameras: Windows Hello face-authentication camera (front-facing), 5.0MP front-facing camera with 1080p HD video, 8.0MP rear-facing autofocus camera with 1080p HD video
  • Audio: Stereo microphones, Stereo speakers with Dolby® audio
  • Sensors: Ambient light sensor, Accelerometer, Gyroscope, Magnetometer

I got the Intel Core i7 version with 8GB memory and 256GB of storage. To be honest, if I had the choice I would get the smallest Core i5 version with a dedicated graphics card or the Core i7 version with 16GB of memory.

Design and Durability

Surface Pro and Surface Book

As always Microsoft did build a great piece of hardware in terms of design and build quality. As the Surface Pro 3 and the whole Surface line the Surface Book is really high quality. I really like to work with it.

Display and Audio

Surface Book Traveling

What I really like about the Surface product line are the displays. First of all, the quality is pretty good, but what is even more important for me is the 3:2 ratio. With that you get a lot more space on the screen to get work done. This especially helps when you are doing some writing or get some mails done. The Surface Book comes with a 13.5 inch screen which is just a little bit bigger than the Surface Pro 4, and this is one if the main reasons I got myself the Surface Book instead of the Surface Pro. Especially on if you are on the road and the device is not docked, a bigger screen can make a huge difference.

Audio and especially the microphones work every well and have a very good quality if you are doing Skype or other conference calls.

Heat and Fan Noise

If you were owner of a Surface Pro 3 you might had some issues with fan noise and the Surface Pro 3 could get very hot. I am running the Intel Core i7 version of the Surface Book and I don’t have any issues in terms of heat of fan noise. The Surface Book runs very quiet and cool, I never really heard the fan, even when I run some heavy workloads like virtual machines.

Wireless and Networking

Surface Book Travel

Wireless and network connectivity are as usual pretty great, no issues here. If you want to use a wired connection you have to buy a USB to Ethernet adapter, since the Surface Book does not have a build in Ethernet port, but this isn’t a real problem.

Keyboard and Trackpad

The keyboard and the trackpad are amazing, I think this is the best keyboard and trackpad combination I have ever used. Typing feels really good even if you have to write lager documents or blog posts. Of course the keyboard has also backlight which makes it great if you have to write something in a dark hotel room.

Tablet Mode

Surface Book Tablet Mode

With the tablet mode you can easily detach the screen from the keyboard so you can use it as a very light tablet. The tablet is really light, even lighter than the Surface Pro and has up to 4 hours of battery life. As cool as the tablet mode for some people may is, I basically never use it. I use the pen and the touch screen a lot, but I never really detach the keyboard from it. This is kind of different than the Surface Pro, where I detached the Type Cover a lot and just place it somewhere using the kickstand, since the Surface Book does not have a kickstand you really have to hold it all the time, and I just don’t have a use case for this.

Battery life and Performance

Performance and battery life is where the Surface Book really starts to shine. Especially in terms of disk performance using an internal NVMe disk, the Surface Book is amazingly fast. I got the version with an Intel Core i7, 8GB of memory, 256GB of storage and a dedicated Nvidia graphics card. Next time I would choose the larger version with more memory and storage but at this time in November last year it was the only configuration which was available.

Battery life is also not an issue, I get around 8-12h of battery life when I am on the road. This is enough for a full day of work.

Software and Accessories

Surface Book Home Office Surface Dock

The Surface Book comes with Windows 10 Pro, and as I mentioned I really like Windows 10. I am running the latest Windows Insider builds and the work most of the time great. Performance is really good and one thing I always loved about the Surface was the Surface Pen. I am not an artist, but I use the pen a lot in workshops with customers, instead of using it a whiteboard or to take notes in OneNote.

At home I dock the Surface Book to the Surface Dock where I have two 27-inch screens, which makes it a fully functional desktop.

Conclusion

As you can see I am really happy with the device I am using for around 7 months. The only thing which makes me want a Surface Pro again is the size. The Surface Pro with the Type Cover is much more mobile, especially when you are traveling a lot by plane or train. Otherwise the Surface Book is the perfect device.



Hyper-V NAT Switch

Set up a Hyper-V Virtual Switch using a NAT Network

A couple of months ago I wrote a blog post about how you can create a new Hyper-V NAT Switch. Now this worked fine in some early Windows 10 builds, but Microsoft removed the parameter for the NAT Switch in some Windows 10 Insider builds. Today Sarah Cooley PM at the Microsoft Hyper-V team, documented how you can do this using newer Windows 10 builds.

Requirements:

  • Windows 10 and Windows Server 2016 build 14295 or later
  • Enabled Hyper-V role
  • PowerShell, since this setting is not available in the UI right now

Hyper-V NAT Switch

Create a new Hyper-V Virtual Switch

Configure the NAT Gateway IP Address

This configures the Virtual Network Adapter which was created while creating the Internal Virtual Hyper-V Switch.

Now you can configure the NAT rule

After that you have finally created your NAT network and you can now use that network to connect your virtual machines and use IP Address from 172.21.21.2-172.21.21.254.

Hyper-V Virtual Switch NAT Configuration

Create a new NAT forwarding

To forward specific ports from the Host to the guest VMs you can use the following commands.

This example creates a mapping between port 80 of the host to port 80 of a Virtual Machine with an IP address of 172.21.21.2.

[PowerShell]

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

[PowerShell]

This example creates a mapping between port 82 of the Virtual Machine host to port 80 of a Virtual Machine with an IP address of 172.21.21.3.

[PowerShell]

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

[PowerShell]

This also works with Windows and Hyper-V Containers.