#4 Command Line Control

closed-remind
Roger
None
5
2009-01-16
2008-11-01
Scott
No

The ability to do everything you can do from the GUI in the console. This would make it possible to control groups of computers through scripts. Preforming the odd tasks or repairs quicker, easier and multi-threaded if needed. Would also make it easier when working remotely and bandwidth is an issue.

Discussion

  • Roger
    Roger
    2008-11-02

    The Tool "Collection Commander" is designed to run these SMS/SCCM Actions on a list of clients (multithreaded) <https://sourceforge.net/projects/smscollctr/>.

    Both Tools are using the smsclictr.automation library. You can use this library within your own tool/script.

    Documentation:
    <http://smsclictr.sourceforge.net/smsclictr.automation/ClassDiagram1.png>
    <http://smsclictr.sourceforge.net/smsclictr.automation/Documentation.chm>

     
  • Roger
    Roger
    2008-11-02

    • status: open --> closed
     
  • Scott
    Scott
    2008-11-02

    • status: closed --> open
     
  • Scott
    Scott
    2008-11-02

    When I mentioned scripts, I was thinking more towards batch/cmd files. I used to have a tool I made for doing these things though it has become out of date. It was never released as I am still not happy with it. I made three different attempts and I'm still working on a better interface. Never did come up with a method for processing the command line options in a way I liked, though attempt 4 may work. Either way, I know others who could use a nice command line version and wouldn't have the programming background to make use of the library. I'm more than willing to help make that happen if possible.

     
  • Roger
    Roger
    2008-11-02

    You do not need a "programming" background... if you can write a batch file, you should also be able to start with powershell (the next generation of batch files :-).

    A simple example from the smsclictr.automation help file to delete the SMS-GUID on a remote client and restart the Agent:

    [void][System.Reflection.Assembly]::LoadFile("$HOME\smsclictr.automation.dll")
    $SMSClient = New-Object -TypeName smsclictr.automation.SMSClient("workstation01")
    $SMSClient.DeleteGUID()
    $SMSClient.RestartSMSAgent()

    ...that's all, and you need powershell only on your admin pc, not on the remote clients.
    Everyone is free to create a command-line wrapper for the library... If you really need some commands, I'm willing to help you but not within my private time...

    Roger

     
  • Roger
    Roger
    2009-01-16

    • assigned_to: nobody --> rzander
    • status: open --> closed-remind
     
  • Roger
    Roger
    2009-01-16

    The smsclictr.automation library provides powershell support.