Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Update HOSTS file on devices inside a specific OU

$
0
0

This is posted in another Microsoft Forum but I thought this would be a great place to ask the question as well.

We have a group of mobile computers that are in the field. These computers are restricted from going onto the internet because they have a data card which is VPN'ed into our network. When we perform updates to the software that manages the route for these people, it sends them to a website to get the updates. We have recreated that structure internally.

The goal here is to have these computers be redirected to our internal site when they accept the update request. They are on thier own OU in AD so I am trying to use a GPO to accomplish this. The following is what I have tried: Xcopy.exe /D /y \\domainname.local\SYSVOL\domainname.Local\scripts\Host\">\\domainname.local\SYSVOL\domainname.Local\scripts\Host\*.*""C:\windows\system32\drivers\etc"

If I copy this into the cmd window of the device it works. When I run this using the GPO I recieve a message in event viewer that says File not found. The GPO gives the local user full rights to the folder so I don't this its a permission issue.  Currently I run this as a GPO under the USER OU and use the Computer Configuration\windows settings\startup script to run the script.

I can't use DNS because I want all other computers to go outside to get the updates as they have internet access. Any help would greatly be accepted, I have been trying different things for 2 days and now I just want it to go away.


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>