O
O
oskey_one2018-09-12 12:23:52
System administration
oskey_one, 2018-09-12 12:23:52

Run batnik as administrator via GPO?

Good day, people. I need your help. in general, users need to add ipshnik to the hosts file using GPO. The script is available, but the script only runs as an administrator. I created a group policy at the computer level, but the result is zero.
Maybe someone faced a similar problem. Thanks for any help. Of good)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-09-12
@Tabletko

Why exactly in hosts? What problem do you want to solve with this? I will assume that if there is a GPO, then there is a domain. And if so, then there is a DNS server. Maybe it's better to make this entry there and not bother with the administration of the hosts file on all computers?

P
parfenov_sk, 2018-09-12
@parfenov_sk

It is better, of course, to change DNS, as Dmitry tells you.
But you can simply replace the file through the GPO:
Computer Configuration—Preferences—Windows Settings—Files
' Replace ' from the balls with the file file %SystemDir%\drivers\etc\hosts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question