My (very simple) Vagrantfile is here <https://gist.github.com/hamiltont/75430f8a9b5d73b0900d> - trying to provision using a batch file that does nothing but echo once.
This returns this exception trace (full log here <http://sprunge.us/VaHO>) - any pointers would be greatly appreciated! DEBUG winrmshell: powershell executing: powershell -executionpolicy bypass -file c:/tmp/vagrant-elevated-shell.ps1 if ($?) { exit 0 } else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { exit 1 } } INFO interface: info: Exception calling "RegisterTaskDefinition" with "7" argument(s): INFO interface: info: ==> default: Exception calling "RegisterTaskDefinition" with "7" argument(s): ==> default: Exception calling "RegisterTaskDefinition" with "7" argument(s): INFO interface: info: "(10,8):UserId:" INFO interface: info: ==> default: "(10,8):UserId:" ==> default: "(10,8):UserId:" INFO interface: info: At C:\tmp\vagrant-elevated-shell.ps1:62 char:1 + $folder.RegisterTaskDefinition($task_name, $task, 6, $user, $password, 1, $null) ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ComMethodTargetInvocation Exception calling "GetTask" with "1" argument(s): "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)" At C:\tmp\vagrant-elevated-shell.ps1:64 char:1 + $registered_task = $folder.GetTask("\$task_name") + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ComMethodTargetInvocation INFO interface: info: ==> default: At C:\tmp\vagrant-elevated-shell.ps1:62 char:1 ==> default: + $folder.RegisterTaskDefinition($task_name, $task, 6, $user, $password, 1, ==> default: $null) ... ==> default: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ==> default: ~~~ ==> default: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException ==> default: + FullyQualifiedErrorId : ComMethodTargetInvocation ==> default: ==> default: Exception calling "GetTask" with "1" argument(s): "The system cannot find the ==> default: file specified. (Exception from HRESULT: 0x80070002)" ==> default: At C:\tmp\vagrant-elevated-shell.ps1:64 char:1 ==> default: + $registered_task = $folder.GetTask("\$task_name") ==> default: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ==> default: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException ==> default: + FullyQualifiedErrorId : ComMethodTargetInvocation ==> default: ==> default: At C:\tmp\vagrant-elevated-shell.ps1:62 char:1 ==> default: + $folder.RegisterTaskDefinition($task_name, $task, 6, $user, $password, 1, ==> default: $null) ... ==> default: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ==> default: ~~~ ==> default: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException ==> default: + FullyQualifiedErrorId : ComMethodTargetInvocation ==> default: ==> default: Exception calling "GetTask" with "1" argument(s): "The system cannot find the ==> default: file specified. (Exception from HRESULT: 0x80070002)" ==> default: At C:\tmp\vagrant-elevated-shell.ps1:64 char:1 ==> default: + $registered_task = $folder.GetTask("\$task_name") ==> default: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ==> default: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException ==> default: + FullyQualifiedErrorId : ComMethodTargetInvocation ==> default: INFO interface: info: You cannot call a method on a null-valued expression. -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
