Skip to content

Instantly share code, notes, and snippets.

@brahimmachkouri
Created March 18, 2019 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brahimmachkouri/43ddc5b3aab4a38c91731d9cbf4d24c8 to your computer and use it in GitHub Desktop.
Save brahimmachkouri/43ddc5b3aab4a38c91731d9cbf4d24c8 to your computer and use it in GitHub Desktop.
Get the latest version of fusioninventory agent in Powershell
$result = (Invoke-WebRequest –Uri "https://github.com/fusioninventory/fusioninventory-agent/releases/latest" -UseBasicParsing).BaseResponse.ResponseUri.AbsolutePath.Split('/')[-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment