Last updated by at .

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

Category: Work

All about my Work


Azure Remote Server Management Nano Server

Manage Nano Server and Windows Server from Azure using Remote Server Management Tools

Today Microsoft announced the preview of the Remote Server Management Tools hosted in Azure, written by Kriti Jindal, a program manager on the Server management tools team. This service allows you to manage your servers directly from Azure using a web-based HTML5 portal. I personally think that this could replace Server Manager and allows you to easily manage non-GUI servers such as Windows Server Core and Nano Server. This is the first public preview of the Remote Server Management Tools and it limited right now to manage Windows Server 2016 Technical Preview server, hosted on-prem or in Microsoft Azure. The Remote Server Management Tools today include the following features:

  • View and change system configuration
  • View performance across various resources and manage processes and services
  • Manage devices attached to the server
  • View event logs
  • View the list of installed roles and features
  • Use a PowerShell console to manage and automate

Overview

To remotely manage your Windows Server from Azure, you have to deploy a Remote Server Management Gateway into your network. This can be a Windows Server 2012 R2 Server running the WMF 5.0 (Windows Management Framework 5.0) or Windows Server 2016 with no additional preparation. You also need a Microsoft Azure subscription and an account.

Microsoft Azure Server Management Tools Topology

The gateway will handle the connection to Azure, so the Remote Server Management Gateway needs connection to the internet. The managed servers do not need a direct connection to the internet, the gateway will connect to the managed server. With that, the gateway need connection to the sever which will be managed by Azure.

Setup Server Management Tools

Well to set this up some steps are required, first create a new server for the Remote Server Management Gateway. In my case I installed a new Windows Server 2016 virtual machine. I made sure I could connect to the internet and it has the lastest updates installed.

Microsoft Azure Server Management Tools New Connection

After I created the virtual machine I logged in to the Azure portal and added a new Server Management Tools Connection. You can search “Server management tools” in Marketplace or navigate to it: Marketplace -> Management -> More -> Server management tools. This will also create the first Server Management Tools Gateway for your connection.

Microsoft Azure Server Management Tools Connection

After the connection is created you can see the connection and but you will get the information that the gateway is not ready. As the next step you will configure the gateway on the prepared server.

Microsoft Azure Server Management Tools Gateway

Under the Server Management Tools Gateway blade you can find a setup for the gateway which will generate a custom install package for your gateway. You can copy this link to the server and download this package and install it.

  1. Allow gateway updates to be installed automatically (recommended), or choose to install updates manually. You may change this later under gateway settings.
  2. Click the below to generate a customized gateway deployment package link.
  3. Use the generated link to download the gateway deployment package now, or copy the link URL to download the package later from the machine on which you intend to install the package.
  4. From the machine that you want to designate as the gateway, unzip the package and run GatewayService.MSI.
  5. Once the gateway installation completes, return to the Microsoft Azure portal and reopen your Server management tools connection.
  6. You should now be able to manage your Windows Server 2016 machine if the Microsoft Azure portal can reach it through the gateway.

Azure Remote Server Management Gateway Installer

After you have installed the Remote Server Management Gateway package on your gateway server you can see the connection in the Azure portal.

Azure Remote Server Management Nano Server

Now you start remote manage your server. As mentioned before, this is really handy if you want to manage Server Core or Nano Server.

Additional Stuff:

There are some additions for the configuration if you want to manage servers in a workgroup environment:

In order to manage workgroup machines (e.g. non-domain-joined Nano Servers), run this command as an administrator on the Server management tools gateway machine:

winrm set winrm/config/client @{ TrustedHosts=”<<IP address>>” }

When creating a Server management tools connection to the workgroup machine, use the machine’s IP address as the computer name.

Additional connectivity requirements

If you wish to connect using the local Administrator account, you will need to enable this policy on the target machine by running the following command in an administrator session on the target machine:

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1

If you wish to connect to a workgroup machine which is not on the same subnet as the gateway, run the following command in an administrator session on the target machine:

NETSH advfirewall firewall add rule name=”WinRM 5985″ protocol=TCP dir=in localport=5985 action=allow

Remote Management Server Tools Features

Azure Remote Server Management PowerShell

As mentioned the Remote Management Server Tools bring some really cool web-based management features. One of my favorites is the web-based PowerShell console.

  • Device Manager
  • PowerShell Console
  • Computer Configuration (Name, Domain,…)
  • Network Configuration
  • Task Manager
  • Process
  • Registry Editor
  • Roles and Features
  • Services
  • Local Administrators
  • Updates Management (coming soon)
  • Shutdown / Restart

More Information

 

 



PowerShell Compress-Archive

Compress or Expand ZIP Archive using PowerShell

I was blogging about some of the new features of PowerShell 5 in several blog posts. Another great enhancement of PowerShell v5 is the Compress-Archive and the Expand-Archive cmdlets which allow you to compress or expand a ZIP archive.

To simply create a new ZIP archive using PowerShell you can use the following cmdlet:

To unzip the ZIP Archive you can use the following cmdlet:



SCU Asia and Australia

Speaking at SCU APAC and SCU Australia 2016

Yesterday I had the chance to announce that I will be speaking at the local Microsoft TechDays 2016 in Baden, Switzerland. Today I am pround to announce that I will speak at System Center Universe Asia and Australia 2016 both in March. After speaking at SCU Europe 2013, 2014 and 2015 I am sure my first visit to SCU APAC and SCU Australia will be great.

System Center Universe APAC 2016

This 2 days event will be showcasing upcoming System Center solutions and Cloud Technologies with integration of the latest Windows 10!

Over the past 4 years, SCU APAC have attracted attendees throughout the APAC region. Being the only event that is centered on System Center, made the decision for the team running the event to host several viewing parties across APAC region in the second year. These parties made registration for the second year double. SCU 2014 was even better and bigger although it did not have the viewing parties. It played host to more than 200 registered participants with international renowned speakers. These speakers are well known in the industry and are regulars at Tech Ed.

I will present two sessions about some new features in Windows Server 2016:

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.”

What’s new in Windows Server 2016 Storage?

With the next version of Microsoft hypervisor Microsoft released some great new features for your Cloud infrastructure. Microsoft announced several new feature on Windows Server 2016 including a lot of new Storage features, such as Storage Spaces Direct, ReFS, Storage Replica and much more. In this session you get an overview about the new Storage technologies in Windows Server 2016 and Hyper-V.

SCU APAC 2016

Date: March 8 & 9, 2016 Conference Venue: Sheraton Imperial Kuala Lumpur, Malaysia

System Center Universe Australia 2016

For the FIRST time ever, System Center Universe is coming to Australia in 2016! This is a first-class community conference where you can mingle with experts and fellow industry professionals to explore new technologies. The conference has been running for many years in Asia, typically Singapore and Malaysia and also in Europe and USA.

This one days event will be showcasing upcoming System Center solutions and Cloud Technologies with integration of the latest Windows 10!

I will present a session about the next version of Windows Server 2016 Storage:

What’s new in Windows Server 2016 Storage?

With the next version of Microsoft hypervisor Microsoft released some great new features for your Cloud infrastructure. Microsoft announced several new feature on Windows Server 2016 including a lot of new Storage features, such as Storage Spaces Direct, ReFS, Storage Replica and much more. In this session you get an overview about the new Storage technologies in Windows Server 2016 and Hyper-V.

SCU Australia 2016

Conference Date March 11, 2016 Conference Venue: Crown Promenade Melbourne, Australia

If you are interested in going, please contact me and may can give you a promo code. Hopefully see you there!



Microsoft TechDays 2016

Speaking at Microsoft TechDays 2016 Switzerland

Today I am proud to announce that I have the opportunity to speak at the Swiss version of the Microsoft TechDays. My session will be placed under the IT Pro track and I will cover some of the new stuff coming with Windows Server 2016 and Hyper-V 2016, including:

  • Hyper-V 2016 features
  • Nano Server
  • Storage Spaces Direct
  • Storage Replica
  • Windows Server Containers
  • And more!

Microsoft TechDays 2016 Session

There are also more cool session and I specially want to announce the session of Markus Erlacher (CEO itnetX) and Marcel Zehner (Microsoft MVP) called “Better Together: System Center und Microsoft Operations Management Suite”. So if you want to learn the latest and greats about Microsoft technology, make sure you attend this event.

TechDays 2016

Check out the Microsoft TechDays 2016 in Baden, Switzerland. Keynotes – February 29, 2016 | 1.30pm to 6.15pm with subsequent networking get-together and apéro riche Breakout sessions – March 1st, 2016 | 9.00am to 4.30pm



Switch Windows Container to Hyper-V Container

Switch a Windows Server Container to a Hyper-V Container

With Technical Preview 4 of Windows Server 2016 made the new Hyper-V Containers available. With that you can now use Windows Server Container and Hyper-V Container. To run Hyper-V Containers you have to make sure, you have Hyper-V Nested Virtualization active for your Container Host VM.

If you create a new Container it will create a Windows Server Container by default, if you want to create a Hyper-V container you have to switch the RuntimeType to Hyper-V.

With the following command you can see which RuntimeType the Container has:

To change the runtime Type to Hyper-V Container you can use the following command:

So switch it back to a Windows Server Container you can use the following command:

 



Cisco Champion 2016

Cisco Champion 2016

Just had a look at my inbox and found out that I received the Cisco Champion Award for 2016, which is my third Cisco Champion Award in a row, after 2014 and 2015. I feel highly honored to get this award and looking proud into the future. Since I do a lot of Datacenter projects with Microsoft and Cisco technologies I can see that the new partnership between Cisco and Microsoft is really paying off and we can expect even better integration and services from both companies.

Hi Thomas Maurer

 

Because of your impactful and valuable contributions to the IT community, you have been chosen out of hundreds of nominees to be part of the 2016 Cisco Champion program. Congratulations!

 

Cisco Champions are a group of highly influential IT technical experts who enjoy sharing their knowledge, expertise, and thoughts across the social web and with Cisco. The Cisco Champion program encompasses a diverse set of areas such as Data Center, Internet of Things, Enterprise Networks, Collaboration, and Security. Cisco Champions are located all over the world.

 



PowerShell New-TemporaryFile

Create a tempfile with PowerShell

When I was using PowerShell in the early stages it was limited in some features, now with PowerShell version 5 Microsoft added some great new features to it. This time it’s about creating a tempfile. I already wrote a blog post in 2011 how you can create a tempfile in older version of PowerShell using .NET:

With PowerShell 5 you got a native cmdlet for this: