Solved

SCCM Client task Launch Commands

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ports for sccm 2012 1 87
Sql Server Firewall Problems 2 73
Sharepoint 2010 Audit Logs 11 123
Demoting old remnants of Domain Controller from Active Directory 9 23
My previous article  (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)detailed one possible method to get SCCM 2007 installed an…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 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