# Pritunl Windows client fails to detect that WireGuard is installed

**URL:** <https://forum.pritunl.com/t/pritunl-windows-client-fails-to-detect-that-wireguard-is-installed/866>\
**Category:** Pritunl\
**Tags:** pritunl-client\
**Created:** [March 16, 2023, 11:05am UTC](https://forum.pritunl.com/t/pritunl-windows-client-fails-to-detect-that-wireguard-is-installed/866 "2023-03-16T11:05:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PerH](https://forum.pritunl.com/user_avatar/forum.pritunl.com/perh/32/357_2.png) [@PerH](https://forum.pritunl.com/u/PerH)\
**Post date:** [March 16, 2023, 11:05am UTC](https://forum.pritunl.com/t/pritunl-windows-client-fails-to-detect-that-wireguard-is-installed/866/1 "2023-03-16T11:05:54Z")

</div>

I’ve had several users that has had trouble getting the client to work with wireguard.  
They install Wireguard and then the pritunl client, but when they import a profile they only see a connect button not the OpenVPN and wireguard button. The issues has eventually been solved doing a bunch of reinstalls and reboots.

How do pritunl detect if wireguard is installed?  
Is there a way to troubleshoot this more effectively?

Cheers,

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [March 16, 2023, 6:05pm UTC](https://forum.pritunl.com/t/pritunl-windows-client-fails-to-detect-that-wireguard-is-installed/866/2 "2023-03-16T18:05:11Z")

</div>

The `GetWgPath()` function in [**profile/utils.go**](https://github.com/pritunl/pritunl-client-electron/blob/master/service/profile/utils.go#L29) determines if the client has WireGuard. On Windows it looks for `wg.exe` in the paths. This may be fixed by restarting the computer after installing WireGuard.

---

<div class="post-metadata">

**Author:** ![nathanielvarona](https://forum.pritunl.com/user_avatar/forum.pritunl.com/nathanielvarona/32/571_2.png) [@nathanielvarona](https://forum.pritunl.com/u/nathanielvarona)\
**Post date:** [September 5, 2023, 5:54am UTC](https://forum.pritunl.com/t/pritunl-windows-client-fails-to-detect-that-wireguard-is-installed/866/3 "2023-09-05T05:54:31Z")

</div>

I had this kind of [issue](https://github.com/nathanielvarona/pritunl-client-github-action/issues/25) for the GitHub Project [Pritunl Client GitHub Action](https://github.com/nathanielvarona/pritunl-client-github-action) a few weeks ago, lately, I found the quick and easiest solution without restarting the whole machine is to restart the `pritunl` Windows Service.

WireGuard installation updates to the `System Environment Variables` path take effect immediately, and it should be available in your Windows Machine. The `pritunl` service was only unable to determine it.

**Terminal: Using PowerShell:**

```auto
powershell.exe -Command "Invoke-Command -ScriptBlock { net stop 'pritunl' ; net start 'pritunl' }"
## Or
powershell.exe -Command "Invoke-Command -ScriptBlock { sc.exe stop 'pritunl' ; sc.exe start 'pritunl' }"
## Or
powershell.exe -Command "Invoke-Command -ScriptBlock { Restart-Service -Force -Name 'pritunl' }"

```

**GUI: Windows Services:**

1. Open the Start menu, type “Services” and select “Services” App
2. Find the `Pritunl Client Helper Service` with a service name `pritunl`
3. Then `Restart` the service.

**Idea:**  
It would also be great to have this `Reload Service` Option available to the Client in future releases.

 ![Service Reload Option](https://forum-static.pritunl.com/original/1X/bc128320c9419da54f0a2de4f7ac240903ec3334.png)
