VPN Server not giving out addresses via DHCP

Modified on Wed, 15 Dec, 2021 at 9:12 AM

1-Add this registry key on the VPN VM:

 

reg add "HKLM\SYSTEM\CurrentControlSet\Services\Dhcp" /v RequiredPrivileges /d "SeChangeNotifyPrivilege"\0"SeCreateGlobalPrivilege"\0"SeImpersonatePrivilege"\0 /t REG_MULTI_SZ /f

2-Restart the DHCP client service :-

 

$dhcpPID = $( tasklist /svc /fo CSV | findstr Dhcp).split(",")[1].replace('"','')

 

stop-process $dhcpPID -force

 

Start-Service Dhcp

 

3-Restart the Remote Connection Service.

If you want, you can skip step 2 & 3 and just reboot the RRAS server after step 1.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article