Solved

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

Posted on 2014-09-25
2
171 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
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 40363963
0
 

Author Comment

by:R555B
ID: 40380323
thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now