http://www.scconfigmgr.com/2014/01/14/uninstall-an-application-in-software-center-with-powershell/

and

https://msdn.microsoft.com/en-us/library/jj874280.aspx



From: Kelley, Matthew
Sent: Monday, November 23, 2015 12:57 PM
To: [email protected]
Subject: RE: Trigger Specific App Deployment

Try this:

$TermID = <computername>

$W = Get-WmiObject -ComputerName $TermID -Namespace ROOT\ccm\ClientSDK -Class 
CCM_Application|?{$_.name -match "<name of your application>"}|select 
name,id,IsMachineTarget,Revision

([wmiclass]"\\$TermID\ROOT\ccm\ClientSdk:CCM_Application<file:///\\$TermID\ROOT\ccm\ClientSdk:CCM_Application>").Install($W.id,
 $W.Revision, $True, 0, 'Normal', $False)


From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Beardsley, James
Sent: Monday, November 23, 2015 12:24 PM
To: [email protected]<mailto:[email protected]>
Subject: [mssms] Trigger Specific App Deployment

Hello all. Is there a way to programmatically (WMIC, Powershell, etc) trigger a 
specific application to run that is listed in Software Center? For example, I 
have a script that gives the user the ability to postpone an installation and 
if they postpone, I want to setup a scheduled task to re-run the application in 
x number of hours. At the moment, I've got it where it will just run an 
Application Deployment Eval Cycle and that successfully triggers to app to 
re-run, however, as you know, it would also run any other applications that may 
have failed before. Ideally, I'd like to be able to trigger just the 
application that was postponed. I know it was possible with packages but I 
can't seem to find a way with applications. Guessing its not possible. If its 
not, I'll have to run the application outside of CM or stick with running a 
full AppDeploy Eval Cycle.

Thanks,

James Beardsley | Firm Technology Group
Dixon Hughes Goodman LLP

[cid:8644FC49-D5C9-45AE-B387-04FAFC0CC7A5]<http://www.dhgllp.com/>

________________________________

Confidentiality Notice: This e-mail is intended only for the addressee named 
above. It contains information that is privileged, confidential or otherwise 
protected from use and disclosure. If you are not the intended recipient, you 
are hereby notified that any review, disclosure, copying, or dissemination of 
this transmission, or taking of any action in reliance on its contents, or 
other use is strictly prohibited. If you have received this transmission in 
error, please reply to the sender listed above immediately and permanently 
delete this message from your inbox. Thank you for your cooperation.

**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues 



Reply via email to