Hyper-V How To: Add a PT Disk to A VM with a Script

Some friends here on the Hyper-V team shared a PowerShell 2.0 script for adding a pass-through disk to a VM: # Add a pass-through disk to a VM param(     [string]$vmName = $(throw “Must specify virtual machine name”),     [int]$ideNum = $(throw “Must specify IDE location to attach the pass-through disk”),     [int]$lunNum = $(throw…

IT Insider Hyper-V Information

Check out the Insider’s Guide to Microsoft’s Hyper-V. Truth in advertising for once, you can’t get a whole lot more *insider* than these guys,  and the book includes much PowerShell goodness. Hyper-V + PowerShell = Salty Goodness. Ex. see the free-as-in-beer PowerShell Library for Hyper-V Management.

Reduce, Reuse, Recycle

Why write your own IT Pro scripts when you can have the world’s best do it for you? Check out the Microsoft Script Center Summer Scripting Games 2009, starting 6/15, 2009. The 100 meter dash The Long Jump Think you can do better than the competitors? Feel free to submit your entries (no registration is…

Hyper-V How To: Manage Hyper-V with PowerShell

James has published a New and improved PowerShell Library for Hyper-V. Now with more functions and… documentation! Look for Pshyperv.pdf and send thanks to James. Did I mention it is free-as-in-beer?  

YouTube? It’s Easier Than You Think, Even Inside the Firewall

We use the free-as-in-beer Podcasting Kit for SharePoint (PKS) internally at Microsoft. Works a treat: 2,100+ total podcasts and growing every day 3,100+ registered podcaster accounts 3,700+ unique visitors in May, 2008 1,800 page views average per day 80,000+ downloads since July, 2007 A recent Forrester page said: “Enterprise Web 2.0 features to make video…


Old PRO (tips) Never Die

Ever changed your mind about a VMM PRO Tip that you let go by? Ever wanted to find them all again? Courtesy of Francisco – Here’s how: On the VMM server open an elevated PowerShell command prompt and type the following: Get-protip | sort createdtime |  format-table Name,source,severity,status,createdtime

Hyper-V How To: Manually Configure Hyper-V Pagefile

Hyper-V automatically configures your pagefile settings, but if, for some troubleshooting purposes, you may want to change them manually. Here’s how: 1. To check current pagefile stats, from the command line type: wmic pagefile get /format:list 2. To disable automatic system pagefile management, from the command line type: wmic computersystem set AutomaticManagedPagefile=False 3. To set…


Hyper-V How To: Script VM Functions

Check out the TechEd video Windows Server 2008 Hyper-V: Scripting & Programmatic Management for Fun & Profit (VBS & PowerShell) by John Kelbley, and Alexander Lash. Some of John’s example script are newly posed in the Official Scripting Guys Forum!, for example: Script to Start All VMs on a Hyper-V Server Script to List all…


How Community Content is Supposed to Work

There is something interesting going on WRT “community content” at Microsoft. See the example over in Official Scripting Guys forum: A customer asked for scripting help to check the OS version on his XP client machine and install patches. The next day an MVP posted a script to help him: 1 Set objShell = CreateObject(“WScript.Shell”)  …


Hyper-V How To: Script AzMan Scopes for RBAC

In the scripting forum someone 🙂 asked: “Can anyone suggest the way to create AzMan scopes for VMs (I can assign VMs to scopes) with Powershell/WMI/VBScript?” 4 scripts are provided for managing your AzMan scopes in Hyper-V: CreateVMInScope DisplayVMScopes ClearVMScopes ChangeVMScope Enjoy!