Skip to content
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

A duplicate resource identifier #5

Open
NFCES opened this issue Oct 28, 2020 · 1 comment
Open

A duplicate resource identifier #5

NFCES opened this issue Oct 28, 2020 · 1 comment

Comments

@NFCES
Copy link

NFCES commented Oct 28, 2020

I have been searching everywhere trying to understand how this works and have not found any clue. When I run this script I get the following error and MOF files are not created. Please advise.

PSDesiredStateConfiguration\Registry : A duplicate resource identifier '[Registry]AllowCrossDeviceClipboard' was found while
processing the specification for node 'localhost'. Change the name of this resource so that it is unique within the node
specification.
At C:\scripts\CIS_WindowsServer2019_v110.ps1:2004 char:8

  •    Registry 'AllowCrossDeviceClipboard' {
    
  •    ~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Write-Error], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : DuplicateResourceIdInNodeStatement,PsDesiredStateConfiguration\Registry

Compilation errors occurred while processing configuration 'CIS_WindowsServer2019_v110'. Please review the errors reported in error
stream and modify your configuration code appropriately.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:3917 char:5

  • throw $ErrorRecord
    
  • ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (CIS_WindowsServer2019_v110:String) [], InvalidOperationException
    • FullyQualifiedErrorId : FailToProcessConfiguration
@channyein87
Copy link

This issue is mentioned in the issue #2 for potential fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants