Posts Tagged ‘Script’

Running PowerShell scripts on Hyper-V Windows Server 2008


Let’s assume you’ve correctly installed PoerShell 2.0.  The easiest way to import a module is to copy it to your modules directory (c:\windows\system32\windowsPowerShell\v1.0\modules).  Take the PSHyperV zip that you download from codeplex, right click on it, then unblock it.  Next, inside the zip, copy the HyperV folder to your modules directory.

Now you can either right click the PwerShell icon and select import system modules, or simply use “import-module hyperv” in your scripts.