Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Cannot use powershell vm commands on domain account

$
0
0

Hi,

I joined my computer to domain. Domain is fresh, no GPOs are made. Regular vm commands like get-vm, start-vm, etc work on local account, but when relog to domain acc (even like enterprise admin + admin + hyper-v admin + winrm...) all hyper-v powershell commands stop to work.

example 1:

PS C:\Users\user1> get-vm
PS C:\Users\user1>

Where are my vms?

example 2:


PS C:\Users\user1>start-vm vm1

start-vm : A parameter is invalid. Hyper-V was unable to find a virtual machine with name vm1.
At line:1 char:1
+ start-vm vm1
+ ~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (vm1:String) [Start-VM], VirtualizationInvalidArgumentException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.StartVMCommand

Parameter "is invalid" but when logged on local admin the same parameter "is valid". This problem is on windows 2012r2 and 8.1 pro.

The case is: fix it without: right click on powershell icon > run as admin > ...

"get-vm" is "dir" or "ls". Its shouldn`t req doing this things.

Thanks,

JerryTheMouse




Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>