Solved

SCCM Client task Launch Commands

Posted on 2009-07-02
2
1,375 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
[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 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

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