Can only run 1 script in the same powershell session

Feb 8, 2012 at 11:37 AM

The topic kinda explains it all. Each time i run a script i have to open a new window to run another script. (both using the hyperv module) It seems like the module crashes. I know i can easily call another powershell session to run the next script, but thats kinda annoying. Is this normal?

Feb 9, 2012 at 10:36 AM
Edited Feb 9, 2012 at 10:36 AM

Nevermind, found a previous post about it. 

Use this instead of the normal import-module HyperV.

if (!(Get-Module -Name HyperV)) { Import-Module HyperV }