TechEd Australia 2013 – PowerShell for ConfigMgr 2012 SP1 – Demo 2

Demo 2: Connecting via PowerShell

Importing the ConfigMgr module

Import-Module ‘C:Program Files (x86)Microsoft Configuration ManagerAdminConsolebinConfigurationManager.psd1’

Connect to Primary Site (where PRI is the site code)

Set-Location PRI:

Display all Configuration Manager cmdlets

Get-Command -Module ConfigurationManager

Display a count of all the Configuration Manager cmdlets

(Get-Command -Module ConfigurationManager).Count