Solved

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

Posted on 2014-09-25
2
185 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 500 total points
ID: 40363963
0
 

Author Comment

by:R555B
ID: 40380323
thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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