Archivio

Posts Tagged ‘PowerShell’

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