{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/vagrant/issues/10071","repository_url":"https://api.github.com/repos/hashicorp/vagrant","labels_url":"https://api.github.com/repos/hashicorp/vagrant/issues/10071/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/vagrant/issues/10071/comments","events_url":"https://api.github.com/repos/hashicorp/vagrant/issues/10071/events","html_url":"https://github.com/hashicorp/vagrant/issues/10071","id":345661972,"node_id":"MDU6SXNzdWUzNDU2NjE5NzI=","number":10071,"title":"VMWare Fusion Windows box unable to run PowerShell in elevated privileges ","user":{"login":"WizBangCrash","id":3075593,"node_id":"MDQ6VXNlcjMwNzU1OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/3075593?v=4","gravatar_id":"","url":"https://api.github.com/users/WizBangCrash","html_url":"https://github.com/WizBangCrash","followers_url":"https://api.github.com/users/WizBangCrash/followers","following_url":"https://api.github.com/users/WizBangCrash/following{/other_user}","gists_url":"https://api.github.com/users/WizBangCrash/gists{/gist_id}","starred_url":"https://api.github.com/users/WizBangCrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WizBangCrash/subscriptions","organizations_url":"https://api.github.com/users/WizBangCrash/orgs","repos_url":"https://api.github.com/users/WizBangCrash/repos","events_url":"https://api.github.com/users/WizBangCrash/events{/privacy}","received_events_url":"https://api.github.com/users/WizBangCrash/received_events","type":"User","site_admin":false},"labels":[{"id":443894505,"node_id":"MDU6TGFiZWw0NDM4OTQ1MDU=","url":"https://api.github.com/repos/hashicorp/vagrant/labels/communicator/winrm","name":"communicator/winrm","color":"006b75","default":false},{"id":218286867,"node_id":"MDU6TGFiZWwyMTgyODY4Njc=","url":"https://api.github.com/repos/hashicorp/vagrant/labels/host/windows","name":"host/windows","color":"d4c5f9","default":false},{"id":194242051,"node_id":"MDU6TGFiZWwxOTQyNDIwNTE=","url":"https://api.github.com/repos/hashicorp/vagrant/labels/provisioner/shell","name":"provisioner/shell","color":"bfdadc","default":false},{"id":54083443,"node_id":"MDU6TGFiZWw1NDA4MzQ0Mw==","url":"https://api.github.com/repos/hashicorp/vagrant/labels/waiting-reply","name":"waiting-reply","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hashicorp/vagrant/milestones/35","html_url":"https://github.com/hashicorp/vagrant/milestone/35","labels_url":"https://api.github.com/repos/hashicorp/vagrant/milestones/35/labels","id":3326171,"node_id":"MDk6TWlsZXN0b25lMzMyNjE3MQ==","number":35,"title":"2.2","description":"","creator":{"login":"gildegoma","id":434654,"node_id":"MDQ6VXNlcjQzNDY1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/434654?v=4","gravatar_id":"","url":"https://api.github.com/users/gildegoma","html_url":"https://github.com/gildegoma","followers_url":"https://api.github.com/users/gildegoma/followers","following_url":"https://api.github.com/users/gildegoma/following{/other_user}","gists_url":"https://api.github.com/users/gildegoma/gists{/gist_id}","starred_url":"https://api.github.com/users/gildegoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gildegoma/subscriptions","organizations_url":"https://api.github.com/users/gildegoma/orgs","repos_url":"https://api.github.com/users/gildegoma/repos","events_url":"https://api.github.com/users/gildegoma/events{/privacy}","received_events_url":"https://api.github.com/users/gildegoma/received_events","type":"User","site_admin":false},"open_issues":48,"closed_issues":1,"state":"open","created_at":"2018-05-07T16:19:16Z","updated_at":"2018-10-18T00:29:55Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-07-30T08:36:32Z","updated_at":"2018-10-18T15:45:37Z","closed_at":null,"author_association":"NONE","body":"I am unable to get my provisioners to run in elevated privileges on my VMWare Fusion environment.\r\nIf I change the shell provisioner to be `privileged: false` then it will run but Chocolatey complains it is not running with admin privileges.\r\n\r\n### Vagrant version\r\nvagrant (2.1.2)\r\nvagrant-vmware-desktop (1.0.4)\r\n\r\n### Host operating system\r\nmacOS 10.13.6\r\nVMWare Fusion Professional Version 10.1.2 (8502123)\r\n\r\n### Guest operating system\r\nWindows 10 (1803)\r\n\r\n### Vagrantfile\r\n```ruby\r\nVagrant.configure(\"2\") do |config|\r\n  config.vm.box = \"windows10\"\r\n\r\n  config.vm.provider \"vmware_fusion\" do |v|\r\n    v.gui = true\r\n    # Enable \"Enable hypervisor applications in this virtual machine\" \r\n    # Allows VirtualBox to run in the VMWare host\r\n    v.vhv.enable = \"TRUE\"\r\n  end\r\n\r\n  config.vm.provision \"gitconfig\", type: \"file\", source: \"~/.gitconfig\", destination: \"$HOME/.gitconfig\"\r\n  config.vm.provision \"id_rsa\", type: \"file\", source: \"~/.ssh/id_rsa\", destination: \"$HOME/.ssh/id_rsa\"\r\n  config.vm.provision \"id_rsa_pub\", type: \"file\", source: \"~/.ssh/id_rsa.pub\", destination: \"$HOME/.ssh/id_rsa.pub\"\r\n  config.vm.provision \"known_hosts\", type: \"file\", source: \"~/.ssh/known_hosts\", destination: \"$HOME/.ssh/known_hosts\"\r\n\r\n  # RunOnce provisioners\r\n  config.vm.provision \"vbox\", type: \"shell\", inline: \"choco install virtualbox --yes\", run: \"once\", privileged: true\r\n  config.vm.provision \"packer\", type: \"shell\", inline: \"choco install packer --yes\", run: \"once\", privileged: true\r\n\r\nend\r\n```\r\n\r\n### Debug output\r\nhttps://gist.github.com/WizBangCrash/57389502123011dfd16a252f7c213574\r\n\r\n### Expected behavior\r\nThe shell provisioners should run with elevated privileges and install the applications.\r\n\r\n### Actual behavior\r\nThe first shell provisioner fails with the error below and vagrant hangs (see Gist link for full debug output).\r\n```\r\n==> default: Running provisioner: vbox (shell)...\r\n    default: Running: inline PowerShell script\r\n    default: (10,8):UserId:\r\n    default: At line:72 char:1\r\n    default: + $folder.RegisterTaskDefinition($task_name, $task, 6, $username, $pass ...\r\n    default: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    default:     + CategoryInfo          : OperationStopped: (:) [], ArgumentException\r\n    default:     + FullyQualifiedErrorId : System.ArgumentException\r\n    default: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)\r\n    default: At line:74 char:1\r\n    default: + $registered_task = $folder.GetTask(\"\\$task_name\")\r\n    default: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    default:     + CategoryInfo          : OperationStopped: (:) [], FileNotFoundException\r\n    default:     + FullyQualifiedErrorId : System.IO.FileNotFoundException\r\n    default: You cannot call a method on a null-valued expression.\r\n    default: At line:75 char:1\r\n    default: + $registered_task.Run($null) | Out-Null\r\n    default: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    default:     + CategoryInfo          : InvalidOperation: (:) [], RuntimeException\r\n    default:     + FullyQualifiedErrorId : InvokeMethodOnNull\r\n```\r\n\r\n### Steps to reproduce\r\n1. Run vagrant up using a Windows box in a VMWare Fusion environment\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/vagrant/issues/comments/431060275","html_url":"https://github.com/hashicorp/vagrant/issues/10071#issuecomment-431060275","issue_url":"https://api.github.com/repos/hashicorp/vagrant/issues/10071","id":431060275,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTA2MDI3NQ==","user":{"login":"WizBangCrash","id":3075593,"node_id":"MDQ6VXNlcjMwNzU1OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/3075593?v=4","gravatar_id":"","url":"https://api.github.com/users/WizBangCrash","html_url":"https://github.com/WizBangCrash","followers_url":"https://api.github.com/users/WizBangCrash/followers","following_url":"https://api.github.com/users/WizBangCrash/following{/other_user}","gists_url":"https://api.github.com/users/WizBangCrash/gists{/gist_id}","starred_url":"https://api.github.com/users/WizBangCrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WizBangCrash/subscriptions","organizations_url":"https://api.github.com/users/WizBangCrash/orgs","repos_url":"https://api.github.com/users/WizBangCrash/repos","events_url":"https://api.github.com/users/WizBangCrash/events{/privacy}","received_events_url":"https://api.github.com/users/WizBangCrash/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T15:45:37Z","updated_at":"2018-10-18T15:45:37Z","author_association":"NONE","body":"I am still experiencing on v2.1.5. I haven't updated to the 2.2 release yet."}}
{"actor":{"display_login":"WizBangCrash"}}