-
Notifications
You must be signed in to change notification settings - Fork 177
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
win_dsc: unable to invoke RemoteDesktopAdmin of ComputerManagementDsc #329
Comments
I'm unsure if this is related to the linked problems, one was around failing to import the DSC module due to locale problems and the other is failing to serialize CimInstance properties. This error indicates the CIM class in I'm not sure what this could be but I'll have to try and replicate it myself to try and figure out what's happening here. |
Sorry for the delay here, I'm unable to replicate the problem on a Server 2019 host.
I had to add |
Closing as per the above, if you can provide more information I'm happy to look into it again but I'm unable to replicate this myself. |
Hello, sorry for the delay, i had to tend to other things...
Output of
I also only encountered the issue on windows 10 hosts, maybe this is the reason you couldn't reproduce on windows server 2019. |
SUMMARY
In my playbook, i would like to enable RDP for a windows 10 host.
The Resource RemoteDesktopAdmin is part of ComputerManagementDsc
While researching i stumbled upon #15 , maybe these are related?
While retracing i found that the exact error happens in Line 50 in the call
$resource = Get-CimClass -ClassName $ClassName -Namespace root\Microsoft\Windows\DesiredStateConfiguration
with $ClassName (if i am not mistaken) having the content
DSC_RemoteDesktopAdmin
.I could reproduce the error message when manually issuing this command.
I also found #83 and my device is a german windows version, maybe that can have an impact as well.
ISSUE TYPE
COMPONENT NAME
win_dsc module
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
Target Host is a Windows 10 Enterprise LSTC Host
STEPS TO REPRODUCE
EXPECTED RESULTS
RDP is enabled
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: