-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xIEEsc | xUac: Error thrown during MOF compilation since version 1.5.0 #34
Comments
Not sure why that happened, the module output looks the same to me. 🤔 Both these resources are pending deprecation, but happy to merge a fix if anyone can debug and send in a PR (before deprecation). Try the new resources: The resource xIEEsc has been refactored and merged to the module ComputerManagementDsc as IEEnhancedSecurityConfiguration will be part of the v8.0.0-preview0001 in the PowerShell Gallery (hopefully in a few minutes). Here is the release notes so far at least: UserAccountControl will be released as soon as it is merged. Report any findings to the repository https://github.com/dsccommunity/ComputerManagementDsc |
I can only see two things that could potentially do this. Either this that the below was added to the module manifest in v1.5.0, or the change to semantic version. Can someone verify if removing the below from the module manifest in 1.5.0 solve the compilation issue?
|
I found the reason. PS> Get-DscResource -Module xSystemSecurity | Where-Object -Property Version -EQ '1.5.0'
ImplementedAs Name ModuleName Version Properties
------------- ---- ---------- ------- ----------
PowerShell xFileSystemAccessRule xSystemSecurity 1.5.0 {Identity, Path, DependsOn, Ensure...}
PS> |
But the resource code is present in the downloaded module right? Could you please also remove the property I mention above from the module manifest and see if finds the resources after that? 🤔 |
So it seems these lines need to be reverted back to
|
If someone can send in a PR with this change it would be much appreciated. No unit tests needed. |
Those resources are now available in the ComputerManagementDSC module v8.0.0 which has just been released. |
Details of the scenario you tried and the problem that is occurring
I am already using the module since version 1.4.0.0
I didn't change the configuration, and only upgraded the module to version 1.5.0.
Since then the MOF compilation is throwing an error.
When I change the module version back to 1.4.0 (without any other change), the compilation is working fine again.
Verbose logs showing the problem
Or when I comment out the xIEEsc section I have the following error message:
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Here is the Datum configuration:
xSystemSecurity: xIEEsc: - UserRole: Administrators IsEnabled: False xUac: Setting: AlwaysNotify
The operating system the target node is running
NA because the problem appears during the creation of the MOF.
Version and build of PowerShell the target node is running
NA because the problem appears during the creation of the MOF.
Version of the DSC module that was used
1.5.0
The text was updated successfully, but these errors were encountered: