kitchen-hyperv
kitchen-hyperv copied to clipboard
Check for administrator rights
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.
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".
I am actively working on this one. Should be in soon.