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

Windows Server 2019 V2R1 V-205763 generating an exception #827

Closed
BlackbirdSR71Est opened this issue Jan 22, 2021 · 2 comments · Fixed by #968
Closed

Windows Server 2019 V2R1 V-205763 generating an exception #827

BlackbirdSR71Est opened this issue Jan 22, 2021 · 2 comments · Fixed by #968
Assignees
Labels
bug Something isn't working
Milestone

Comments

@BlackbirdSR71Est
Copy link

Hi,

I have a system that some users are being assigned in the policy "Lock pages in memory" under User Rights Assignment and this probably violates the STIG rule. My expectation is that the DSC should flag this as non-compliant after the application but instead I am getting a "failed" status in the Azure portal. The error message being returned is:

PowerShell DSC resource MSFT_UserRightsAssignment failed to execute Set-TargetResource functionality with error message: Could not convert Identity: NULL to SID

Details:

{
"Exception": {
"Message": "PowerShell DSC resource MSFT_UserRightsAssignment failed to execute Set-TargetResource functionality with error message: Could not convert Identity: NULL to SID ",
"Data": {

                           },
                  "InnerException":  {
                                         "ErrorRecord":  "Could not convert Identity: NULL to SID",
                                         "WasThrownFromThrowStatement":  true,
                                         "Message":  "Could not convert Identity: NULL to SID",
                                         "Data":  "System.Collections.ListDictionaryInternal",
                                         "InnerException":  "System.Management.Automation.RuntimeException: Could not convert Identity: NULL to SID",
                                         "TargetSite":  "System.Collections.ObjectModel.Collection`1[System.Management.Automation.PSObject] Invoke(System.Collections.IEnumerable)",
                                         "StackTrace":  "   at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)\r\n   at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)\r\n   at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)\r\n   at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\r\n   at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\r\n   at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)\r\n   at Microsoft.PowerShell.DesiredStateConfiguration.Internal.ResourceProviderAdapter.ExecuteCommand(PowerShell powerShell, ResourceModuleInfo resInfo, String operationCmd, List`1 acceptedProperties, CimInstance nonResourcePropeties, CimInstance resourceConfiguration, LCMDebugMode debugMode, PSInvocationSettings pSInvocationSettings, UInt32\u0026 resultStatusHandle, Collection`1\u0026 result, ErrorRecord\u0026 errorRecord, PSModuleInfo localRunSpaceModuleInfo)",
                                         "HelpLink":  null,
                                         "Source":  "System.Management.Automation",
                                         "HResult":  -2146233087
                                     },
                  "TargetSite":  null,
                  "StackTrace":  null,
                  "HelpLink":  null,
                  "Source":  null,
                  "HResult":  -2146233079
              },
"TargetObject":  null,
"CategoryInfo":  {
                     "Category":  7,
                     "Activity":  "",
                     "Reason":  "InvalidOperationException",
                     "TargetName":  "",
                     "TargetType":  ""
                 },
"FullyQualifiedErrorId":  "ProviderOperationExecutionFailure",
"ErrorDetails":  null,
"InvocationInfo":  null,
"ScriptStackTrace":  null,
"PipelineIterationInfo":  [

                          ]

}

@erjenkin
Copy link
Contributor

Hello @BlackbirdSR71Est ,

Can you please provide us a copy of your config and the offending rule, so we can investigate further?

Thank you,

Eric

@BlackbirdSR71Est
Copy link
Author

Eric,

Here is the organization file we are using and the Powershell script we use to generate the MOF file. After the MOF file is generated, it will then uploaded to Azure portal and apply to the Windows 2019 server. The error happens when the rule V-205763 is being violated. See https://www.stigviewer.com/stig/microsoft_windows_server_2019/2020-10-26/finding/V-205763.
PowerSTIG Bug Report.zip
Hope this help

@erjenkin erjenkin self-assigned this Aug 24, 2021
@erjenkin erjenkin added this to the 4.11.0 milestone Aug 24, 2021
@erjenkin erjenkin added the bug Something isn't working label Aug 24, 2021
@erjenkin erjenkin linked a pull request Aug 24, 2021 that will close this issue
5 tasks
@erjenkin erjenkin linked a pull request Aug 24, 2021 that will close this issue
5 tasks
@erjenkin erjenkin assigned bcwilhite and unassigned erjenkin Aug 27, 2021
@erjenkin erjenkin closed this as completed Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants