New-CMConfigurationItem 
 
http://technet.microsoft.com/en-us/library/jj870915.aspx 
 
 
Mike D-
 
Date: Mon, 15 Dec 2014 09:53:14 -0600
Subject: [mssms] Powershell to create CI?
From: [email protected]
To: [email protected]

Does anyone know how to use Powershell to create a script Configuration Item?

I'm trying to write a script that will pull all printers in from a print server 
and create a configuration item per printer to install the printer. Then it 
would create Collections and baselines and deployments so we just need to drop 
a computer in a collection for it to get a certain printer.

It looks like CIs follow the same format as Applications, so I'm not expecting 
much in terms of being able to do this. I already tried to create a template, 
export the template as a cab, and then use find/replace in the two xml files to 
change printer names. Once I put those files back in a cab, I can only import 
them again if I remove the original CI. It always gives the CI the same Unique 
ID as is specified in the XML files, so I can't duplicate the template. 





                                          


Reply via email to