I get only the initial list after registering the library

Dec 4, 2008 at 1:09 AM
I get the list of commands after issuing: .\hyperv\hyperv.ps1 

VM Functions added

Name
----
Add-VMDISK
Add-VMDRIVE
Add-VMFloppyDisk
Add-VMNewHardDisk
Add-VMNIC
Add-VMSCSIController
Apply-VMSnapshot
Choose-VM
choose-VMExternalEthernet
Choose-VMNIC
Choose-VMSnapshot

...


After that, any command Get-VM for example will give the following error.

The term 'Get-VM' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try ag
ain.
At line:1 char:6
+ Get-VM <<<<


Thanks.
Coordinator
Dec 6, 2008 at 5:29 PM
Powershell requires you to put a . in front of the script name to keep the functions in memory after the script has run.
Run it as

.  .\hyperv.ps1

and it will work ....
Dec 8, 2008 at 10:44 PM
Amen :)

Thanks, never thought the other post with similar recomendation was related.
This worked.