Adding yourself to the Hyper-V Administrators group with PowerShell

I am currently setting up a couple of new computers – and thought I would share this little tidbit of information.  As I have  blogged in the past, you do not need to run “As Administrator” to use Hyper-V PowerShell cmdlets.  You just have to be a member of the Hyper-V Administrators group. Well –… Read more

Copy files over PowerShell Direct (and more)

We recently updated a number of the capabilities of PowerShell Direct.  In Windows 10 Insider builds greater than 14280, and in Windows Server 2016, you can now create persistent PowerShell sessions using PowerShell Direct. The format for doing this is: $PSSession = New-PSSession -VMName <VMName> -Credential (Get-Credential) You can then use this session for a… Read more

Windows 10, Hyper-V and Wireless – a new way to make this all work

Anyone who has used Hyper-V on a laptop is familiar with the pain of configuring Hyper-V virtual networking with wifi networking.  In fact, I have written multiple blogs about this over the years.  Well, in recent builds of Windows 10 (build 14295 or later) there is a new option.  This is currently a bit hidden (no… Read more

PowerShell for Docker

For the last couple of months I have been conflicted when working with containers.  Do I use PowerShell – or do I use Docker?  Both have their advantages.  Well – thankfully this dilemma will soon be a thing of the past – because we are working on PowerShell for Docker! While it is still in… Read more

Virtual Holograms

As opposed to real holograms? Anyway, semantic issues aside, this is something that I am really excited about.  About two weeks ago we announced the availability of the Hololens Emulator.  This allows you to begin developing holographic applications today – even if you do not have access to a Hololens device.  When you get it… Read more

Ubuntu on Windows

For a while now I have had the fun of being involved with a new technology that we announced today.  Ubuntu on Windows.  This has nothing to do with virtualization – but is a great way to get access to all the great development tools that Linux has – directly from Windows. There is a… Read more

Heading off to Build 2016

All this week I will be at Build 2016. We will be talking about: Building with the Azure Container Service : Building new applications on Windows Server 2016 : Something awesome… : And of course – there is so much more going on.  Do not expect to see much blogging from me… Read more

Making and tuning a “safe automated mouse click”

Over the last week I have been talking about the components needed to automate the mouse in Hyper-V.  This is because I have been working on some automation scripts for my environment.  One problem that I have encountered is this: I will have a virtual machine that is being controlled by one of my scripts. … Read more

Checking the mouse button state in Hyper-V

Continuing in my series on Hyper-V automation; as well as being able to get the position of the mouse cursor in the virtual machine – you can also check the mouse button state. $VMName = “Windows 10 Enterprise” $VMCS = Get-WmiObject -Namespace root\virtualization\v2 -Class Msvm_ComputerSystem -Filter “ElementName=’$($VMName)’” $mouse = $VMCS.GetRelated(“Msvm_SyntheticMouse”) $mouse.GetButtonState(1).IsDown $mouse.GetButtonState(2).IsDown This PowerShell code… Read more