PowerShell Logo Small

Update-DscConfiguration



This is the built-in help made by Microsoft for the command 'Update-DscConfiguration', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Checks the pull server for an updated configuration and applies it.

SYNTAX


Update-DscConfiguration [-JobName [<String>]] [-ThrottleLimit [<Int32>]] [-Wait] -CimSession <CimSession[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Update-DscConfiguration [[-ComputerName] [<String[]>]] [-Credential [<PSCredential>]] [-JobName [<String>]] [-ThrottleLimit [<Int32>]] [-Wait] [-Confirm] [-WhatIf]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Update-DscConfiguration cmdlet connects to a pull server, downloads the configuration if it is different from what is current on the node and then applies the
configuration to the computer.


This cmdlet is available only as part of the November 2014 update rollup for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2
(http://support.microsoft.com/en-us/kb/3000850) from the Microsoft Support library. Before you use this cmdlet, review the information in What's New in Windows PowerShell
(http://technet.microsoft.com/library/hh857339.aspx) in the TechNet library.



<

RELATED LINKS

Windows PowerShell Desired State Configuration Overview
Get-DscConfiguration
Get-DscConfigurationStatus
Restore-DscConfiguration
Start-DscConfiguration
Stop-DscConfiguration
Test-DscConfiguration

REMARKS

<

Examples


Example 1: Update a configuration

PS C:\>$Session = New-CimSession -ComputerName "Server01" -Credential ACCOUNTS\PattiFuller
PS C:\> Update-DscConfiguration -CimSession $Session -Wait



The first command creates a CIM session by using the New-CimSession cmdlet, and then stores the CimSession object in the $Session variable. The command prompts you for a
password. For more information, type Get-Help New-CimSession.

The second command updates the computer specified in the CimSession stored in $Session. The command specifies the Wait parameter. The console does not accept additional
commands until the current command finishes.