TopicActive Directory →
⌚ About 2 min read
Force a Windows station to reapply user group and computer strategies.
Avant de commencer : adaptez toujours les commandes et manipulations à votre environnement. Sur un système de production, prévoyez une backup ou un retour arrière lorsque l’action peut modifier la configuration.
Étapes à suivre
-
1
Open a terminal.
Open Windows Terminal.
-
2
Run gpupdate.
Run gpupdate /force.
-
3
Accept restart if requested.
Some computer strategies require restarting.
-
4
Monitoring strategies.
Use gp - 2002 /r or generate an HTML report.
Commands utiles
gpupdate /force.
gp - 2002 /r.
gp - 2002 /h C: -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -/ -// -/ -/ -/ -/ -/ -// -/ -/ -/ -/ -/ -/ -// -//// -/ -/ -/ -/ -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
À retenir
- An incorrect GPO will not be corrected by gpupdate: first, it must be corrected.
- Also check DNS resolution and the access to the domain controller.
GPO: distinguish refresh, resulting set and non-application cause
Technical checkpoints
Useful report
Generate an HTML report on the affected computer and inspect Applied GPOs, Denied GPOs and denial reason.
gpupdate /force
gpresult /h C:\Temp\gpresult.htmlTopic-specific pitfalls
- Repeated gpupdate does not fix security/WMI filtering or SYSVOL problems.
- Some policies require logon or reboot.
How to validate
- gpresult shows the expected GPO as applied without unexpected denial.
- The effective setting is verified in the registry, security subsystem or relevant application.