Tutorial Cannot Work


Tried the tutorial in

Keep getting the error after

PS C:\Users\Admin\Downloads\topbeat-1.1.0-windows> Invoke-WebRequest -Method Put -InFile topbeat.template.json -Uri http://localhost:9200/_template/topbeat?pretty

Get-Process : A positional parameter cannot be found that accepts argument 'Invoke-WebRequest'.
At line:1 char:1

  • PS C:\Users\Admin\Downloads\topbeat-1.1.0-windows> Invoke-WebRequest ...
  •   + CategoryInfo          : InvalidArgument: (:) [Get-Process], ParameterBindingException
      + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

(Andrew Kroh) #2

What operating system?

What PowerShell version? Use this to check: PS C:\> $PSVersionTable.PSVersion


PS C:\Users\Admin> $PSVersionTable.PSVersion

Major Minor Build Revision

5 0 10240 16384


Solved the problem by restarting the machine

(Andrew Kroh) #5

Glad to hear that because I was out of ideas. :smile:

(system) #6