GPRegistryPolicy icon indicating copy to clipboard operation
GPRegistryPolicy copied to clipboard

Fix Unapproved Verbs and Nested Module Loading Consistency

Open X-Guardian opened this issue 5 years ago • 1 comments

Change the following exported functions to use approved verbs

Old Function Name New Function Name
Create-RegistrySettingsEntry New-RegistrySettingsEntry
Create-GPRegistryPolicyFile New-GPRegistryPolicyFile
Parse-PolFile Import-PolFile
Append-RegistryPolicies Add-RegistryPolicies

Aliases have been added for the old names, so current usage should be unaffected.

Change the Module import to Consistently use NestedModules

Currently each of the nested modules is loaded using a different method. Changed this to both be specified as NestedModules in the main module psd file, and removed the unnecessary Export-ModuleMember commands from each module, as the functions to export are listed in the main module psd file.

X-Guardian avatar Mar 23 '19 17:03 X-Guardian

Can someone review this PR?

X-Guardian avatar Jun 23 '19 12:06 X-Guardian