Solved

SCCM Client task Launch Commands

Posted on 2009-07-02
2
1,372 Views
Last Modified: 2013-11-21
Hi All,

I am currently in the process of coding a login script for VPN remote users.

In this script I would like to see the SCCM Client to initiate advertised programs for deployment. What is the vbs or dos command to do task?


Thanks
Andrew
0
Comment
Question by:supportemea
2 Comments
 
LVL 15

Accepted Solution

by:
HayesJupe earned 500 total points
ID: 24782399
here's an example of what you could use
 On Error Resume Next
Dim objCPAppletMgr, objClientActions, objClientAction, strActionName
strActionName="Request & Evaluate Machine Policy"

'Get the Control Panel applet manager object
set  objCPAppletMgr = CreateObject("CPApplet.CPAppletMgr")
'Get a collection of client actions
set objClientActions=objCPAppletMgr.GetClientActions
'Loop through the available client actions
For Each objClientAction In objClientActions
   
  If objClientAction.Name = strActionName Then
    objClientAction.PerformAction  
     WScript.Echo "Action " + objClientAction.Name + " initiated"
  End If
Next
0
 
LVL 2

Author Comment

by:supportemea
ID: 24794912
Thanks Hayes, This works a treat :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
Know what services you can and cannot, should and should not combine on your server.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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

19 Experts available now in Live!

Get 1:1 Help Now