Last updated by at .

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

Category: Powershell

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.



E2EVC Lisbon

Speaking at E2EVC 2016 Dublin

In the past weeks I was traveling to many different Conferences such as MMS 2016 in Minneapolis, ITCamp16 in Cluj, VCNRW – Virtualization Community NRW in Cologne, Cloud & Datacenter Conference Germany in Düsseldorf, Microsoft NetWork 6 in Bosnia Herzegovina and many more. Today I am proud to say that I will speak at this weeks E2EVC in Dublin. Together with Michael Rüefli, I will speak about the best features in the upcoming Windows Server 2016 release.

The best of Windows Server 2016

Join this session for the Best of Windows Server 2016 — The New Foundation of your Datacenter. You’ll be one of the first to know about new, exciting improvements that are coming in Windows Server 2016 and how they’ll improve your day-to-day job. In this hour-long presentation Thomas Maurer (Microsoft MVP) will guide you through the highly anticipated innovations including: •Hyper-V 2016 features •Nano Server •Storage Spaces Direct •Storage Replica •Windows Server Containers •And more

E2EVC Virtualization Conference is a non-commercial, virtualization community event. The main goal of the E2EVC is to bring the best virtualization experts together to exchange knowledge and to establish new connections. E2EVC is a weekend crammed with presentations, Master Classes and discussions delivered by both virtualization vendors product teams and independent experts. I am happy to be part of the community and listen to other industry leading experts, hopefully see you in Dublin.



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.



Azure PowerShell Installing

How to Install the Azure PowerShell Module

Well if you are working with Microsoft Azure you may need the PowerShell Modules for automation and some settings which are only available in PowerShell. With the latest releases you can install the Azure PowerShell Module in several different ways.

Install Azure PowerShell

For me using the PowerShell Package Management and the PowerShell Gallery is may the easiest and fastest way to install it. In Windows 10 or a computer with the Windows Management Framework 5 installed, you can use the following PowerShell cmdlets to install it:

Microsoft Azure Resource Manager (new Portal):

And you can use the following command to login:

If you are using it against the classic Azure Portal you can use the following:

And you can use the following command to login:

 

You can also see the Azure PowerShell Modules and versions using the PowerShell Package Management:

Azure PowerShell Module

 

 



ITCamp 2016

Speaking at ITCamp in Cluj-Napoca

Today, I am proud to announce that I am speaking at the ITCamp in Cluj Napoca, Romania. I am super exiceded since this will be my first visit to Romania and I heard a lot of great feedback about the conference.

Featured Speakers ITCamp

I will present two sessions:

Nano Server – The Future of Windows Server

Nano Server is the future of Windows Server. With Nano Server Microsoft created the foundation for Windows Server for the next 20 year. In this session you will get an overview about Nano Server and see some great live demos how you can deploy, manage and operate Nano Server as well as creating applications for it.

Get a better understanding of Nano Server and see how you deploy, manage and operate it.

What’s new in Windows Server 2016 Hyper-V

With the next version of Microsoft hypervisor Microsoft released some great new features for your Cloud infrastructure. Come to this session to get the details of all the new stuff that is in Hyper-V and learn about how you can play with it “hands-on.” This session includes also the latest updates from the Technical Previews.

ITCamp 2016

Check out the website for more information