Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The new TechNet Script Center Gallery has a useful RSS feed of most active submitted scripts. This help me find two useful ones:
- Login monitoring : Connects to a security log and retrieves successful login events and returns time, user, and type of login
- List all groups in the domain and all members of the groups : Output to a text file in tab separated value format "group name, group type, member name, member type" with all domain groups and all their members.
There’s also a bunch I’ve uploaded for Hyper-V/Hyper-V Server and VPC/VS:
- PS - Compact VHD : PS 2.0 script to compact VHDs.
- PS Script to Check Hypervisor Heartbeat Checks if Hypervisor is running.
- PS Check IC Version PS 2.0 script to Check if VM Integration components/integration services are up to date.
- PS - Snapshot a VM PS 2.0 script to take a snapshot of a VM.
- PS - Shut Down VM PS 2.0 Script to Shut Down VMs.
- PS - Set a Custom KVP PS 2.0 script to set a custom VM KVP.
- PS - Remove vNIC PS 2.0 script to remove a virtual NIC from a VM.
- VB - NICHA VB scrip to monitor the NIC used by a virtual machine in a cluster.
- PS - Modify VLAN Settings PS 2.0 script to modify virtual networking settings on your virtual machines.
- PS - Merge VHDs PS 2.0 script to merge VHDs.
- PS - Loopback Mount a VHD PS 2.0 script to loopback mount a VHD.
- PS - List VMs PS script to list VMs from Thomas Lee.
- PS - Get Intrinsic KVPs PS 2.0 script to get intrinsic KVP.
- PS - Get a Custom KVP PS 2.0 script to Get a Custom KVP.
- PS - List Snapshots PS 2.0 script to list VM Snapshots.
- PS - Expand VHD PS 2.0 script to expand VHDs.
- PS - Delete VM PS 2.0 do delete VMs.
- PS - Create VSwitch PS 2.0 script to create a virtual switch.
- Detect VM Need to detect if something is running inside a VM? John Kelbley shares how, read more at: https://blogs.technet.com/tonyso/archive/2009/08/20/hyper-v-how-to-detect-if-you-are-inside-a-vm.aspx
- PS - Create VM PS 2.0 script to create VMs.
- PS - Create Fixed VHD PS 2.0 script to create fixed VHDs
- PS - Create Dynamic VHD PS 2.0 script to create dynamic VHDs.
- PS - Create Differencing VHD PS 2.0 script to create a differencing VHD.
- PS - Convert VHD PS 2.0 script to covert VHDs.
- PS - Connect Switch to VM PS 2.0 script to connect a virtual switch to a VM.
- PS - Connect Switch to NIC PowerShell 2.0 script for connecting a virtual switch to a physical NIC on the HOST.
- Reset MAC Address Script to reset MAC addresses on VMs.
- PS - Change VM State PS 2.0 script to change state on VMs.
- PS - Change ISO PS 2.0 script to change the ISO in the virtual DVD Drive.
- PS - Apply Snapshot PS 2.0 script to apply snapshots to VMs.
- VBScript to Set Serial Number for a VM Example script for setting the serial number of a Virtual PC 2007 virtual machine.
And don’t forget jamesone’s excellent PowerShell management Library for Hyper-V . Also free, as-in-beer.
You will also want to look at the Windows Management Framework: PS 2.0, WinRM 2.0 and BITS 4.0.