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

How to find the command for DSC Engine that monitors if it is in DesiredState or not ? #5171

Open
subhashvinjamuri opened this issue Oct 9, 2024 · 4 comments

Comments

@subhashvinjamuri
Copy link

No description provided.

@gotechworld
Copy link

gotechworld commented Oct 13, 2024

Test-DscConfiguration -Detailed | select -ExpandProperty ResourcesInDesiredState
Test-DscConfiguration -Detailed | select -ExpandProperty ResourcesNotInDesiredState

@subhashvinjamuri
Copy link
Author

The above is just giving details upto the Instance Name, that is not in Desired State. But not providing, which specific property where the discrepancy is.
But if I look at the Event Viewer on the machine, that gives in DEtailed - along with which property not in desired state.
So, the DSC engine that is writing output to Event Viewer is retrieving more information - that that from 'Test-DSCConfiguration' command
Ex : Output from 'Test-DscConfiguration -Detailed | select -ExpandProperty ResourcesNotInDesiredState' -->
ConfigurationName : M365Configuration
DependsOn :
ModuleName : Microsoft365DSC
ModuleVersion : 1.24.417.1
PsDscRunAsCredential :
ResourceId : [TeamsMeetingPolicy]TeamsMeetingPolicy-Tag:AllOn::[TeamsMeetingPolicy]TeamsMeetingPolicy-conf
SourceInfo :
DurationInSeconds : 0.969
Error :
FinalState :
InDesiredState : False
InitialState :
InstanceName : TeamsMeetingPolicy-Tag:AllOn::[TeamsMeetingPolicy]TeamsMeetingPolicy-conf
RebootRequested : False
ResourceName : TeamsMeetingPolicy
StartDate : 10/14/2024 3:28:18 PM
StateChanged : False
PSComputerName : localhost


BUT output in Event Viewer is below : Gives info on each Attribute



TrueFalse
TrueFalse
TrueFalse
TrueFalse
DisabledUserOverrideDisabled
EntireScreenDisabled
TrueFalse
EnabledDisabled
TrueFalse
TrueFalse



Tag:AllOn

@subhashvinjamuri
Copy link
Author

seems xml getting trimmed :

TrueFalse
TrueFalse
TrueFalse
TrueFalse
DisabledUserOverrideDisabled
EntireScreenDisabled
TrueFalse
EnabledDisabled
TrueFalse
TrueFalse

@subhashvinjamuri
Copy link
Author

<ParametersNotInDesiredState> <Param Name="AllowPrivateMeetingScheduling"><CurrentValue>True</CurrentValue><DesiredValue>False</DesiredValue></Param> <Param Name="AllowCloudRecording"><CurrentValue>True</CurrentValue><DesiredValue>False</DesiredValue></Param> <Param Name="AllowPowerPointSharing"><CurrentValue>True</CurrentValue><DesiredValue>False</DesiredValue></Param> <Param Name="AllowPrivateMeetNow"><CurrentValue>True</CurrentValue><DesiredValue>False</DesiredValue></Param> <Param Name="LiveCaptionsEnabledType"><CurrentValue>DisabledUserOverride</CurrentValue><DesiredValue>Disabled</DesiredValue></Param> <Param Name="ScreenSharingMode"><CurrentValue>EntireScreen</CurrentValue><DesiredValue>Disabled</DesiredValue></Param> <Param Name="AllowParticipantGiveRequestControl"><CurrentValue>True</CurrentValue><DesiredValue>False</DesiredValue></Param> <Param Name="MeetingChatEnabledType"><CurrentValue>Enabled</CurrentValue><DesiredValue>Disabled</DesiredValue></Param> <Param Name="AllowOutlookAddIn"><CurrentValue>True</CurrentValue><DesiredValue>False</DesiredValue></Param> <Param Name="AllowChannelMeetingScheduling"><CurrentValue>True</CurrentValue><DesiredValue>False</DesiredValue></Param> </ParametersNotInDesiredState>

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

No branches or pull requests

2 participants