Using Hyper-V with Windows 10

Setting up a virtual machine allows you to create a miniature server inside Windows 10 so you can test out different software or do some coding that will not change anything on your current computer.  Sometimes, Hyper-V can be tricky to set up.

The following article is so good that I have reproduced it in its entirety in case the links change.  Thanks to Microsoft and its team for providing such excellent information.

*******

Step-By-Step: Enabling Hyper-V for use on Windows 10

– written by Anthony Bartolo on the Microsoft Website https://techcommunity.microsoft.com on October 8, 2018 (https://techcommunity.microsoft.com/t5/ITOps-Talk-Blog/Step-By-Step-Enabling-Hyper-V-for-use-on-Windows-10/ba-p/267945?WT.mc_id=ITOpsTalk-email-abartolo&MC=CloudDev&MC=CloudPlat&MC=WinServer&MC=Windows&MC=Virtual)

Virtualization provides a plethora of solutions from making the most of an organization’s hardware investment to running specific applications in other OS offerings. Windows 8 was the first Windows client operating system to include hardware virtualization support natively. Using the same technology found in Windows Server 2012 R2, the embedded Hyper-V client allowed IT professionals to move VMs from server to client without the requirement to re-learn the use of Hyper-V features and tools. Further enhancements were introduced in Windows 8.1 such as Enhanced Session Mode, enabling high fidelity graphics for connections to VM’s using the RDP protocol, and USB redirection which is enabled from the host to VM’s. Windows 10 brings further enhancements to the native hypervisor offering. These include:
  • Hot add and remove for memory and network adapters – works with generation 2 virtual machines running both Windows and Linux
  • Windows PowerShell Direct – the ability to run commands inside a virtual machine from the host operating system
  • Linux secure boot – Ubuntu 14.04 and later, and SUSE Linux Enterprise Server 12 OS offerings running on generation 2 virtual machines are now able to boot with the secure boot option enabled
  • Hyper-V Manager Down-level management – Hyper-V manager can manage computers running Hyper-V on Windows Server 2012, Windows Server 2012 R2 and Windows 8.1

Step 1: Prerequisites The following prerequisites are required to successfully run Client Hyper-V on Windows 10:

Step 2: Setting Up Hyper-V

  1. Ensure that hardware virtualization support is turned on in the BIOS settings
  2. Save the BIOS settings and boot up the machine normally
  3. Click the search icon (magnified glass) on the taskbar
  4. Type turn windows features on or off and select that item Windows10_HyperV_001
  5. Select and enable Hyper-V
    Windows10_HyperV_1.pngWindows Features: Turn Windows features on or off
  6. If Hyper-V was not previously enabled, reboot the machine to apply the change. NOTE: As a best practice, configure networking for the Hyper-V environment to support external network connections. Also ensure that a virtual switch has been created and is functional.
  7. Click the search icon (magnified glass) on the taskbar, type Hyper-V Manager and select the item NOTE: Right click Hyper-V Manager to pin it to the task bar
  8. Open the Virtual Switch Manager, found on the Actions panel in the Hyper-V Manager, by typing Hyper-V at the Start Screen Windows10_HyperV_003
  9. Select Virtual Switch Manager in the Actions pane
  10. Ensure that External is highlighted, and then click on the Create Virtual Switch button
  11. If more than one NIC in is present, ensure that the proper NIC is selected for use on the VM external network connections
    Windows10_HyperV_2.png

Virtual Switch Manage

Advertisements

Free Up Space – A Tool in Windows 10

I have used CCleaner for years, but recently, I have found that it is getting very annoying with pop up reminders.  Some of the messages make it seem un-trustworthy.  I was looking for a new cleaning tool.

Then I read an article on “How To Geek” about Free Up Space, a tool in Windows 10.  Here are some highlights.

  • Windows has a built-in Disk Cleanup
  • Microsoft has been improving it
  • Works even better in the latest versions of Windows 10
  • Removes temporary files, previous Windows installations, log files, old Windows updates, thumbnails, and various other cache files

To access the Free Up Space tool on Windows 10, head to Settings > System > Storage and click “Free Up Space Now” under Storage Sense. Windows will automatically scan for files you can delete. Check the files you want to delete and click “Remove files” to get rid of them.  See the partial screen shot below of Free Up Space.

image

If you check “Recycle Bin,” Windows will also empty your Recycle Bin. Be sure you don’t want to recover any deleted files from your Recycle Bin before checking this option.

Sandbox Applications for Window 10

image

Figure 1 – Visual image of what a Sandbox environment looks like when a Sandbox is installed on a PC (Image from Comodo.com)

I have some testing that I want to do on my laptop, and I was looking for the safest way to create an environment for completing this testing.  I know that I can use the Hyper-V on my Windows 10.  However, I am finding that it is not so user friendly.  I wanted something really easy.

I found a great article on www.maketecheasier.com called “5 of the Best Sandbox Applications for Windows 10” https://www.maketecheasier.com/best-sandbox-applications-windows10/.

If you are wanting to create a Sandbox environment to test out software, take a look at the article.

Let me know which sandbox app that you choose with some feedback on how it works for you.

Windows 10 Creator Update Has Some Great Features

image

Every time that Microsoft does a Windows update, I check to see if there are features that I will actually use.  In the Creators Update, there are several processes that will make my life easier.  If you want to check out all the features, go the blog link listed below. https://blogs.technet.microsoft.com/windowsitpro/2017/04/05/whats-new-for-it-pros-in-the-windows-10-creators-update/?MC=Windows&MC=SysMagSof&MC=SecSys&MC=EntMobile 

Here are some of the cool things that I will use… note that these features are lifted from the blog noted above.   

1.  New Windows Defender Advanced Threat Protection (ATP) capabilities, including the ability to create custom threat intelligence alerts, investigate a specific user account, and take immediate actions on a machine or file to contain a breach. (Watch the demo for more insight.)

2.  Hyper-V improvements, including:

  • “Quick Create,” a new option to create virtual machines in Hyper-V.
  • Checkpoint and Save for nested Hyper-V
  • Hyper-V instances will now remember your zoom level for the next session.
  • You can now override the scaling in Hyper-V virtual machines.
  • You can now resize Hyper-V windows in Enhanced session mode.
  • Networking improvements (NAT)
  • Developer-centric memory management

You can see more in a blog from Windows, and see videos embedded in the blog that show off some of the features.

https://blogs.windows.com/windowsexperience/2017/04/11/whats-new-in-the-windows-10-creators-update/

Windows 10 Users – Update on April 11, 2017

 

image

A new update for Windows 10 is available as of April 11, 2017.  This update addresses several issues that were major pains to users, such as:

  • Addressed issue that was not allowing users to access online help content when clicking the help icon in various Windows applications, such as File Explorer.
  • Addressed issue where displays turn off unexpectedly even when Turn off display and Screen saver are disabled in the power profile.
  • Addressed issue that causes virtual machines to fail during high I/O scenarios where the user may log in multiple times.

You can check out all of the update features at  April 11, 2017—KB4015217 (OS Build 14393.1066 and 14393.1083) https://support.microsoft.com/en-us/help/4015217/windows-10-update-kb4015217 

You can also see a list of all KB articles and Builds to date, on the sidebar of this article.

If You Cannot Find Your Windows 10 License Key, Try This

image

 

If you are having trouble finding your Windows 10 license key, know that you are not alone.  Sometimes, it feels like it is just hidden.

To find your product key, check out this great post at https://www.groovypost.com/howto/find-your-windows-10-product-key/.

The important paragraph is:

“When you purchase your Windows 10 license from the Microsoft Store, a copy of the product key is stored in your Microsoft Account. Microsoft will also send you a copy of the product key in a confirmation email. If you don’t see the confirmation email, check your junk mail folder. If you still don’t find it, log into the Microsoft Store > Downloads > Product Keys > Subscription page. Then click the Digital Content tab to see your previous purchases along with your product key.”

File Transfer Manager will not Open to Download Dynamics GP and Related Files in Windows 10 and IE 11

If you are a customer or partner of Microsoft, you may be finding it difficult to download files for Dynamics GP 2016 and GP 2015 because the File Transfer Manger WILL NOT OPEN.

I tried to download some files today, and was getting nowhere when I suddenly remembered that WALDO’s BLOG http://www.waldo.be/2016/10/27/microsoft-dynamics-nav-2017-ready-for-download-and-how-to-do-it/ had instructions for downloading the Dynamics NAV 2017 files.

I went back to his instructions, followed the steps, and, after closing and reopening Internet Explorer 3 times, and putting the Microsoft sites into compatibility mode, the File Transfer Manager worked.

Thank you, Waldo, and keep writing those great blogs!

How To End a Hyper-V Virtual Machine that is Stuck

image

Have you ever had a Hyper-V virtual server get stuck?  My Hyper-V got stuck and I could not get it to move.  And, I couldn’t stop it or delete it.  I am running Windows 10 Pro Version 1607, so I thought perhaps it was my Windows version. 

I went to Google for help and found this great article at Spiceworks Community https://community.spiceworks.com/how_to/528-killing-ending-a-hyper-v-virtual-machine-that-is-stuckThe article was written in 2009 by Christopher O,  and worked for me today.

He suggests four easy steps.  I have listed his steps and then added my comments. 

1.  Download Process Explorer from Microsoft Sysinternals.  I used this link that is good as of Feb 2016. https://technet.microsoft.com/en-us/sysinternals/bb896653.aspx.  — I had to run as Administrator.  Mark Russinovich wrote the article on  Process Explorer v16.12 which explains what Process Explorer does.  You can use it to solve other issues on .exe files or on DLL files.

2.  Find the GUID for your VM.  Look in the Virtual Machines folder where your VM resides. There should be an XML file and a folder both labelled with the same GUID. Remember or write down at least the first couple and last few characters of the guid – you’re going to need to match this.  —  For me, the beginning and end of my Hyper-V server was 186AFF9D…….137128.

3.  Find the GUID that’s running. Run Process Explorer (you may need to right-click and Run As Administrator if you get Access Denied messages) and look for a bunch of VMWP.EXE files running. Open the properties on one, go to the Image tab, and look under Command Line. As a parameter on the command will be the GUID from the Virtual Machines folder. Keep looking until you find the one with the same GUID!   — This may be a daunting task because so much information comes up.  I used the binoculars to FIND the first part of my server name.  I entered 186AFF9D.

4. Kill it!  After finding it, hit OK to the Properties window, then right-click on that VMWP.EXE and Kill Process! The Virtual Machine should immediately turn off.  — You need to close the find window, and then you should see the VWMP.EXE highlighted.  Right mouse click to select “Kill it”. 

Now, you can go back to your virtual machines directory – mine was under Documents>Virtual Machines – and delete the directory.

Big thanks to Christopher O and Spiceworks!

Worth Knowing–When Can You Move A Windows License To New PC?

image

I never really thought about moving Windows licenses.  It isn’t something that I have to do.  However, How-To Geek posted a great article with the details on when you can move a Windows License to another computer.  See their article at http://www.howtogeek.com/261053/when-can-you-move-a-windows-license-to-a-new-pc/.

There is some basic information that all techies should know, but may be news to the majority of computer users. Did you know the following facts (in the article)?

  • When you get a computer that comes with Windows system preinstalled by the manufacturer, the Windows license will always remain tied to that computer.
  • There’s no exception to this, aside from the exception for replacing the computer’s motherboard if it failed, as discussed above
  • Manufacturers get these non-transferable licenses for less than you’d pay for a transferable license, hence the restriction.

How To Delete Hiberfil.sys in Windows 10

image

I have been running Windows 10 Pro since I did the install at the end of July.  Since that time, I have seen my hard drive fill up without me adding files.  This is suspicious behaviour.  When I looked at my drive, I had two files that were both 6.3 GB.  One file was the pagefile.sys and the other was the hiberfil.sys.

I Googled the Hiberfil.sys and found a great article at How To Geek that explains what the hiberfil.sys is and why you may, or may not, need it.  It also explains how to disable or delete the hiberfil.sys. 

I chose to delete the file.  Here are the instructions for doing that.

You’ll need to open an administrator mode command prompt by right-clicking on the command prompt in the start menu, and then choosing Run as Administrator. Once you’re there, type in the following command:

powercfg -h off

Picture from How To Geek’s article on “What is Hiverfil.sys and How Do I Delete It

I immediately freed up the space which is great because I have more room to run Hyper-V.