Forum Discussion

MarcoMangiante's avatar
MarcoMangiante
Iron Contributor
Jun 17, 2020

Group Policy via vpn connection

Hello,

 

I created on Windows Server 2016 a group policy to distribute a root CA to my employee notebooks; I tried it in a test lab and it does work, but the test is with a dc vm and a workstation vm inside the same network.

All the notebooks now are in the employees house so I tried to test distribute the gpo via the vpn connection to my office network, but it seems that the computer policy is not updated; if I do a simple gpupdate /force I obtain this:

 

Computer policy could not be updated successfully. The following errors were encountered:

The processing of Group Policy failed because of lack of network connectivity to a domain controller. This may be a transient condition. A success message would be generated once the machine gets connected to the domain controller and Group Policy has successfully processed. If you do not see a success message for several hours, then contact your administrator.
User Policy could not be updated successfully. The following errors were encountered:

The processing of Group Policy failed because of lack of network connectivity to a domain controller. This may be a transient condition. A success message would be generated once the machine gets connected to the domain controller and Group Policy has successfully processed. If you do not see a success message for several hours, then contact your administrator.

To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to access information about Group Policy results.

 

Where to start the troubleshooting? First of all: is it possible to distribute computer gpo via vpn?

 

Marco

  • MuazOnline's avatar
    MuazOnline
    Copper Contributor
    Hi Marco
    my experience with this was to setup VPN then remote as admin (since end user profile doesn't know anything yet about your VPN) assuming you have remoting solution on end user's computer.
    then apply gpupdate /force then switch user while VPN still connected and have user login and finally do gpupdatep /r to see if new gpos are applied
    • MarcoMangiante's avatar
      MarcoMangiante
      Iron Contributor

      MuazOnline

       


      MuazOnline wrote:
      Hi Marco
      my experience with this was to setup VPN then remote as admin (since end user profile doesn't know anything yet about your VPN) assuming you have remoting solution on end user's computer.
      then apply gpupdate /force then switch user while VPN still connected and have user login and finally do gpupdatep /r to see if new gpos are applied

      so you suggest to access the employee computer, when the vpn is up, via remote desktop accessing with domain administrator account, then on domain controller apply the policy (gpupdate /force) and switch on the computer and let the user login: right? I'll try this.

       


      (since end user profile doesn't know anything yet about your VPN) 

      when you say this, you reference user profile on client notebook or in AD?

      I also tried to configure the vpn so it is possible to connect to the vpn at login but have no luck, I have same error.

       

      I've also seen that, sometimes (and sincerely I don't know at this time to replicate this), if in Group Policy Management in AD I click on the OU where the policy is linked, and choose Group Policy Update and try to apply, the policy is correctly executed.. but on the notebook there is no corresponding result.

       

      Any idea is appreciated.

    • MarcoMangiante's avatar
      MarcoMangiante
      Iron Contributor

      Hello,

      I've done some testing with a virtual machine and also attaching my tablet to the company AD: after some restart and trial to apply the Group Policy, it seems that something was working using the VPN with my account (never used the domain admin in VPN); however, there are things that I don't understand so well so I can replicate the procedure at all; where I can find on doc.microsoft.com documentation about the Group Policy in Windows Server 2016: I tried to do a research but without luck.

Resources