Home > Cloud and Datacenter Management, Hyper-V, IT Pro, PowerShell, Technical post, Virtualization > Running PowerShell scripts on Hyper-V Windows Server 2008

Running PowerShell scripts on Hyper-V Windows Server 2008

https://social.technet.microsoft.com/Forums/windows/en-US/3f1a3373-0ede-4661-944b-bd0a565b1d69/how-to-import-hyperv-module-on-windows-2008-and-2008-r2?forum=winserverhyperv

 

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.

https://pshyperv.codeplex.com/downloads/get/219013

 

https://technet.microsoft.com/it-IT/library/hh847748.aspx?f=255&MSPPError=-2147217396

 

http://www.altaro.com/hyper-v/10-awesome-hyper-v-cmdlets/

 

https://redmondmag.com/articles/2015/07/16/run-powershell-commands-against-a-remote-vm.aspx

 

https://blogs.technet.microsoft.com/heyscriptingguy/2013/05/10/get-a-list-of-virtual-machines-by-using-powershell/

 

http://stackoverflow.com/questions/27719439/powershell-command-to-copy-file-on-remote-machine

 

https://blogs.technet.microsoft.com/heyscriptingguy/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script/

 

http://techgenix.com/configuring-virtual-machines-using-powershell/

 

https://blogs.msdn.microsoft.com/powershell/2007/05/05/running-scripts-downloaded-from-the-internet/

Annunci
  1. Non c'è ancora nessun commento.
  1. No trackbacks yet.

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: