System Center Configuration Manager TechCenter > System Center Configuration Manager Forums > Configuration Manager SDK > Package / Collection Migration script - SMS to SCCM (vbscript or Powershell)
Ask a questionAsk a question
 

AnswerPackage / Collection Migration script - SMS to SCCM (vbscript or Powershell)

  • Tuesday, October 13, 2009 11:38 PMkiwidj Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I'm currently doing a side by side migration of SMS to SCCM.  I'm currently building the new SCCM site at the moment,  due to a few issues with the current SMS site I don't want to do a typical side by side migration (building a sms 2003 box and making it a child to replicate packages etc..),  however there are over 200 packages all of which need migrated.

    I'd like to create a script to read the package configuration from the sms 2003 primary then create the same packages in the SCCM primary site.. (maybe dumping to a text file or similar in between).

    It'd be great to do the same with collections too.. although there's not that many so can do manual export / import for those if req'd.

    I'd like to use either vbscript or powershell..

    does anyone have anything that might help me get started?

    thanks!

Answers

All Replies

  • Wednesday, October 14, 2009 9:20 PMJohn MarcumMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    It would be a lot easer to just use the free tool that 1E gives away for this purpose ;-)


    http://www.1e.com/Downloads/FreeTools/Index.aspx#






    John Marcum | http://www.TrueSec.com/en/Training.htm | http://myitforum.com/cs2/blogs/jmarcum
    • Marked As Answer bykiwidj Wednesday, October 21, 2009 11:16 PM
    •  
  • Tuesday, October 20, 2009 10:49 PMkiwidj Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    thanks John,

    that is a lot easier.. not nearly as much fun though :-)

    any ideas on something I can use to migrate nested collections?   export and import works straight out of the SMS/SCCM console but when a collection is nested inside of another it bombs out with an error when you try and import it back into SCCM??
  • Wednesday, October 21, 2009 12:15 PMJohn MarcumMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Ours ideas of fun must not be the same ;-)


    Sorry I don't know anything to do the collections.


    John Marcum | http://www.TrueSec.com/en/Training.htm | http://myitforum.com/cs2/blogs/jmarcum
  • Wednesday, October 21, 2009 11:15 PMkiwidj Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks - I've been able to sort out the Collection Migration now,  the ConfigMgr SDK (on MSDN) has some good examples of how to create collections using VBscript so all I needed to do was write a couple of basic SQL  queries and export a list of the collections and their rules, if they have parent collections etc.. then the script I created just iterates through the exported text file and creates the new collections and their child collections..  :-)