Tutorial Cannot Work

Tried the tutorial in
https://www.elastic.co/guide/en/beats/topbeat/current/topbeat-getting-started.html

Keep getting the error after

Command:
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

Error:
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

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

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