How can I get details of all operations being performed by current PowerShell DSC?

660 Views Asked by At

On a system, a PowerShell DSC is applied, but I do not have the original script that was applied. How can I get a list of all operations that this configuration is supposed to do/ currently doing?

For example, if I have the original script, I can see what programs are being installed and what settings are being applied by the configuration, but how to do it without original script.

I want to uninstall a program being installed by DSC currently, but I am not able to update the DSC to allow removal of the program leaving other parts as is, so removing it seems to be the only option. Before removing it, I want to make sure that it does not do something else important. How can I do that?

Also, if I remove the current DSC, is previous or pending DSC applied?

1

There are 1 best solutions below

5
4c74356b41 On

You can use the Get-DscConfiguration cmdlet. You can also locate the .mof file used to configure DSC and examine that located at C:\Windows\System32\Configuration\