Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having troubles with Get-VM using sudo #39

Open
kid1412621 opened this issue Aug 5, 2020 · 1 comment
Open

Having troubles with Get-VM using sudo #39

kid1412621 opened this issue Aug 5, 2020 · 1 comment

Comments

@kid1412621
Copy link

sudo Get-VM doesn't get any response.
Powershell version: 7.0.3

Running Windows Terminal as Administrator will get correct result.

@tomoyan596
Copy link

Hello.
I noticed the same problem, but found a workaround.
Please try this.
$ sudo pwsh -c 'Get-VM'
or
$ sudo pwsh
$ Get-VM
I'm reading sudo.ps1, but I'm not sure what the root cause is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants