Skip to content

ERROR Error: Operation: Failed to parse JSON from 'get': executable = 'powershell' stdout = 'WARNING: LCM state is changed by non-DSC operations. If you wish to change the state of LCM, please use Remove-DscConfigurationDocument cmdlet #1098

@bi-inf-user

Description

@bi-inf-user

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

When I set a configuration using the windows powershell adapter, the output cannot be parsed due to a warning written to stdout.
Seems to be related to #833 and the linked issues there.

For this specific Warning, i'd like to ask: Is there a way to configure the LCM to allow state changed from outside?

Steps to reproduce

  1. Install the xComputerManagement Module
  2. Create the following Document
  "$schema": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/10/config/document.json",
    "resources": [
    {
      "name": "ComputerName",
      "type": "xComputerManagement/xComputer",
      "properties": {
        "Name": "myservernamegoeshere"
      }
    }
  ]
}
  1. run dsc config get -f <pathToConfigFile>\001.computername.dsc.config.json -> works
  2. run dsc config test -f <pathToConfigFile>\001.computername.dsc.config.json -> works
  3. run dsc config set -f <pathToConfigFile>\001.computername.dsc.config.json -> parsing output fails due to a warning in stdout

Expected behavior

`dsc config set -f <pathToConfigFile>\001.computername.dsc.config.json` shows parsed output

Actual behavior

C:\Users\Administrator> dsc config set -f C:\Users\Administrator\Desktop\DSC\DSC\UseCases\M123\test\001.computername.dsc.config.json
2025-09-10T05:37:17.346533Z ERROR Error: Operation: Failed to parse JSON from 'get': executable = 'powershell' stdout = 'WARNING: LCM state is changed by non-DSC operations. If you wish to change the state of LCM, please use
Remove-DscConfigurationDocument cmdlet.
{"result":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Description":"","CurrentOU":null,"ResourceId":null,"PsDscRunAsCredential":null,"Name":"SRV012","Credential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"PSComputerName":"localhost","ConfigurationName":null,"DependsOn":null,"SourceInfo":null,"JoinOU":"","ModuleVersion":"4.1.0.0","ModuleName":"xComputerManagement","UnjoinCredential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"WorkGroupName":"WORKGROUP","DomainName":""}}]}
' stderr = '' -> expected value at line 1 column 1

Error details

PS C:\Users\Administrator> dsc -l debug config set -f C:\Users\Administrator\Desktop\DSC\DSC\UseCases\M123\test\001.computername.dsc.config.json
2025-09-10T06:27:02.577768Z  INFO dsc::util: 393: Trace-level is Debug
2025-09-10T06:27:02.578411Z DEBUG dsc: 44: Running DSC version: 3.1.1
2025-09-10T06:27:02.578960Z DEBUG dsc::util: 534: Setting DSC_CONFIG_ROOT env var as 'C:\Users\Administrator\Desktop\DSC\DSC\UseCases\M123\test'
2025-09-10T06:27:02.579431Z DEBUG dsc::util: 441: Reading input from file C:\Users\Administrator\Desktop\DSC\DSC\UseCases\M123\test\001.computername.dsc.config.json
2025-09-10T06:27:02.581157Z DEBUG dsc_lib::discovery::command_discovery: 472: Searching for resources: ["xComputerManagement/xComputer"]
2025-09-10T06:27:02.581659Z  INFO dsc_lib::discovery::command_discovery: 195: Discovering 'Resource' using filter: *
2025-09-10T06:27:02.582041Z  INFO dsc_lib::discovery::command_discovery: 195: Discovering 'Extension' using filter: *
2025-09-10T06:27:02.582388Z DEBUG dsc_lib::discovery::command_discovery: 203: Using regex ^.*?$ as filter for adapter name
2025-09-10T06:27:02.584505Z DEBUG dsc_lib::util: 90: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc_default.settings.json
2025-09-10T06:27:02.585568Z DEBUG dsc_lib::util: 100: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc.settings.json
2025-09-10T06:27:02.586796Z DEBUG dsc_lib::util: 114: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-09-10T06:27:02.587568Z DEBUG dsc_lib::discovery::command_discovery: 135: Appending PATH to resourcePath
2025-09-10T06:27:02.588486Z DEBUG dsc_lib::discovery::command_discovery: 178: Using Resource Path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PowerShell\7\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe
2025-09-10T06:27:02.688164Z DEBUG dsc_lib::discovery::command_discovery: 203: Using regex ^.*?$ as filter for adapter name
2025-09-10T06:27:02.690910Z DEBUG dsc_lib::util: 90: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc_default.settings.json
2025-09-10T06:27:02.692967Z DEBUG dsc_lib::util: 100: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc.settings.json
2025-09-10T06:27:02.694155Z DEBUG dsc_lib::util: 114: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-09-10T06:27:02.694868Z DEBUG dsc_lib::discovery::command_discovery: 135: Appending PATH to resourcePath
2025-09-10T06:27:02.695797Z DEBUG dsc_lib::discovery::command_discovery: 178: Using Resource Path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PowerShell\7\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe
2025-09-10T06:27:02.809138Z DEBUG dsc_lib::discovery::command_discovery: 305: Calling extension 'Microsoft.Windows.Appx/Discover' to discover resources
2025-09-10T06:27:02.810308Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-NoProfile", "-Command", "./appx-discover.ps1"])
2025-09-10T06:27:03.572582Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 8016 exited with code 0
2025-09-10T06:27:03.637498Z  WARN dsc_lib::discovery::command_discovery: 729: Executable 'sshdconfig' not found for operation 'export' for resource 'Microsoft.OpenSSH.SSHD/sshd_config'
2025-09-10T06:27:03.639238Z  WARN dsc_lib::discovery::command_discovery: 729: Executable 'sshdconfig' not found for operation 'schema' for resource 'Microsoft.OpenSSH.SSHD/sshd_config'
2025-09-10T06:27:03.643961Z DEBUG dsc_lib::discovery::command_discovery: 307: Extension 'Microsoft.Windows.Appx/Discover' found 27 resources
2025-09-10T06:27:03.646257Z DEBUG dsc_lib::discovery::command_discovery: 500: Found 0 matching non-adapter-based resources
2025-09-10T06:27:03.646891Z DEBUG dsc_lib::discovery::command_discovery: 811: Read 42 items into lookup table from "C:\\Users\\Administrator\\AppData\\Local\\dsc\\AdaptedResourcesLookupTable.json"
2025-09-10T06:27:03.647149Z DEBUG dsc_lib::discovery::command_discovery: 741: Lookup table found resource 'xcomputermanagement/xcomputer' in adapter 'Microsoft.Windows/WindowsPowerShell'
2025-09-10T06:27:03.647522Z DEBUG dsc_lib::discovery::command_discovery: 337: Using regex ^Microsoft\.Windows/WindowsPowerShell$ as filter for adapter name
2025-09-10T06:27:03.648175Z DEBUG dsc_lib::discovery::command_discovery: 345: Using regex ^.*?$ as filter for resource name
2025-09-10T06:27:03.649538Z  INFO dsc_lib::discovery::command_discovery: 367: Enumerating resources for adapter 'Microsoft.Windows/WindowsPowerShell'
2025-09-10T06:27:03.651406Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "./psDscAdapter/powershell.resource.ps1 List"])
2025-09-10T06:27:03.940955Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: PSVersion=5.1.26100.1
2025-09-10T06:27:03.942146Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0
2025-09-10T06:27:03.942982Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
2025-09-10T06:27:03.959130Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: jsonInput=@{}
2025-09-10T06:27:04.205724Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: Reading from Get-DscResource cache file C:\Users\Administrator\AppData\Local\dsc\WindowsPSAdapterCache.json
2025-09-10T06:27:04.253042Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: Checking cache for stale PSModulePath
2025-09-10T06:27:04.292197Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: PSModulePath diff ''
2025-09-10T06:27:04.293926Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 5668: Checking cache for stale entries
2025-09-10T06:27:05.797915Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 5668 exited with code 0
2025-09-10T06:27:05.800091Z DEBUG dsc_lib::discovery::command_discovery: 421: Adapter 'Microsoft.Windows/WindowsPowerShell' listed 41 resources
2025-09-10T06:27:05.803142Z DEBUG dsc_lib::discovery::command_discovery: 811: Read 42 items into lookup table from "C:\\Users\\Administrator\\AppData\\Local\\dsc\\AdaptedResourcesLookupTable.json"
2025-09-10T06:27:05.803952Z DEBUG dsc::subcommand: 331: No parameters specified
2025-09-10T06:27:05.804546Z  INFO dsc_lib::configure: 626: No parameters defined in configuration and no parameters input
2025-09-10T06:27:05.805098Z DEBUG dsc_lib::configure: 694: No variables defined in configuration
2025-09-10T06:27:05.805441Z DEBUG dsc_lib::configure::depends_on: 27: Getting resource invocation order
2025-09-10T06:27:05.805727Z DEBUG dsc_lib::configure::depends_on: 90: Resource invocation order: [Resource { resource_type: "xComputerManagement/xComputer", name: "ComputerName", depends_on: None, properties: Some({"Name": String("SRV01")}), metadata: None }]
2025-09-10T06:27:05.806628Z DEBUG dsc_lib::configure: 773: Invoke property expressions
2025-09-10T06:27:05.807689Z DEBUG dsc_lib::parser: 48: Parsing statement: SRV01
2025-09-10T06:27:05.808326Z DEBUG dsc_lib::parser: 72: Parsing string literal: SRV01
2025-09-10T06:27:05.808976Z DEBUG dsc_lib::configure: 340: resource_type xComputerManagement/xComputer
2025-09-10T06:27:05.809614Z DEBUG dsc_lib::configure: 363: Resource handles _exist or _exist is true
2025-09-10T06:27:05.810355Z DEBUG dsc_lib::dscresources::dscresource: 253: Invoking set for 'xComputerManagement/xComputer'
2025-09-10T06:27:05.811115Z DEBUG dsc_lib::discovery::command_discovery: 472: Searching for resources: ["Microsoft.Windows/WindowsPowerShell"]
2025-09-10T06:27:05.811828Z  INFO dsc_lib::discovery::command_discovery: 195: Discovering 'Resource' using filter: *
2025-09-10T06:27:05.812827Z  INFO dsc_lib::discovery::command_discovery: 195: Discovering 'Extension' using filter: *
2025-09-10T06:27:05.813535Z DEBUG dsc_lib::discovery::command_discovery: 203: Using regex ^.*?$ as filter for adapter name
2025-09-10T06:27:05.815040Z DEBUG dsc_lib::util: 90: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc_default.settings.json
2025-09-10T06:27:05.815853Z DEBUG dsc_lib::util: 100: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc.settings.json
2025-09-10T06:27:05.816647Z DEBUG dsc_lib::util: 114: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-09-10T06:27:05.817407Z DEBUG dsc_lib::discovery::command_discovery: 135: Appending PATH to resourcePath
2025-09-10T06:27:05.818245Z DEBUG dsc_lib::discovery::command_discovery: 178: Using Resource Path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PowerShell\7\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe
2025-09-10T06:27:05.914269Z DEBUG dsc_lib::discovery::command_discovery: 203: Using regex ^.*?$ as filter for adapter name
2025-09-10T06:27:05.916544Z DEBUG dsc_lib::util: 90: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc_default.settings.json
2025-09-10T06:27:05.918064Z DEBUG dsc_lib::util: 100: Found setting 'resourcePath' in C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe\dsc.settings.json
2025-09-10T06:27:05.919588Z DEBUG dsc_lib::util: 114: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-09-10T06:27:05.920663Z DEBUG dsc_lib::discovery::command_discovery: 135: Appending PATH to resourcePath
2025-09-10T06:27:05.921996Z DEBUG dsc_lib::discovery::command_discovery: 178: Using Resource Path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PowerShell\7\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\WindowsApps\Microsoft.DesiredStateConfiguration_3.1.1.0_x64__8wekyb3d8bbwe
2025-09-10T06:27:06.037608Z DEBUG dsc_lib::discovery::command_discovery: 305: Calling extension 'Microsoft.Windows.Appx/Discover' to discover resources
2025-09-10T06:27:06.038849Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-NoProfile", "-Command", "./appx-discover.ps1"])
2025-09-10T06:27:06.765085Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 7424 exited with code 0
2025-09-10T06:27:06.824012Z  WARN dsc_lib::discovery::command_discovery: 729: Executable 'sshdconfig' not found for operation 'export' for resource 'Microsoft.OpenSSH.SSHD/sshd_config'
2025-09-10T06:27:06.826632Z  WARN dsc_lib::discovery::command_discovery: 729: Executable 'sshdconfig' not found for operation 'schema' for resource 'Microsoft.OpenSSH.SSHD/sshd_config'
2025-09-10T06:27:06.830845Z DEBUG dsc_lib::discovery::command_discovery: 307: Extension 'Microsoft.Windows.Appx/Discover' found 27 resources
2025-09-10T06:27:06.832950Z DEBUG dsc_lib::configure::depends_on: 27: Getting resource invocation order
2025-09-10T06:27:06.833901Z DEBUG dsc_lib::configure::depends_on: 90: Resource invocation order: [Resource { resource_type: "Microsoft.Windows/WindowsPowerShell", name: "xComputerManagement/xComputer", depends_on: None, properties: Some({"resources": Array [Object {"name": String("xComputerManagement/xComputer"), "type": String("xComputerManagement/xComputer"), "properties": Object {"Name": String("SRV01")}}]}), metadata: None }]
2025-09-10T06:27:06.835396Z DEBUG dsc_lib::configure: 773: Invoke property expressions
2025-09-10T06:27:06.836704Z DEBUG dsc_lib::configure: 773: Invoke property expressions
2025-09-10T06:27:06.837535Z DEBUG dsc_lib::parser: 48: Parsing statement: xComputerManagement/xComputer
2025-09-10T06:27:06.838292Z DEBUG dsc_lib::parser: 72: Parsing string literal: xComputerManagement/xComputer
2025-09-10T06:27:06.839014Z DEBUG dsc_lib::parser: 48: Parsing statement: xComputerManagement/xComputer
2025-09-10T06:27:06.839755Z DEBUG dsc_lib::parser: 72: Parsing string literal: xComputerManagement/xComputer
2025-09-10T06:27:06.840502Z DEBUG dsc_lib::configure: 773: Invoke property expressions
                                                                                                                                                                                                                                                           Preparing modules for first use.                                                                                                                                                                                                                         2025-09-10T06:27:06.841239Z DEBUG dsc_lib::parser: 48: Parsing statement: SRV01                                                                                                                                                                           2025-09-10T06:27:06.841968Z DEBUG dsc_lib::parser: 72: Parsing string literal: SRV01                                                                                                                                                                      2025-09-10T06:27:06.842756Z DEBUG dsc_lib::configure: 340: resource_type Microsoft.Windows/WindowsPowerShell                                                                                                                                              2025-09-10T06:27:06.843478Z DEBUG dsc_lib::configure: 363: Resource handles _exist or _exist is true                                                                                                                                                      2025-09-10T06:27:06.844488Z DEBUG dsc_lib::dscresources::dscresource: 253: Invoking set for 'Microsoft.Windows/WindowsPowerShell'                                                                                                                         2025-09-10T06:27:06.845869Z DEBUG dsc_lib::dscresources::command_resource: 78: Invoking set for 'Microsoft.Windows/WindowsPowerShell'                                                                                                                     2025-09-10T06:27:06.846764Z DEBUG dsc_lib::dscresources::command_resource: 775: Verify JSON for 'Microsoft.Windows/WindowsPowerShell'                                                                                                                     2025-09-10T06:27:06.847535Z DEBUG dsc_lib::dscresources::command_resource: 762: No input kind specified                                                                                                                                                   source.ps1 Validate"])
2025-09-10T06:27:07.110226Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1172: PSVersion=5.1.26100.1
2025-09-10T06:27:07.112006Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1172: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0
2025-09-10T06:27:07.113460Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1172: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
2025-09-10T06:27:07.149202Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 1172 exited with code 0
2025-09-10T06:27:07.151486Z  INFO dsc_lib::dscresources::command_resource: 103: No pretest, invoking test on 'Microsoft.Windows/WindowsPowerShell'
2025-09-10T06:27:07.153224Z DEBUG dsc_lib::dscresources::command_resource: 264: Invoking test for 'Microsoft.Windows/WindowsPowerShell'
2025-09-10T06:27:07.154520Z DEBUG dsc_lib::dscresources::command_resource: 775: Verify JSON for 'Microsoft.Windows/WindowsPowerShell'
2025-09-10T06:27:07.155305Z DEBUG dsc_lib::dscresources::command_resource: 762: No input kind specified
2025-09-10T06:27:07.156344Z  INFO dsc_lib::dscresources::command_resource: 441: Invoking validate on 'Microsoft.Windows/WindowsPowerShell' using 'powershell'
2025-09-10T06:27:07.157227Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "$Input | ./psDscAdapter/powershell.resource.ps1 Validate"])
2025-09-10T06:27:07.412351Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 4336: PSVersion=5.1.26100.1
2025-09-10T06:27:07.413489Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 4336: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0
2025-09-10T06:27:07.414920Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 4336: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
2025-09-10T06:27:07.448513Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 4336 exited with code 0
                                                                                                                                                                                                                                                           Preparing modules for first use.                                                                                                                                                                                                                             Default status description.                                                                                                                                                                                                                               [                                                                                                                                                                                                                                              ]          00:00:00 remaining.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 [SRV012] Get-TargetResource                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     2025-09-10T06:27:07.716221Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1428: jsonInput={"resources":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Name":"SRV01"}}],"metadata":{"Microsoft.DSC":{"context":"configuration"}}}
2025-09-10T06:27:07.986254Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1428: Reading from Get-DscResource cache file C:\Users\Administrator\AppData\Local\dsc\WindowsPSAdapterCache.json
2025-09-10T06:27:08.033592Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1428: Checking cache for stale PSModulePath
2025-09-10T06:27:08.070353Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1428: PSModulePath diff ''
2025-09-10T06:27:07.450288Z DEBUG dsc_lib::dscresources::command_resource: 758: Parsing input as stdin                                                                                                                                                    2025-09-10T06:27:07.451566Z  INFO dsc_lib::dscresources::command_resource: 275: Invoking test on 'Microsoft.Windows/WindowsPowerShell' using 'powershell'                                                                                                 2025-09-10T06:27:07.453012Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "$Input | ./psDscAdapter/powershell.resource.ps1 Test"])                                                                                                                                                                                                                                        2025-09-10T06:27:07.703012Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1428: PSVersion=5.1.26100.1                                                                                                                                           2025-09-10T06:27:07.705048Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1428: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0                                                                                                               2025-09-10T06:27:07.706598Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1428: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules                                                                                                                                                                                                                                                     2025-09-10T06:27:08.850268Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 1428 exited with code 0
2025-09-10T06:27:08.852199Z  INFO dsc_lib::dscresources::dscresource: 545: diff: key 'resources' missing
2025-09-10T06:27:08.854422Z  INFO dsc_lib::dscresources::dscresource: 549: diff: key 'context' is not an object
2025-09-10T06:27:08.854954Z  INFO dsc_lib::dscresources::dscresource: 549: diff: key '_exist' is not an object
2025-09-10T06:27:08.855240Z DEBUG dsc_lib::dscresources::dscresource: 519: diff: sub diff for 'Microsoft.DSC'
2025-09-10T06:27:08.855670Z  INFO dsc_lib::dscresources::dscresource: 549: diff: key '_exist' is not an object
2025-09-10T06:27:08.856091Z DEBUG dsc_lib::dscresources::dscresource: 519: diff: sub diff for 'metadata'
2025-09-10T06:27:08.856950Z DEBUG dsc_lib::dscresources::command_resource: 758: Parsing input as stdin
2025-09-10T06:27:08.857694Z  INFO dsc_lib::dscresources::command_resource: 141: Getting current state for set by invoking get on 'Microsoft.Windows/WindowsPowerShell' using 'powershell'
2025-09-10T06:27:08.858992Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "$Input | ./psDscAdapter/powershell.resource.ps1 Get"])
2025-09-10T06:27:09.111133Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: PSVersion=5.1.26100.1
2025-09-10T06:27:09.113179Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0
2025-09-10T06:27:09.114088Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
2025-09-10T06:27:09.124077Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: jsonInput={"resources":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Name":"SRV01"}}],"metadata":{"Microsoft.DSC":{"context":"configuration"}}}
2025-09-10T06:27:09.424407Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: Reading from Get-DscResource cache file C:\Users\Administrator\AppData\Local\dsc\WindowsPSAdapterCache.json
2025-09-10T06:27:09.484343Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: Checking cache for stale PSModulePath
2025-09-10T06:27:09.523302Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: PSModulePath diff ''
2025-09-10T06:27:09.525142Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: Checking cache for stale entries
2025-09-10T06:27:09.646718Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: OS version: Microsoft Windows NT 10.0.26100.0
2025-09-10T06:27:09.648071Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: PowerShell version: 5.1.26100.1
2025-09-10T06:27:09.651554Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: PSDesiredStateConfiguration module version: 1.1
2025-09-10T06:27:09.673439Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: DSC resource implementation: ScriptBased
2025-09-10T06:27:09.723165Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: Module: xComputerManagement, Name: xComputer, Property: {"Name":"SRV01"}
2025-09-10T06:27:10.140659Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 2788: jsonOutput={"result":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Description":"","CurrentOU":null,"ResourceId":null,"PsDscRunAsCredential":null,"Name":"SRV012","Credential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"PSComputerName":"localhost","ConfigurationName":null,"DependsOn":null,"SourceInfo":null,"JoinOU":"","ModuleVersion":"4.1.0.0","ModuleName":"xComputerManagement","UnjoinCredential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"WorkGroupName":"WORKGROUP","DomainName":""}}]}
2025-09-10T06:27:10.167089Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 2788 exited with code 0
2025-09-10T06:27:10.169578Z  INFO dsc_lib::dscresources::command_resource: 183: Invoking set 'Microsoft.Windows/WindowsPowerShell' using 'powershell'
2025-09-10T06:27:10.170963Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "$Input | ./psDscAdapter/powershell.resource.ps1 Set"])
2025-09-10T06:27:10.416720Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: PSVersion=5.1.26100.1
2025-09-10T06:27:10.418161Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0
2025-09-10T06:27:10.419673Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
2025-09-10T06:27:10.429114Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: jsonInput={"resources":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Name":"SRV01"}}],"metadata":{"Microsoft.DSC":{"context":"configuration"}}}
2025-09-10T06:27:10.699289Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: Reading from Get-DscResource cache file C:\Users\Administrator\AppData\Local\dsc\WindowsPSAdapterCache.json
2025-09-10T06:27:10.748887Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: Checking cache for stale PSModulePath
2025-09-10T06:27:10.787427Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: PSModulePath diff ''
2025-09-10T06:27:10.789290Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: Checking cache for stale entries
2025-09-10T06:27:10.913627Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: OS version: Microsoft Windows NT 10.0.26100.0
2025-09-10T06:27:10.915283Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: PowerShell version: 5.1.26100.1
2025-09-10T06:27:10.919387Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: PSDesiredStateConfiguration module version: 1.1
2025-09-10T06:27:10.942859Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: DSC resource implementation: ScriptBased
2025-09-10T06:27:10.997333Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: Module: xComputerManagement, Name: xComputer, Property: {"Name":"SRV01"}
2025-09-10T06:27:11.247092Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 6776: jsonOutput={"result":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"RebootRequired":true}}]}
2025-09-10T06:27:11.274075Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 6776 exited with code 0
2025-09-10T06:27:11.275925Z DEBUG dsc_lib::dscresources::command_resource: 29: Invoking get for 'Microsoft.Windows/WindowsPowerShell'
2025-09-10T06:27:11.277371Z DEBUG dsc_lib::dscresources::command_resource: 775: Verify JSON for 'Microsoft.Windows/WindowsPowerShell'
2025-09-10T06:27:11.278631Z DEBUG dsc_lib::dscresources::command_resource: 762: No input kind specified
2025-09-10T06:27:11.279627Z  INFO dsc_lib::dscresources::command_resource: 441: Invoking validate on 'Microsoft.Windows/WindowsPowerShell' using 'powershell'
2025-09-10T06:27:11.280601Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "$Input | ./psDscAdapter/powershell.resource.ps1 Validate"])
2025-09-10T06:27:11.517167Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 4168: PSVersion=5.1.26100.1
2025-09-10T06:27:11.518401Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 4168: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0
2025-09-10T06:27:11.520056Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 4168: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
2025-09-10T06:27:11.554367Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 4168 exited with code 0
2025-09-10T06:27:11.556653Z DEBUG dsc_lib::dscresources::command_resource: 758: Parsing input as stdin
2025-09-10T06:27:11.558384Z  INFO dsc_lib::dscresources::command_resource: 40: Invoking get 'Microsoft.Windows/WindowsPowerShell' using 'powershell'
2025-09-10T06:27:11.559238Z DEBUG dsc_lib::dscresources::command_resource: 699: Invoking command 'powershell' with args Some(["-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", "$Input | ./psDscAdapter/powershell.resource.ps1 Get"])
2025-09-10T06:27:11.799960Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: PSVersion=5.1.26100.1
2025-09-10T06:27:11.801461Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: PSPath=C:\Windows\System32\WindowsPowerShell\v1.0
2025-09-10T06:27:11.802779Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: PSModulePath=C:\Users\Administrator\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
2025-09-10T06:27:11.811901Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: jsonInput={"resources":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Name":"SRV01"}}],"metadata":{"Microsoft.DSC":{"context":"configuration"}}}
2025-09-10T06:27:12.082196Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: Reading from Get-DscResource cache file C:\Users\Administrator\AppData\Local\dsc\WindowsPSAdapterCache.json
2025-09-10T06:27:12.130771Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: Checking cache for stale PSModulePath
2025-09-10T06:27:12.166439Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: PSModulePath diff ''
2025-09-10T06:27:12.168233Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: Checking cache for stale entries
2025-09-10T06:27:12.287369Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: OS version: Microsoft Windows NT 10.0.26100.0
2025-09-10T06:27:12.289159Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: PowerShell version: 5.1.26100.1
2025-09-10T06:27:12.292944Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: PSDesiredStateConfiguration module version: 1.1
2025-09-10T06:27:12.315687Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: DSC resource implementation: ScriptBased
2025-09-10T06:27:12.365053Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: Module: xComputerManagement, Name: xComputer, Property: {"Name":"SRV01"}
2025-09-10T06:27:12.654976Z DEBUG dsc_lib::dscresources::command_resource: 902: PID 1352: jsonOutput={"result":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Description":"","CurrentOU":null,"ResourceId":null,"PsDscRunAsCredential":null,"Name":"SRV012","Credential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"PSComputerName":"localhost","ConfigurationName":null,"DependsOn":null,"SourceInfo":null,"JoinOU":"","ModuleVersion":"4.1.0.0","ModuleName":"xComputerManagement","UnjoinCredential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"WorkGroupName":"WORKGROUP","DomainName":""}}]}
2025-09-10T06:27:12.684042Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell' id 1352 exited with code 0
2025-09-10T06:27:12.686723Z ERROR dsc::subcommand: 106: Error: Operation: Failed to parse JSON from 'get': executable = 'powershell' stdout = 'WARNING: LCM state is changed by non-DSC operations. If you wish to change the state of LCM, please use Remove-DscConfigurationDocument cmdlet.
{"result":[{"name":"xComputerManagement/xComputer","type":"xComputerManagement/xComputer","properties":{"Description":"","CurrentOU":null,"ResourceId":null,"PsDscRunAsCredential":null,"Name":"SRV012","Credential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"PSComputerName":"localhost","ConfigurationName":null,"DependsOn":null,"SourceInfo":null,"JoinOU":"","ModuleVersion":"4.1.0.0","ModuleName":"xComputerManagement","UnjoinCredential":{"CimClass":{"CimSuperClassName":null,"CimSuperClass":null,"CimClassProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[],"ReferenceClassName":null},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NullValue","Qualifiers":[{"Name":"MaxLen","Value":256,"CimType":7,"Flags":"EnableOverride, ToSubclass"}],"ReferenceClassName":null}],"CimClassQualifiers":[{"Name":"Abstract","Value":true,"CimType":1,"Flags":"EnableOverride, Restricted"},{"Name":"ClassVersion","Value":"1.0.0","CimType":14,"Flags":"EnableOverride, Restricted"},{"Name":"locale","Value":1033,"CimType":7,"Flags":"EnableOverride, Restricted"}],"CimClassMethods":[],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"CimInstanceProperties":[{"Name":"Password","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false},{"Name":"UserName","Value":null,"CimType":14,"Flags":"Property, NotModified, NullValue","IsValueModified":false}],"CimSystemProperties":{"Namespace":"root/Microsoft/Windows/DesiredStateConfiguration","ServerName":"localhost","ClassName":"MSFT_Credential","Path":null}},"WorkGroupName":"WORKGROUP","DomainName":""}}]}
' stderr = '' -> expected value at line 1 column 1

Environment data

PS C:\Users\Administrator> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.26100.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


PS C:\Users\Administrator> dsc -V
dsc 3.1.1
PS C:\Users\Administrator>

Version

3.1.1

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions