Microsoft UserVoice: let YOUR voice be heard

One of the concerns that many people have is that it is difficult to be heard by the (large) companies that supply their software (or hardware). And it is true that in many cases it isn’t possible. Many companies have different ways of hearing the customer, and some companies listen better than others. Of course this is sometimes misconceived by the customer when they reach out and there is no response directly. The company that I work for is always listening very heavily (through user forums) and we try to respond as good as possible but on the other hand we will never submit to something requested if it is not planned or coming soon. And we are certainly not the only ones working like that.

For larger companies (such as Microsoft) it is even more difficult to respond to everything or to review every request. They (and us) have to think about the bigger picture. The more a specific feature is requested, the more likely it will make it into the product.

Microsoft is starting a new initiative that will make it much easier for you to submit feedback on different solutions they have. I think that creating one single place to bring all the feedback together is good and it will make things easier both for you and for Microsoft.

So the time is now, use your power and start submitting feedback, or upvote others ideas that you would like to see also. The power is in your hands!

Windows Server: http://windowsserver.uservoice.com/forums/295047-general-feedback

Clustering: http://windowsserver.uservoice.com/forums/295074-clustering

Storage: http://windowsserver.uservoice.com/forums/295056-storage

Virtualization: http://windowsserver.uservoice.com/forums/295050-virtualization

Networking: http://windowsserver.uservoice.com/forums/295059-networking

Nano Server: http://windowsserver.uservoice.com/forums/295068-nano-server

Linux Support: http://windowsserver.uservoice.com/forums/295062-linux-support

image

Happy submitting Winking smile

Hyper-V Bear

Advertisements

2015 Microsoft MVP Virtual Conference

If there is something that MVP’s like to do, it is sharing content. This year, US MVP’s have teamed up (together with Microsoft) to deliver a virtual conference with lots of interesting stuff to watch.

First, the bad news… It is a US MVP event so the hours are maybe not that interesting for other area’s in the world. On the other hand, I am sure you still can find a few sessions that you can watch at (more or less) normal hours and some of us might say this is an advantage because that means they can watch outside the office hours…

The dates: May 14th and 15th

Time: 8am – 6pm PT (Pacific time)

There will be around 95 sessions in total divided over 5 tracks. Keynote (all tracks) will be delivered by Steven Guggenheimer, corporate VP at Microsoft

The tracks itself are IT Pro, Developer, Consumer, Latam (Spanish), Brazil (Portugese)

Each session will be around 50 minutes with a moderator to answer Q&A.

You can find the full agenda here: http://mvp.microsoft.com/en-us/virtualconference-agenda.aspx

There are certainly a lot of interesting session with fantastic speakers so it is certainly worth checking it out.

More information:  http://mvp.microsoft.com/en-us/virtualconference.aspx

To register: https://managedevents.eventbuilder.com/event?eventid=h4p0x7

Enjoy the free sessions!

Hyper-V Bear

Installing & Configuring Server Manager on a Windows 8.1 machine

Let’s take a small break from configuring the core server and talk quickly on how to install Server Manager on a Windows 8.1 machine. We will go deep-dive on this tool in the future as it should become your tool for your daily work, but for now I just want to get it installed and quickly configured with one server so I can do some basic tasks. By the way, this tool can do A LOT

We talked already a lot about remotely managing our Windows Server 2012 R2 core servers. One of the things you need to learn (and yes, it requires some adjustments from yourself to learn it) is Server Manager. The thing with Server Manager is that once you get used to it, you actually have no idea how you used to do your work. It is rather good (there is always room for improvement but hey…) and with the correct configuration, you will be able to work much faster.

When you have a Windows 8.1 machine, it comes by default without server manager. And that is even a logical choice. After all, the typical windows 8.1 user does not need to work with servers and server roles so there is no reason at all to include it by default. So you will need to install it yourself (or include it in the System Administrators endpoint image…)

Let’s look at how I made my workstation into a powerful Server Management tool.

First, download the Remote Server Administration Tools for Windows 8.1. Note that it comes in a 32- and 64-bit version so you need to download the correct version for your workstation.

Running it in silent mode

For those that want to run the installer in silent mode, this is not a problem at all. So if you are using System Center Configuration Manager or any other tool that provides you with distributed software management, you can add it in there and distribute it automatically. Since it is a windows update standalone installer, you can use the default parameters that exist. To figure out what these parameters are, you can just type Windows8.1-KB2693643-x64.msu /? and you will get a popup that shows you what parameters are possible

clip_image002

For this specific one, you can just use Windows8.1-KB2693643-x64.msu /quiet /norestart

Or you can just double-click it and install it manually so you actually see when it is finished installing.

Note that you don’t need to restart afterwards, but as always, make sure you run Windows Update afterwards to have the latest updates J

What do we have now?

Basically, I just made my laptop a powerful remote administration machine. We will go very deep on server manager later on, but for today, I only wanted to do two little things.

1. Install it and add one server to my server manager

2. Make sure I can use remote PowerShell to that server.

Installing Server Manager installs also automatically administration tools and PowerShell modules that come with those tools. Since we are on a quest to administer Hyper-V core, I specifically wanted to have that PowerShell module on my laptop, for working remotely on my servers.

But there is much more installed. All tools and notes (and support matrix) can be found here: http://support.microsoft.com/kb/2693643/en-us

As said, we will work with them later on.

Adding a server to Server Manager

First you will have an empty tool. There will be no servers connected to it. If you use server manager on a server, the local server will be added by default.

clip_image004

Press the Add other servers to manage or go to manage > Add Servers

clip_image006

Now you can start adding servers to Server Manager. If your computer is domain joined to the same domain as your servers, you can use this method. As you can see, my workstation is not domain-joined so I can use the DNS or Import option.

clip_image008

After typing in the DNS name or IP-address I can now add this server

In my case, the first thing you will see is that the server is added but that there will be a red flag immediately. This means something is wrong

clip_image010

The solution in my case is rather easy. Since I am using a workstation that is not domain-joined, my local user is not known by my server so I have no access to the server

clip_image012

By right clicking on my server and going to Manage As… I can type in the credentials to manage that server.

clip_image014

Note that it might take some time before you see the effect. The reason for that is simple. Server Manager is not a real-time tool. So it takes some time to refresh the data in the window. But simply pressing the refresh button solves that fast.

It still doesn’t work!

Depending if you used this computer to manager servers before, it is possible that it still doesn’t work. Don’t forget that I am using a non-domain joined workstation. In a domain environment, this is not necessary.

If you receive this notification:

Error <nameserver>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config.

That means PowerShell to the rescue again!

Open a PowerShell window on your workstation and type in the following command:

Set-Item wsman:\localhost\Client\TrustedHosts <nameserver> -Concatenate –Force

clip_image016

And now I have management over my server

clip_image018

On to the next step

Now that I have Server Manager and the additional tools and PowerShell modules on my workstation, I can start doing some remote work. In the upcoming weeks and months I will show lots more of Server Manager and its capabilities. But for now, I just wanted it installed, get one server in it and have my PowerShell modules ready so I can take the next steps in our series… Configuring my core server with PowerShell… Remotely.

Till then

Hyper-V Bear

Starting with core… Or full UI?

This is a question I get a lot, should I start with windows server core? Or should I install it with a UI, configure it, and then go to core. As always in Tech world… It depends. If you can deploy machines with the right settings (domain join, network settings, firewall settings, rdp settings, storage config…), in other words, the baseline image that matches your environment, then why should you bother using the UI in the first place. After the initial deployment, you connect with your remote server manager and tools (that’s a topic for later on…) and you are good to go and can continue doing what you need to do.

Unfortunately, not everyone has that possibility and today there are still a lot of companies that need to deploy manually, or have a very basic baseline and still need to configure additional settings depending on what role the server will take. In that case, unless you like to configure everything through commands and PowerShell, I advice to start in UI mode.

As I said in my previous post there is the possibility to switch to another mode. Since server core is kind of the underlying server stack and the MinShell and full UI are more or less roles on top of that, you can remove (or add) those roles very easily.

So let’s go back to our example. We have deployed windows server with the UI using your preferred deployment method, you have added the Hyper-V role on top of it (although this can be done remotely also…) and configured the storage connections, network connections and everything else you need to do. Now the only thing left to do is patching and your server is ready for use…

OK, I don’t agree on the patching part… As we said in the previous post there will be less patches when you are running in Core mode, so why go through the trouble of patching an entire server while you can do it when it is in core mode so you need to do less patching and loose less time. I’ll come back to that. First, I want to go to core with my full-blown server.

There are two ways to remove these roles… (There are actually three, you can also use DISM but I’ll skip this one…). You have the UI way, and the PowerShell way. Note that you only can use the UI way when you are actually using a UI, so it is certainly better to learn how to do it in PowerShell.

The UI way

For the UI way, it is very simple. Go to Remove Roles and Features (from Server Manager for example), select your server, go over the Server Roles and when you  are at the Features page of the wizard, you will find User Interfaces and Infrastructure

image

Deselect Graphical Management Tools and Infrastructure and Server Graphical Shell. Note that it is perfectly possible that you will get a warning that certain other features and roles need to be de-installed also. If you installed the Hyper-V role and the tools, the tools need to be removed. If you have PowerShell ISE running, it will need to be removed… And there are  other features, tools and roles that can’t run on a core server. In that case, review the box very well and make sure you are not removing a component that is actually needed on that server. In that case, this server is not meant to be core Smile

Finish the wizard, know that it will reboot afterwards and then you are in core mode.

The PowerShell way

For the PowerShell way, it is actually also very simple.

Import-module servermanager
Uninstall-windowsfeature -name Server-GUI-Mgmt-Infra,Server-GUI-Shell
RESTART-Computer

Note that you probably won’t need to use the Import-Module CmdLet because you probably will run this directly on the server. And the last command is necessary to restart the computer, but I am sure you know other ways to do this Winking smile

But let me give some more background. To know what kind of roles and features are installed, you can simply type in a PowerShell window the  command Get-WindowsFeature

image

As you can see in the screenshot above, you get all the roles and features listed with upfront some sort of checkbox. When there is an X between the  brackets [X] it means the role / feature is installed. So when I scroll down I will find this:

image

In this screenshot you see that Server Graphical Shell and Graphical Management Tools and Infrastructure is installed.

To make it a bit more easier, we can search more granular and use

Get-WindowsFeature -name *GUI*

image

And now for the updates

After the restart, we have our core server running… Now on to the patching part as I promised. I am sure that many of you will have a favorite method of patching, but in case you want to do it manually…

I could say PowerShell again, but unfortunately, for some dark reason MSFT did not put this functionality in PowerShell (yet?). Now you can download this module https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc and use PowerShell anyway, but when you are a bit like me, you don’t like additional stuff being installed on a server so I like to use other methods.

But in the end, it is still very simple. Open a RDP connection to server core, and type in sconfig in the command prompt

image

Press number 6

image

Choose A for all updates or R for recommended updates and let the script do its magic.

image

Now you can choose which updates  you want to install… Choose A for all updates, N for no updates or select a specific one by using S

image

Finally you will be able to reboot after the installation.

Enjoy

Cheers

Hyper-V Bear

Hyper-V Reporting Script!

My first blog post and it is not even something specific from myself… But sometimes you just have to write about something you discovered on the web, and that is just fantastic… I am a big fan of PowerShell (OK, I am a huge fan of Hyper-V first, but I like to do as much as possible with PowerShell so automatically I am a fan of PowerShell also Winking smile) and one of the Hyper-V MVP’s has written a PowerShell script that is absolutely brilliant.

The MVP, Serhat AKINCI (http://www.serhatakinci.com/ or https://twitter.com/serhatakinci) has built a PowerShell script of over 2600+ lines that contains PowerShell, HTML, CSS and WMI. It produces a very nice HTML webpage with lots of information about your hyper-v environment.

The script requires an AD membership and runs on a cluster or standalone hosts for Windows Server 2012 (R2) and Hyper-V server 2012 (R2). It does have a few more requirements such as PowerShell 3.0 or 4.0 but some modules but mostly these will be already installed, unless you will be running the script remotely from a workstation.

It supports parameters also. The script, called Get-HyperVReport.ps1, accepts the following parameters:

  • -Cluster <nameofcluster>. This will give you the information about your cluster.
  • -Cluster <nameofcluster> –HighlightsOnly. This will give you only highlighted events and alerts
  • -VMHost <nameofhost>. This will give you the report for the host, and if you want a report for multiple hosts you can user <nameofhost>, <nameofhost2>, <nameofhost3>
  • -Cluster <nameofhost> -SendMail $true -SMTPServer smtp.mailserver.com -SMTPPort 587 –MailFrom <email-adress> –MailFromPassword <password> -SMTPServerTLSorSSL $true -MailTo recepient1@something.com,recepient2@something.com. This will send the report through an SMTP server (pwd protected in this case) to different recepients.

But of course, the most interesting thing is to find out what kind of data this report generates (and it is A LOT). For this report, I used a standalone host to see what it delivers

image

First you get the information about the host. data such as State, Uptime, the domain, the # of VM, # of CPU, Used, Free and Total RAM are displayed as well (see the little asterisks) some additional info.

image

The second table gives you more information about your disks such as State, Usage, Owner, Bus Type and many more. Again valuable information that can be used in your CMDB if necessary. Normally this doesn’t change a lot, but for example the last column will tell you the percentage free. If you run this script regularly (or maybe schedule it or so…) you can follow what is happening with your storage.

image

The last table will give you your VMs and their information such as generation, clusteredresource or not, state, uptime, vCPU, vRAM (including Min/Mx and Assigned) and so on…

A much larger report with more different states can be viewed on the website of the author himself: http://www.serhatakinci.com/files/get-hypervreport-v1-0-demo-output.html and if you are interested (and you should Winking smile) then you can get all the information and download from here: https://gallery.technet.microsoft.com/Hyper-V-Reporting-Script-4adaf5d0

If you are running a Hyper-V environment, and you don’t have a monitoring tool in place, this certainly will be of use. Even if it is run on an irregular base. Of course it is not a replacement for a monitoring solution, but I am convinced it will come in handy for a specific reason Winking smile

Enjoy the script, and do sent feedback to the author (and maybe even enhancement requests? Smile)

Cheers,

Hyper-V Bear