kitchen-hyperv icon indicating copy to clipboard operation
kitchen-hyperv copied to clipboard

Check for administrator rights

Open usepowershell opened this issue 10 years ago • 3 comments

usepowershell avatar Jun 30 '15 16:06 usepowershell

I'm not sure this would be always relevant, such as on remote Hyper-V for instance. Better error handling (i.e. Access Denied) might more appropriate.

gaelcolas avatar Aug 23 '16 08:08 gaelcolas

Yesterday I had a problem where test-kitchen was reporting "No default switch defined". This was caused by me running it from a normal (not elevated) Powershell window by a mistake. It would me much more helpful if the error message was something along the lines of "This command must be run elevated".

ebjornset avatar Feb 01 '18 14:02 ebjornset

I am actively working on this one. Should be in soon.

kdoores avatar Feb 01 '18 18:02 kdoores