nicolasbn / psgpotools Goto Github PK
View Code? Open in Web Editor NEWModule for interact with ADMX and ADML files.
License: MIT License
Module for interact with ADMX and ADML files.
License: MIT License
In parameter of GPO, you have options like this :
In ADMX, for match the presentation, there are the champ presentation, like that :
<policy name="EngagedRestartTransitionSchedule"
class="Machine"
displayName="$(string.EngagedRestartTransitionSchedule_Title)"
explainText="$(string.EngagedRestartTransitionSchedule_Help)"
key="Software\Policies\Microsoft\Windows\WindowsUpdate"
presentation="$(presentation.EngagedRestartTransitionSchedule_Title)"
In ADML, you have the texts :
<presentation id="EngagedRestartTransitionSchedule_Title">
<text>Transition : Specify the timing before transitioning from Auto-restart to Engaged restart (pending user schedule).</text>
<text>Snooze : Specify snooze for Engaged restart reminder notifications.</text>
<text>Deadline : Specify the deadline before a pending restart will automatically be executed outside of active hours.</text>
<text></text>
<text>For Quality Updates : </text>
<dropdownList refId="EngagedRestartTransitionSchedule" noSort="true" defaultItem="7">Transition (days) : </dropdownList>
<dropdownList refId="EngagedRestartSnoozeSchedule" noSort="true" defaultItem="2">Snooze (days) : </dropdownList>
<dropdownList refId="EngagedRestartDeadline" noSort="true" defaultItem="0">Deadline (days) : </dropdownList>
<text></text>
<text>For Feature Updates : </text>
<dropdownList refId="EngagedRestartTransitionScheduleForFeatureUpdates" noSort="true" defaultItem="7">Transition (days) : </dropdownList>
<dropdownList refId="EngagedRestartSnoozeScheduleForFeatureUpdates" noSort="true" defaultItem="2">Snooze (days) : </dropdownList>
<dropdownList refId="EngagedRestartDeadlineForFeatureUpdates" noSort="true" defaultItem="0">Deadline (days) : </dropdownList>
</presentation>
How present this in PowerShell consol ?
Add CI to :
To make the contribution easier :
Prerequisites
Put an X between the brackets on each line to confirm you have completed them:
Expected behavior
When you try there is parameter who appear in Both Scope Machine and User we need to find them an then create a new ValidateSet Both
Prerequisites
Put an X between the brackets on each line to confirm you have completed them:
Describe the bug
When policy hasn't Options and Value, the Registry property hasn't Value.
To Reproduce
Many examples in AddRemovePrograms.admx file.
Expected behavior
We need to test what de value is present in registry when this policy type is actived.
Screenshots or Transcripts
PS > Initialize-PSGPOAdmx -UICulture fr-FR
PS > $GPO = Get-PSGPOPolicy
PS > $gpo[10] | fl
Path : User\Panneau de configuration\Ajouter ou supprimer des programmes\
Name : Aller directement à l’Assistant Composants
DisplayName : Aller directement à l’Assistant Composants
Description : Empêche les utilisateurs d’employer Ajouter ou supprimer des programmes pour configurer des services installés.
Ce paramètre supprime la section «Installer les services» de la page Ajouter ou supprimer des composants Windows. La section «Installer les services»
affiche une liste des services système qui n’ont pas été configurés et offre aux utilisateurs un accès facile aux outils de configuration.
Si vous désactivez ce paramètre ou ne le configurez pas, «Installer les services» apparaît uniquement lorsqu’il y a des services système non configurés.
Si vous activez ce paramètre, «Installer les services» n’apparaît jamais.
Ce paramètre n’empêche pas les utilisateurs d’employer d’autres outils ou méthodes pour configurer des services.
Remarque: lorsque «Installer les services» n’apparaît pas, l’utilisateur peut démarrer immédiatement l’Assistant Composants Windows en cliquant sur le bouton Ajouter ou supprimer des composants Windows. Puisque la seule option restante sur la page Ajouter ou supprimer des composants Windows démarre l’Assistant, cette option est sélectionnée automatiquement et la page est ignorée.
Pour supprimer «Installer les services» et empêcher le démarrage de l’Assistant Composants Windows, activez le paramètre «Masquer la page Ajouter ou
supprimer des composants Windows». Si le paramètre «Masquer la page Ajouter ou supprimer des composants Windows» est activé, ce paramètre est ignoré. ID : NoServices
Options : {}
Registry : {NoServices}
Scope : User
FileName : AddRemovePrograms.admx
PS > $gpo[10].registry
Path Key Value DefaultValue
---- --- ----- ------------
{HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall} NoServices {Enable, Disable}
PS > $gpo[10].registry.value
Name Value
---- -----
Enable
Disable
System Details
Get-Host
] : V5.1Get-Module
]A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.