Code Monkey home page Code Monkey logo

psgpotools's People

Contributors

laurentlienhard avatar nicolasbn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

psgpotools's Issues

Find the best representation of option parameter

In parameter of GPO, you have options like this :
image

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

Add CI to :

  • Build the module
  • Test the module
  • Post the module to PowerShellGallery

Update Documentation

To make the contribution easier :

  • Translate the comment to english.
  • Translate the README.md to English
  • Add Help section to functions

Get-PSGPOPolicy Scope

Prerequisites

Put an X between the brackets on each line to confirm you have completed them:

  • The issue is still present in the latest version of the module.
  • The issue has not been previously reported.

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

Find default comportment in Value property of PSGPOToolsRegistry

Prerequisites

Put an X between the brackets on each line to confirm you have completed them:

  • The issue is still present in the latest version of the module.
  • The issue has not been previously reported.

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 à lAssistant Composants
DisplayName : Aller directement à lAssistant Composants
Description : Empêche les utilisateurs demployer 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 nont 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 lorsquil y a des services système non configurés.
              Si vous activez ce paramètre, «Installer les services» napparaît jamais.

              Ce paramètre nempêche pas les utilisateurs demployer dautres outils ou méthodes pour configurer des services.

              Remarque: lorsque «Installer les services» napparaît pas, lutilisateur peut démarrer immédiatement lAssistant 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                     lAssistant, 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 lAssistant 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

  • Operating System: [Windows]
  • Operating System Version (Version and Build, eg Windows 10 Build 1709): Windows 10 1909
  • PowerShell Version: [Use Get-Host] : V5.1
  • Architecture for PowerShell Session: [64bit]
  • Other loaded modules: [Include the output of Get-Module]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.