PowerShell: Script to Retrieve SCCM 2012 Client Settings

To make documenting the configured SCCM Client configuration settings a bit easier I wrote a small script that retrieves all the configured settings for the Default and custom  configuration settings.

To run this script the Configuration Manager powershell module must be loaded and connected to the site.

# Get the different Client settings Names
$a = Get-CMClientSetting | select Name

foreach ($a in $a ) 
{
	# Get all possible values for the Get-CMClientSetting -Setting parameter
	$xsettings = [Enum]::GetNames( [Microsoft.ConfigurationManagement.Cmdlets.ClientSettings.Commands.SettingType])

	# dump the detailed configuration settings
	foreach ($xsettings in $xsettings ) {
        	#write-host $a.Name
	        Get-CMClientSetting -Setting $xsettings -Name $a.Name | format-table
    }

}

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree