web analytics


How to Move a Configuration Manager Console Folder Item

Posted by:

To move a console folder item

  1. Set up a connection to the SMS Provider.
  2. Create an array of container identifiers for the folders you want to move.
  3. Call the SMS_ObjectContainerItem class MoveMembers method to move the folders to
    the destination folder.


Example Output

You can download the code examples from here

About the Author:

Kaido Järvemets is a developer, consultant, trainer specializing in Microsoft System Center Configuration Manager and PowerShell Solutions at Coretech. Kaido frequently speaks at European conferences and had his US debut as speaker at MMS April 2013. Kaido is well-known in the Configuration Manager communities where he’s a key player in the PowerShell game. Kaido host one of the most complete Configuration Manager PowerShell library’s in the world with hundreds of free code samples ready to download and implement – www.cm12sdk.net. Kaido has been awarded Microsoft Most Valuable Professional (MVP) in Microsoft Enterprise Client Management for his work with Configuration Manager from 2011 – to present. Kaido is the founder of System Center User Group Estonia in 2011.


  1. Ryan  April 12, 2013

    Appreciate you posting your code – took advantage of the ‘Move-CMObject’ function in example 5 to move collections to an appropriate folder.

  2. Martin  November 5, 2013

    Hi, Thanks for the code. I have a question, though. How can I find the FolderID for the current and target folders? I can’t seem to get that through the SCCM console. And when I query for ‘SELECT * FROM SMS_objectContainerItem’ I get a lot of info, but not a list of names and matching IDs.

    Thanks for your help.

    • Martin  November 5, 2013

      I ended up using this:
      ‘SELECT * FROM SMS_objectContainerNode where ObjectType like ‘5000”

      It finds all Device Collection Folders and returns their names and IDs.


Add a Comment