JUP agent - Windows install
===========================

Prerequisites:
  - Windows 10/11 x64

  - usbip-win2 for client mode (attaching remote USB devices):
    https://github.com/vadimgrn/usbip-win2
    Download and install the MSI. Reboot may be required.
    After install, verify in an elevated PowerShell:
      usbip --version

  - OR usbipd-win for server mode (sharing THIS machine's USB to others):
    https://github.com/dorssel/usbipd-win
    (Not needed for the typical "attach a remote USB into this VM" use case.)

Install:
  1. Unzip this folder somewhere (e.g. your Downloads).
  2. Open PowerShell as Administrator.
  3. cd into this folder.
  4. Run:  .\install-service.ps1

     If you get an execution policy error, run once:
       Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

  5. Edit C:\ProgramData\jup\config.yaml - set mode, name, backend.
  6. Start the service:  Start-Service jup-agent
  7. Tail logs:          Get-Content -Tail 50 -Wait C:\ProgramData\jup\jup-agent.log

Uninstall:
  .\uninstall-service.ps1
