My top 10 new features of ConfigMgr 2012 SP1 – part 5

sccm2012-logoIn my series about my top 10 of new features in Configuration Manager 2012 SP1 I would like to dedicate this blog on the Powershell 3.0 support. I am not a Powershell expert but I will try to show you some tricks 😉
When starting the Configuration Manager 2012 SP1 Console you need to click on the blue button in the upper left corner. In the pull down menu you will see the option to start Windows Powershell.

 

Click on “Connect via Windows Powershell” to start Windows Powershell with the Configuration Manager cmdlets.

Connect to Powershell
Connect to Powershell

Configuration Manager comes with loads of cmdlets, to show them execute the following command:
Get-command –module ConfigurationManager |more

This will give you a list with all the 471 cmdlets that come with the Service Pack 1 of Configuration Manager 2012.

See your Configuration Manager cmdlets
See your Configuration Manager cmdlets

To show how this works you can try the following examples and see what happens. Just a couple of examples, if you want to have more indepth Powershell
Get information about you site with the following cmdlet: Get-Cmsite

Get information about the site
Get information about the site

 

If you want to connect to the site you can do this by using the the following commands.

  • Import-Module ($installdrive + “Program Files (x86)Microsoft Configuration ManagerAdminConsolebinConfigurationManager.psd1”)
  • or
  • Import-Module ($installdrive + “Program FilesMicrosoft Configuration ManagerAdminConsolebinConfigurationManager.psd1”)
  • next you need to connect to the Primary Site via: Set-Location PS1:

Tomorrow or the day after tomorrow I will post my first Powershell script that could be handy for (some of) you 🙂

See the complete list of Cmdlets here

[tabs] [tab title=”Cmdlets 1/5″]
Add-CMAssetIntelligenceSynchronizationPoint
Add-CMBoundaryToGroup
Add-CMDeploymentType
Add-CMDeviceAffinityToUser
Add-CMDeviceCollectionDirectMembershipRule
Add-CMDeviceCollectionExcludeMembershipRule
Add-CMDeviceCollectionIncludeMembershipRule
Add-CMDeviceCollectionQueryMembershipRule
Add-CMDeviceCollectionToAdministrativeUser
Add-CMDeviceCollectionToDistributionPointGroup
Add-CMDistributionPointToGroup
Add-CMDriverToDriverPackage
Add-CMEndpointProtectionPoint
Add-CMEnrollmentPoint
Add-CMEnrollmentProxyPoint
Add-CMFallbackStatusPoint
Add-CMManagementPoint
Add-CMOutOfBandServicePoint
Add-CMReportingServicePoint
Add-CMSecurityRoleToAdministrativeUser
Add-CMSecurityScopeToAdministrativeUser
Add-CMSoftwareUpdatePoint
Add-CMSoftwareUpdateToGroup
Add-CMStateMigrationPoint
Add-CMSystemHealthValidationPoint
Add-CMUserAffinityToDevice
Add-CMUserCollectionDirectMembershipRule
Add-CMUserCollectionExcludeMembershipRule
Add-CMUserCollectionIncludeMembershipRule
Add-CMUserCollectionQueryMembershipRule
Add-CMUserCollectionToAdministrativeUser
Add-CMUserCollectionToDistributionPointGroup
Approve-CMApprovalRequest
Approve-CMDevice
Approve-CMUserDeviceAffinityRequest
Block-CMCertificate
Block-CMConflictingRecord
Block-CMDevice
Clear-CMAmtAuditLog
Clear-CMClientOperation
Clear-CMComponentStatusMessageCount
Clear-CMMigrationData
Clear-CMOperatingSystemImageUpdateSchedule
Clear-CMPxeDeployment
Clear-CMSiteStatusMessageCount
Convert-CMSchedule
Copy-CMSecurityRole
Copy-CMUserDataAndProfileConfigurationItem
Deny-CMApprovalRequest
Deny-CMUserDeviceAffinityRequest
Disable-CMAlert
Disable-CMAmtAuditLog
Disable-CMBaseline
Disable-CMDriver
Disable-CMProgram
Disable-CMSoftwareMeteringRule
Disable-CMSoftwareUpdateAutoDeploymentRule
Disable-CMStatusFilterRule
Disable-CMTaskSequence
Enable-CMAlert
Enable-CMAmtAuditLog
Enable-CMAutomaticAmtProvisioning
Enable-CMBaseline
Enable-CMDriver
Enable-CMProgram
Enable-CMSoftwareMeteringRule
Enable-CMSoftwareUpdateAutoDeploymentRule
Enable-CMStatusFilterRule
Enable-CMTaskSequence
Export-CMAntimalwarePolicy
Export-CMApplication
Export-CMBaseline
Export-CMConfigurationItem
Export-CMDeviceCollection
Export-CMDriverPackage
Export-CMPackage
Export-CMSecurityRole
Export-CMTaskSequence
Export-CMUserCollection
Get-CMAccessAccount
Get-CMAccount
Get-CMActiveDirectoryForest
Get-CMActiveDirectorySite
Get-CMAdministrativeUser
Get-CMAlert
Get-CMAlertSubscription
Get-CMAntimalwarePolicy
Get-CMApplication
Get-CMApplicationCatalogWebServicePoint
Get-CMApplicationCatalogWebsitePoint
Get-CMApplicationRevisionHistory
Get-CMApprovalRequest
Get-CMAppVVirtualEnvironment
Get-CMAssetIntelligenceCatalogItem
Get-CMAssetIntelligenceSynchronizationPoint
Get-CMAutomaticAmtProvisioningStatus
Get-CMBaseline
Get-CMBaselineSummarizationSchedule
Get-CMBaselineXMLDefinition
Get-CMBootImage
[/tab] [tab title=”Cmdlets 2/5″]
Get-CMBoundary
Get-CMBoundaryGroup
Get-CMClientPushInstallation
Get-CMClientSetting
Get-CMClientStatusSetting
Get-CMClientStatusUpdateSchedule
Get-CMCloudDistributionPoint
Get-CMCollectionMembershipEvaluationComponent
Get-CMComponentStatusMessage
Get-CMComponentStatusSetting
Get-CMComputerAssociation
Get-CMConfigurationItem
Get-CMConfigurationItemHistory
Get-CMConfigurationItemXMLDefinition
Get-CMConflictingRecord
Get-CMDatabaseProperty
Get-CMDatabaseReplicationLinkProperty
Get-CMDatabaseReplicationStatus
Get-CMDeployment
Get-CMDeploymentPackage
Get-CMDeploymentStatus
Get-CMDeploymentType
Get-CMDevice
Get-CMDeviceCollection
Get-CMDeviceCollectionDirectMembershipRule
Get-CMDeviceCollectionExcludeMembershipRule
Get-CMDeviceCollectionIncludeMembershipRule
Get-CMDeviceCollectionQueryMembershipRule
Get-CMDeviceCollectionVariable
Get-CMDiscoveryMethod
Get-CMDistributionPoint
Get-CMDistributionPointGroup
Get-CMDriver
Get-CMDriverPackage
Get-CMEmailNotificationComponent
Get-CMEndpointProtectionPoint
Get-CMEndpointProtectionSummarizationSchedule
Get-CMEnrollmentPoint
Get-CMEnrollmentProxyPoint
Get-CMExchangeServer
Get-CMFallbackStatusPoint
Get-CMFileReplicationRoute
Get-CMGlobalCondition
Get-CMHardwareRequirement
Get-CMIPSubnet
Get-CMManagementPoint
Get-CMManagementPointComponent
Get-CMOperatingSystemImage
Get-CMOperatingSystemImageUpdateScheduleGet-CMOperatingSystemInstaller
Get-CMOutOfBandManagementComponent
Get-CMOutOfBandServicePoint
Get-CMPackage
Get-CMProgram
Get-CMQueryResultMaximum
Get-CMReportingServicePoint
Get-CMSecurityRole
Get-CMSecurityScope
Get-CMSite
Get-CMSiteInstallStatus
Get-CMSiteMaintenanceTask
Get-CMSiteStatusMessage
Get-CMSoftwareDistributionComponent
Get-CMSoftwareInventory
Get-CMSoftwareMeteringRule
Get-CMSoftwareMeteringSetting
Get-CMSoftwareUpdate
Get-CMSoftwareUpdateAutoDeploymentRule
Get-CMSoftwareUpdateBasedClientInstallation
Get-CMSoftwareUpdateDeploymentPackage
Get-CMSoftwareUpdateGroup
Get-CMSoftwareUpdateLicense
Get-CMSoftwareUpdatePoint
Get-CMSoftwareUpdatePointComponent
Get-CMSoftwareUpdateSummarizationSchedule
Get-CMStateMigrationPoint
Get-CMStatusFilterRule
Get-CMStatusMessageQuery
Get-CMStatusReportingComponent
Get-CMStatusSummarizer
Get-CMSystemHealthValidationPoint
Get-CMSystemHealthValidatorPointComponent
Get-CMTaskSequence
Get-CMUser
Get-CMUserCollection
Get-CMUserCollectionDirectMembershipRule
Get-CMUserCollectionExcludeMembershipRule
Get-CMUserCollectionIncludeMembershipRule
Get-CMUserCollectionQueryMembershipRule
Get-CMUserDataAndProfileConfigurationItem
Get-CMUserDataAndProfileConfigurationItemXmlDefinition
Get-CMUserDeviceAffinity
Get-CMUserDeviceAffinityRequest
Get-CMWindowsFirewallPolicy
Import-CMApplication
Import-CMBaseline
Import-CMCertificate
Import-CMComputerInformation
Import-CMConfigurationItem
[/tab] [tab title=”Cmdlets 3/5″]
Import-CMPackage
Import-CMSecurityRole
Import-CMSoftwareLicense
Import-CMTaskSequence
Import-CMUserCollection
Import-CMUserDeviceAffinity
Install-CMClient
Invoke-CMAmtProvisioningDiscovery
Invoke-CMBaselineSummarization
Invoke-CMClientOperationSummarization
Invoke-CMDeploymentSummarization
Invoke-CMDeviceCollectionUpdate
Invoke-CMEndpointProtectionScan
Invoke-CMEndpointProtectionSummarization
Invoke-CMForestDiscovery
Invoke-CMRemoteControl
Invoke-CMReport
Invoke-CMSecondarySiteUpgrade
Invoke-CMSoftwareUpdateAutoDeploymentRule
Invoke-CMSoftwareUpdateSummarization
Invoke-CMUserCollectionUpdate
Lock-CMObject
Merge-CMAntimalwarePolicy
Merge-CMConflictingRecord
New-CMAccessAccount
New-CMAccount
New-CMActiveDirectoryForest
New-CMAdministrativeUser
New-CMAlertSubscription
New-CMAntimalwarePolicy
New-CMApplication
New-CMAssetIntelligenceCatalogItem
New-CMBaseline
New-CMBootImage
New-CMBoundary
New-CMBoundaryGroup
New-CMClientSetting
New-CMCloudDistributionPoint
New-CMComputerAssociation
New-CMConfigurationItem
New-CMDeviceCollection
New-CMDeviceCollectionVariable
New-CMDistributionPointGroup
New-CMDriverPackage
New-CMExchangeClientAccessServer
New-CMExchangeServer
New-CMExchangeServerConnectorAccessRule
New-CMExchangeServerConnectorApplicationSetting
New-CMExchangeServerConnectorEmailManagementSetting
New-CMExchangeServerConnectorGeneralSetting
New-CMExchangeServerConnectorPasswordSetting
New-CMExchangeServerConnectorSecuritySetting
New-CMFileReplicationRoute
New-CMGlobalCondition
New-CMHardwareRequirement
New-CMInstallationSourceFile
New-CMOperatingSystemImage
New-CMOperatingSystemInstaller
New-CMPackage
New-CMProgram
New-CMSchedule
New-CMSecondarySite
New-CMSecurityScope
New-CMSiteSystemServer
New-CMSoftwareMeteringRule
New-CMSoftwareUpdateGroup
New-CMSqlServerSetting
New-CMStatusFilterRule
New-CMStatusMessageQuery
New-CMStoragefolder
New-CMUserCollection
New-CMWindowsFirewallPolicy
Publish-CMPrestageContent
Remove-CMAccessAccount
Remove-CMAccount
Remove-CMActiveDirectoryForest
Remove-CMAdministrativeUser
Remove-CMAlert
Remove-CMAlertSubscription
Remove-CMAmtProvisioningData
Remove-CMAntimalwarePolicy
Remove-CMApplication
Remove-CMApplicationCatalogWebServicePoint
Remove-CMApplicationCatalogWebSitePoint
Remove-CMApplicationRevisionHistory
Remove-CMAppVVirtualEnvironment
Remove-CMAssetIntelligenceCatalogItem
Remove-CMAssetIntelligenceSynchronizationPoint
Remove-CMBaseline
Remove-CMBootImage
Remove-CMBoundary
Remove-CMBoundaryFromGroup
Remove-CMBoundaryGroup
Remove-CMClientOperation
Remove-CMClientSetting
Remove-CMCloudDistributionPoint

[/tab] [tab title=”Cmdlets 4/5″]
Remove-CMComputerAssociation
Remove-CMConfigurationItem
Remove-CMDeployment
Remove-CMDeploymentType
Remove-CMDevice
Remove-CMDeviceAffinityFromUser
Remove-CMDeviceCollection
Remove-CMDeviceCollectionDirectMembershipRule
Remove-CMDeviceCollectionExcludeMembershipRule
Remove-CMDeviceCollectionFromAdministrativeUser
Remove-CMDeviceCollectionFromDistributionPointGroup
Remove-CMDeviceCollectionIncludeMembershipRule
Remove-CMDeviceCollectionQueryMembershipRule
Remove-CMDeviceCollectionVariable
Remove-CMDistributionPoint
Remove-CMDistributionPointFromGroup
Remove-CMDistributionPointGroup
Remove-CMDriver
Remove-CMDriverFromDriverPackage
Remove-CMDriverPackage
Remove-CMEndpointProtectionPoint
Remove-CMEnrollmentPoint
Remove-CMEnrollmentProxyPoint
Remove-CMExchangeServer
Remove-CMFallbackStatusPoint
Remove-CMFileReplicationRoute
Remove-CMGlobalCondition
Remove-CMHardwareRequirement
Remove-CMManagementPoint
Remove-CMOperatingSystemImage
Remove-CMOperatingSystemInstaller
Remove-CMOutOfBandServicePoint
Remove-CMPackage
Remove-CMProgram
Remove-CMReportingServicePoint
Remove-CMSecondarySite
Remove-CMSecurityRole
Remove-CMSecurityRoleFromAdministrativeUser
Remove-CMSecurityScope
Remove-CMSecurityScopeFromAdministrativeUser
Remove-CMSoftwareMeteringRule
Remove-CMSoftwareUpdateAutoDeploymentRule
Remove-CMSoftwareUpdateDeploymentPackage
Remove-CMSoftwareUpdateGroup
Remove-CMSoftwareUpdatePoint
Remove-CMStateMigrationPoint
Remove-CMStatusFilterRule
Remove-CMStatusMessageQuery
Remove-CMSystemHealthValidationPoint
Remove-CMTaskSequence
Remove-CMUser
Remove-CMUserAffinityFromDevice
Remove-CMUserCollection
Remove-CMUserCollectionDirectMembershipRule
Remove-CMUserCollectionExcludeMembershipRule
Remove-CMUserCollectionFromAdministrativeUser
Remove-CMUserCollectionFromDistributionPointGroup
Remove-CMUserCollectionIncludeMembershipRule
Remove-CMUserCollectionQueryMembershipRule
Remove-CMUserDataAndProfileConfigurationItem
Remove-CMWindowsFirewallPolicy
Resolve-CMInventoriedSoftwareConflict
Restore-CMApplicationRevisionHistory
Resume-CMApplication
Save-CMDatabaseReplicationDiagnostic
Save-CMEndpointProtectionDefinition
Save-CMSoftwareUpdate
Send-CMAssetIntelligenceCatalogUpdateRequest
Set-CMAccessAccount
Set-CMAccount
Set-CMActiveDirectoryForest
Set-CMAlert
Set-CMAlertSubscription
Set-CMAntimalwarePolicy
Set-CMApplication
Set-CMApplicationDeployment
Set-CMApprovalRequest
Set-CMAppVVirtualEnvironment
Set-CMAssetIntelligenceCatalogItem
Set-CMAssetIntelligenceClass
Set-CMAssetIntelligenceSynchronizationPoint
Set-CMBaseline
Set-CMBaselineDeployment
Set-CMBaselineSummarizationSchedule
Set-CMBootImage
Set-CMBoundary
Set-CMBoundaryGroup
Set-CMClientSetting
Set-CMClientStatusSetting
Set-CMClientStatusUpdateSchedule
Set-CMCloudDistributionPoint
Set-CMCollectionMembershipEvaluationComponent
Set-CMComputerAssociation
Set-CMConfigurationItem
Set-CMConfigurationPolicyDeployment
Set-CMDatabaseProperty
Set-CMDatabaseReplicationLinkProperty
Set-CMDeploymentType

[/tab] [tab title=”Cmdlets 5/5″]
Set-CMDeviceCollection
Set-CMDeviceCollectionVariable
Set-CMDiscoveryMethod
Set-CMDistributionPoint
Set-CMDistributionPointGroup
Set-CMDriverBootImage
Set-CMDriverPackage
Set-CMEmailNotificationComponent
Set-CMEndpointProtectionSummarizationSchedule
Set-CMExchangeServer
Set-CMFallbackStatusPoint
Set-CMFileReplicationRoute
Set-CMGlobalCondition
Set-CMHardwareRequirement
Set-CMManagementPoint
Set-CMMigrationExclusionList
Set-CMMigrationSource
Set-CMOperatingSystemImage
Set-CMOperatingSystemInstaller
Set-CMOutOfBandServicePoint
Set-CMPackage
Set-CMPackageDeployment
Set-CMPowerControl
Set-CMProgram
Set-CMQueryResultMaximum
Set-CMSecurityRole
Set-CMSecurityScope
Set-CMSite
Set-CMSiteMaintenanceTask
Set-CMSoftwareDistributionComponent
Set-CMSoftwareInventory
Set-CMSoftwareMeteringRule
Set-CMSoftwareMeteringSetting
Set-CMSoftwareUpdate
Set-CMSoftwareUpdateBasedClientInstallation
Set-CMSoftwareUpdateDeployment
Set-CMSoftwareUpdateDeploymentPackage
Set-CMSoftwareUpdateGroup
Set-CMSoftwareUpdatePoint
Set-CMSoftwareUpdateSummarizationSchedule
Set-CMStatusFilterRule
Set-CMStatusMessageQuery
Set-CMStatusReportingComponent
Set-CMTaskSequence
Set-CMTaskSequenceDeployment
Set-CMUserCollection
Set-CMWindowsFirewallPolicy
Start-CMAntimalwarePolicyDeployment
Start-CMApplicationDeployment
Start-CMApplicationDeploymentSimulation
Start-CMBaselineDeployment
Start-CMClientSettingDeployment
Start-CMCloudDistributionPoint
Start-CMConfigurationPolicyDeployment
Start-CMContentDistribution
Start-CMPackageDeployment
Start-CMSoftwareUpdateDeployment
Start-CMTaskSequenceDeployment
Stop-CMCloudDistributionPoint
Suspend-CMAlert
Suspend-CMApplication
Sync-CMAssetIntelligenceCatalog
Sync-CMExchangeServer
Sync-CMSoftwareUpdate
Unblock-CMCertificate
Unblock-CMDevice
Unblock-CMThreat
Undo-CMSoftwareInventory
Unlock-CMObject
Update-CMAmtProvisioning
Update-CMApplicationStatistic
Update-CMCertificate
Update-CMClientStatus
Update-CMDistributionPoint

[/tab] [/tabs]

 

 

Comments

Total
0
Shares
2 comments
Leave a Reply

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

Previous Post

My top 10 new features of ConfigMgr 2012 SP1 – part 4

Next Post

How to cleanup in AD deleted devices via Powershell in ConfigMgr 2012 SP1

Related Posts
Total
0
Share