Giter Site home page Giter Site logo

admxpolicy's Introduction

AdmxPolicy

Get Group Policy information from ADMX files.

How to Install

You can install it from PowerShell Gallery.

Install-Module -Name AdmxPolicy -Scope CurrentUser

Usage

Get-AdmxFileInfo

Get ADMX file meta information.

Get-AdmxFileInfo -FilePath [ADMX file path]

e.g.

PS C:\> Get-AdmxFileInfo -FilePath "C:\Windows\PolicyDefinitions\ActiveXInstallService.admx" | Format-List


Name        : ActiveXInstallService.admx
DisplayName : ActiveX Installer Service
Description : 承認されたインストール サイトから ActiveX コントロールをインストールする
Categories  : {AxInstSv}

Get-AdmxPolicies

Get group policy information from an ADMX file.

Get-AdmxPolicies -FilePath [ADMX file path]

e.g.

PS C:\> Get-AdmxPolicies -FilePath "C:\Windows\PolicyDefinitions\ActiveXInstallService.admx" | Select-Object -First 1 | Format-List


Name           : ApprovedActiveXInstallSites
DisplayName    : ActiveX コントロールの承認されたインストール サイト
ExplainText    : このポリシー設定では、組織の標準ユーザーがコンピューターに ActiveX コントロールをインストールする際に使用できる ActiveX インストール サイトを
                 決定します。この設定が有効になっている場合、管理者は、ホスト URL で指定された、承認された Activex インストール サイトの一覧を作成できます。

                 この設定を有効にした場合、管理者は、ホスト URL で指定された、承認された ActiveX インストール サイトの一覧を作成できます。

                 このポリシー設定を無効にした場合、または構成しなかった場合は、ActiveX コントロールのインストール前に、管理者資格情報を求めるダイアログが表示
                 されます。

                 注: ホスト URL を指定する際に、ワイルドカード文字は使用できません。


RegistryType   : LocalMachine
RegistryRootKeys : {HKEY_LOCAL_MACHINE}
RegistryPath   : SOFTWARE\Policies\Microsoft\Windows\AxInstaller
ValueInfo      : AdmxPolicy.PolicyValueInfo
FileName       : ActiveXInstallService.admx

Get group policy registry values.

e.g.

PS C:\> $policy = Get-AdmxPolicies -FilePath "C:\Windows\PolicyDefinitions\ActiveXInstallService.admx" | Select-Object -First 1
PS C:\> $policy.Name
ApprovedActiveXInstallSites
PS C:\> $policy.DisplayName
ActiveX コントロールの承認されたインストール サイト
PS C:\> $policy.RegistryType
LocalMachine
PS C:\> $policy.RegistryRootKeys
HKEY_LOCAL_MACHINE
PS C:\> $policy.RegistryPSDrives
HKLM:
PS C:\> $policy.RegistryPath
SOFTWARE\Policies\Microsoft\Windows\AxInstaller
PS C:\> $policy.ValueInfo

RegistryValueName EnabledValue DisabledValue HasEnabledList HasDisabledList HasElements
----------------- ------------ ------------- -------------- --------------- -----------
ApprovedList      Decimal : 1  Decimal : 0   False          False           True


PS C:\> $policy.ValueInfo.Elements.Items

ElementType Id                              RegistryPath                                                                RegistryValueName
----------- --                              ------------                                                                -----------------
List        ApprovedActiveXInstallSiteslist SOFTWARE\Policies\Microsoft\Windows\AxInstaller\ApprovedActiveXInstallSites

License

MIT

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.