Get the current configuration of the node. (PowerShell 4.0+)
Syntax Get-DscConfiguration [-AsJob] [-CimSession CimSession] [-ThrottleLimit Int32] [CommonParameters] Key -AsJob Run the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use Receive-Job. -CimSession CimSession Run the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession. The default is the current session on the local computer. -ThrottleLimit Int32 The maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then PowerShell calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. CommonParameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer -OutVariable.
If you do not specify a target computer, Get-DscConfiguration gets the configuration from the local computer.
Get the configuration for a specified computer:
PS C:\> $Session = New-CimSession –ComputerName "Server64" –Credential ACCOUNTS\JDoe
PS C:\> Get-DscConfiguration -CimSession $Session
“Life is a process of becoming, a combination of states we have to go through. Where people fail is that they wish to elect a state and remain in it. This is a kind of death” ~ Anais Nin
Get-DscResource - Get Desired State Config. resources from a computer.
Start-DscConfiguration - Apply Desired State config to nodes.
Get-DscLocalConfigurationManager - Get Local Config Manager settings.
New-DSCCheckSum - Create checksum files for DSC docs/resources.
TechNet - Desired State Configuration Overview