web analytics

Author Archive

How to Create a Deployment Package

Posted by:

To create a software updates deployment package

  1. Set up a connection to the SMS Provider.
  2. Create the new package object by using the SMS_SoftwareUpdatesPackage class.
  3. Populate the new package properties.
  4. Save the new package and properties.

Examples

Quick and Dirty Management Point Check

Posted by:

To check your Configuration Manager hierarchy Management Point statuses

  1. Download Get-CMSMPStatus.zip
  2. Run the Get-CMSMPStatus.ps1 on your Central or Primary site with the following parameters:

Get-CMSMPStatus.ps1 -SiteCode PS1 -SiteServer Localhost -OutPut c:\temp\MPStatus.csv. This will create a CSV Report

Example

How to Create a Collection Variable

Posted by:

To Create a Collection Variable

  1. Set up a connection to the SMS Provider.
  2. Get an instance of SMS_CollectionSettings.
  3. For each variable to be added, add instances of the embedded object SMS_CollectionVariable to the CollectionVariables array property.
  4. Commit the changes to the SMS_CollectionSettings class instance.

Examples

How to import a Task Sequence

Posted by:

To import a Task Sequence

  1. Import Configuration Manager PowerShell Module
  2. Use Import-CMTaskSequence CMDLET

Examples

[CM12 MODULE] How to export a Task Sequence

Posted by:

Updated 04.04.2015

To export a Task Sequence

  1. Import Configuration Manager PowerShell Module
  2. Use Export-CMTaskSequence CMDLET

Examples

[SDK] How to Add an Operating System Image Package

Posted by:

Updated 04.04.2015
To Add an Operating System Image Package

  1. Set up a connection to the SMS Provider.
  2. Create an instance of SMS_ImagePackage.
  3. Specify the path to the WIM file in PkgSourcePath.
  4. Commit the SMS_ImagePackage class instance.

Examples

How to send an Operating System Image to Distribution Point

Posted by:

To send an Operating System Image to Distribution Point

  1. Set up a connection to the SMS Provider.
  2. Query an Operating System Image from SMS_ImagePackage WMI class
  3. Use the AddDistributionPoints method.
  4. Set the SiteCode and NALPath properies
  5. Depending on the configuration, set the correct value

OR

  1. Import Configuration Manager PowerShell Module
  2. Use Start-CMContentDistribution CMDLET

Examples

How to send a Boot Image to Distribution Point

Posted by:

To send a Boot Image to Distribution Point

  1. Set up a connection to the SMS Provider.
  2. Query a Boot Image from SMS_BootImagePackage WMI class
  3. Use the AddDistributionPoints method
  4. Set the SiteCode and NALPath properties
  5. Depending on the configuration, set the correct value

OR

  1. Import Configuration Manager PowerShell Module
  2. Use Start-CMContentDistribution CMDLET

Examples

How to convert a Schedule Token

Posted by:

To convert a Schedule token

  1. Set up a connection to the SMS Provider.
  2. Create Schedule token.
  3. Call ReadFromString or WriteToString WMI method

OR

  1. Import ConfigurationManager PowerShell module
  2. Use New-CMSchedule cmd-let to create ScheduleToken
  3. Use Convert-CMSchedule cmd-let to convert the ScheduleToken

Examples

Configuration Manager 2012 SP1 RTM WMI Class Methods Excel Sheet

Posted by:

ConfigMgrWMIMethods_WMI_Classes

You can download this Excel sheet from here

Continue Reading →
Page 5 of 14 «...34567...»