?
Solved

How can I add computers to SCCM 2012 with VB.net

Posted on 2014-09-25
2
Medium Priority
?
213 Views
Last Modified: 2014-10-14
HI All,

I need some help automating a process to add computers to SCCM 2012 and adding a variable to them.
I'll also probably want to create a collection and add the machines to it at some point as well.

I've gotten as far as...
 Public Function connect(sccmserver, sitecode)
        Try
            Dim obj = CreateObject("WbemScripting.SWbemLocator")
            Dim sccm = obj.ConnectServer(sccmserver, "root\sms\site_" & sitecode)
        Catch
            Return False
        End Try
        Return True
    End Function

Open in new window


And this works OK - sccm is a comobject though at this point and its not obvious (to me anyway) how I'd go about exposing the functions and methods that are available here.

SO how would I go about adding a machine and is there any documentation available that can help me through the rest of the steps I want to carry out.

Thanks
0
Comment
Question by:R555B
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 40363963
0
 

Author Comment

by:R555B
ID: 40380323
thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question