Solved

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

Posted on 2014-09-25
2
180 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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