Get-VM : Term 'Get-VM' not recognized as a cmdlet, function, executable program, or script file name....
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
Are you on Windows 11 Pro?This command should comes with the Hyper V component.