Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

add a line in host files of domain joined workstations.

I want to add a line to the host file of all domain joined workstation.  

I have tried out GPP file>update but I have not been getting any success.

Please advise if someone know a better way to do this.

Thanks.
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

I'd rather add the required data to DNS...

If thats no option you could run a machine startup script via GPO.
See https://powershell.org/forums/topic/editing-hosts-file-with-startup-script-through-gpo/ for a Powershell example.
HTH
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nav2567

ASKER

Sorry, I forgot to mention, for a very specific reason, DNS zone of a domain cannot be used temporary.

We must update the host file of every machine in some other way.