Salutations !

Find here a function i wrote for a project where i needed to integrate applications automaticall into SCCM.

I have been using the SCCM-Commands module (Written by Rikard Ronnkvist, Michael Niehaus and Stefan Ringler) and wich is available on the blog of Rikard Ronnkvist  here . The original code was written by Ryan Bijkerk.

For this function to work correctly, a connection to the SCCM server still needs to be created by using the following line for example :

And then call the function with for the SCCMServer parameter the value “$Con”

 

Find below the code of the function. Dont hesitate to comment and give me feedback.

[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]