oneclick-gpu-pv icon indicating copy to clipboard operation
oneclick-gpu-pv copied to clipboard

Get-VM : Term 'Get-VM' not recognized as a cmdlet, function, executable program, or script file name....

Open Marietto2008 opened this issue 1 year ago • 1 comments

Hello.

I tried to run your script on my Windows 11 system. I ran powershell and then :

PS C:\Users\marietto\Downloads\oneclick-gpu-pv-main\oneclick-gpu-pv-main> Set-ExecutionPolicy Unrestricted

Set-ExecutionPolicy Unrestricted

PS C:\Users\marietto\Downloads\oneclick-gpu-pv-main\oneclick-gpu-pv-main> .\win-gpu-pv.ps1

Get-VM : Term 'Get-VM' not recognized as a cmdlet, function, executable program, or script file name. Check the spelling of the name or verify that the path is included and correct, then try again.

In C:\Users\marietto\Downloads\oneclick-gpu-pv-main\oneclick-gpu-pv-main\win-gpu-pv.ps1:13 car:13

  • $vmobject = Get-VM | Out-GridView -Title "Select VM to setup GPU-P" - ...
  •         ~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Get-VM:String) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : CommandNotFoundException

Marietto2008 avatar May 21 '24 13:05 Marietto2008

Are you on Windows 11 Pro?This command should comes with the Hyper V component.

seflerZ avatar Aug 25 '25 02:08 seflerZ