?
Solved

SCCM Client task Launch Commands

Posted on 2009-07-02
2
Medium Priority
?
1,377 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 2000 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

This is my 3rd article on SCCM in recent weeks, the 1st (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html) dealing with installat…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

752 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