Browse by Tags
All Tags » SCVMM » IT Pro Code Gallery ( RSS)
-
|
The good folks at Codeplex, the folks who bring you the free-as-in-beer Hyper-V PowerShell SnapIn also bring you the PowerShell PowerBoots . “ PowerBoots makes it easier for scripters to create graphical user interfaces in PowerShell, exposing much of...
|
-
|
Ben’s blog post lays out all the background and details on import/export of VMs in Windows Server 2008 R2 . Soumya’s blog post gives a couple of scripts showing how to do a config-only export,a nd a script for importing it....( read more ) Share this...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for checking the integration services/integration components to see if they are current in your VMs: # Test if the IC version is up to date param( [string]$vmName...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for checking in the hypervisor is running on a Hyper-V server (host/parent partition): # Check if Hypervisor is running $hypervisor = gwmi –ErrorAction SilentlyContinue Win32_PerfRawData_HvStats_HyperVHypervisor...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for taking a snapshot of your VMs: # Take a snapshot of a VM param( [string]$vmName = $(throw "Must specify virtual machine name") ) # Get the virtual machine...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for shutting down your VMs: # Shutdown a Virtual Machine (requires Integration Components) param( [string]$vmName = $(throw "Must specify virtual machine name"...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for setting custom KVPs: # Set a Custom KVP param( [string]$vmName = $(throw "Must specify virtual machine name"), [string]$Key = $(throw...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for removing virtual NICs from your VMs: # Remove a NIC (synthetic ethernet port) from a virtual machine param( [string]$vmName = $(throw "Must specify virtual...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for getting a mapping your virtual network settings: # Navigate Network Topology to determine Virtual Switch type # ie: Internal, External, External-Shared, or Private # Prompt for the...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for modifying hte VLAN settings on your VMs: # Modify VLAN setting for VM param( $vmName = $(throw "Must supply a virtual machine name"), ...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for merging VHDs: # Merge VHDs param( [string]$mergePath = $(throw "Must specify full path for merging VHD"), [string]$parentPath = $...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for loopback mounting a VHD, for example, if you need to use bcdedit to alter the boot configuration store offline: # Loopback mount a VHD param( [string] $path =...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for getting a list of VMs: # List VMs $vmList = gwmi -namespace root\virtualization Msvm_ComputerSystem |` where{$_.Name -ne $env:COMPUTERNAME} $vmList | select ElementName...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for getting a list of snapshots: # List Virtual System Snapshots #Obtain the VM name $VM_Name= Read-Host("Please specify the name of the VM ") $HostName = "." #obtain...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for getting an intrinsic KVPS: # Get Intrinsic KVPs (Included Guest machine name, IC Version, OS Version, etc) param( [string]$vmName = $(throw "Must specify...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for getting a custom KVPS: # Get Custom KVPs param( [string]$vmName = $(throw "Must specify virtual machine name") ) $vm = gwmi -namespace root\virtualization...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for expanding VHD: # Expand a VHD param( [string]$vhdPath = $(throw "Must specify full path for VHD"), [string]$vhdSize = $(throw...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for deleting a VM snapshot: However BEFORE you go deleting snapshots , please read the Hyper-V Snapshot FAQ , and have a look at the Ben Armstrong Snapshot FAQ Video . # Delete...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for creating a virtual switch: # Create a Virtual Switch param( [string]$vsName = $(throw "Must specify virtual switch name") ) # Get the Virtual Switch...
|
-
|
Sometimes, when troubleshooting or for forensic reasons, you may have to determine if an application is running inside a virtual machine. John Kelbley, co-author of Windows Server 2008 Hyper-V : Insiders Guide to Microsoft's Hypervisor , shares how...
|
-
|
Jamesoen’s excellent PowerShell Management Library for Hyper-V includes a Hyper-V cmdlet documentation PDF file that helps you chunk all the things you can do with Hyper-V using PS, for example, the following list of cmdlets parsed by function:...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for creating a VM: # Create a VM param( [string]$vmName = $(throw "Must supply a virtual machine name") ) # Get a new instance of Msvm_VirtualSystemGlobalSettingData...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for creating a fixed VHD for your VM: # Create fixed VHD param( [string]$vhdPath = $(throw "Must specify full path for new VHD"), [string...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for creating a dynamic VHD for your VM: # Create a dynamic VHD param( [string]$vhdPath = $(throw "Must specify full path for new VHD"), ...
|
-
|
Some friends here on the Hyper-V team shared a PowerShell 1.0 script for creating a diff VHD for your VM: # Create a differencing VHD param( [string]$newPath = $(throw "Must specify full path for new differencing VHD"), ...
|
More Posts Next page »
|
|