D
D
djalin2021-03-16 11:14:54
Active Directory
djalin, 2021-03-16 11:14:54

How to apply group policy once?

Hello, please tell me how to apply group policy on a computer only once, for example, when entering a domain? Or, for example, just apply and no longer apply.

The scheduler is not very suitable - because the PC can be turned off and on in a month - when the task in the scheduler has long been stitched.

There is an idea about moving a PC to another group, but how to implement this?

If there are other options only glad.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-03-16
@SignFinder

Add a condition to the beginning of the script - check for the presence of a certain file, or an entry in the registry and exit if the entry is present.
Well, at the end of the script, the creation of this entry.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question