From a security point of view, how do I know the file that is being imported is not modified.
A filehash check would be a nice addition to this great module.
For example run get-filehash against "c:\GPO\domainSysvol\GPO\Machine\registry.pol". And include the Hash result in the resource
`Configuration Sample_RegistryPolicy
{
param
(
[String] $NodeName = 'localhost'
)
Import-DscResource -ModuleName GPRegistryPolicy
Node $NodeName
{
RegistryPolicy GPPolicy
{
Path = "c:\GPO\domainSysvol\GPO\Machine\registry.pol"
FileHash = '9A7C892496CFAA5CF8CC2BDDCC255E15CEDF95997F87FF8913E5DB7EB17A006B'
}
}
}`