Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

Run task at system startup

Created: 04 Feb 2013 • Updated: 13 Feb 2013 | 21 comments
This issue has been solved. See solution.

Hello everyone,

I need to uninstall Acrobat at system startup before the user opens any other application.

 I have my silent uninstall working fine but if the user has Outlook already opened, the task fails. Under the task properties, I cannot find an option that allows me to run the task at system startup/user logon. I want to uninstall the application without the user knowing so I do not want to have a script close Outlook (if it is open).

Thank you all in advance

 

Comments 21 CommentsJump to latest comment

andykn101's picture

Use a Managed Software Delivery Policy.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

mclemson's picture

Create a Managed Software Delivery policy.  Under Policy Rules/Actions, Add > Software and add the software.   Then, with it selected, click the 'Advanced options' buttons, click the Run tab, and under User run conditions, choose Task can run: Whether or not the user is logged on.

When you select a schedule, you may want to avoid business hours if you're concerned a user might log on during the install.  If that's not a concern, just allow it to run any time of day.

Mike Clemson, Senior Systems Engineer, ASC
Intuitive Technology Group -- Symantec Platinum Partner
intuitivetech.com

SOLUTION
efyuze's picture

hi andykn101 and mclemson,

thank you both for your replies, I will try that out

regards

efyuze's picture

Hi again
I did manage to setup my Managed Software Delivery policy.

My question now is, I have a list of computers that I would want to uninstall Adobe. I cannot find an option in the Managed Software Delivery that allows me to add this static list of computers. So when a user logon to a computer on my list, I would like to uninstall Adobe.

Thanks in advance

efyuze's picture

Hi again
sorry I did not scroll down the page to the "Applied To" section.

This is what I am currently doing:
In the "Applied To" section
1.Selected Target - in the View list
2. In Filtering Rules, "Exclude computers not in" "Computer list" -- I added my computers

I will try this out and let you all know how I go.

If anyone has a better way to do this please let me know

thanks

andykn101's picture

I'd create two Filters.

1. List of PCs you want to remove Acrobat from

2. List of all PCs with Acrobat

Then make your target:

ECNI Filter 1

ECNI Filter 2

So the Policy doesn't apply to PCs that have successfuly removed Acrobat but you can set it to run for every startup until PCs remove it. Removal of Pcs from the Target will depend on how frequent your inventory is.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

efyuze's picture

hi Andy,
thank you for your reply. I installed Acrobat on my computer to check if my Policy worked but apparently not, Acrobat is still installed.

I will try your proposed solutions

thanks

andykn101's picture

Use the Remote Altiris Agent Diagnostics (RAAD) tool to easily diagnose and view the log:

http://www.symantec.com/docs/HOWTO21449

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

Andrew_Shishkov's picture

What settings have you specified for the MSD policy? Have you scheduled it to run on computer start-up and that policy can be executed "Whether or not the user is logged on" (it can be specified in Advanced settings) ?

Thanks,
Andrew.

efyuze's picture

hi andrew,
yes my MSD is scheduled to run at Schedule: computer start-up. Task to run whether or not user is logged on..

thanks

Andrew_Shishkov's picture

Thank you for this information. Have you checked in Altiris Agent UI that the MSD policy successfully arrived to the client? If yes, then what status is shown for the policy (is it Compliant\Not Compliant, was it ever executed etc.)?

Thanks,
Andrew.

efyuze's picture

hi andrew,
yes the package has been downloaded to the client (confirmed from my own computer). but the status is disabled.

thnk you

Andrew_Shishkov's picture

"Disabled" status is not what I would expect to see for Managed Delivery policy. Can you attach a screenshot how this policy looks in Altiris Agent UI?

 

Thanks,

Andrew.

efyuze's picture

hi Andrew,
please find the screenshot attached

My system is in French but some of the words are in English. Please let me know if there is a word that you dont understand and I will translate

thanks

AttachmentSize
Policy-Uninstall Acrobat.docx 20.87 KB
andykn101's picture

It looks like Acrobat isn't being detected so the uninstall doesn't run.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

efyuze's picture

hi andy,
thanks for point that out.
I had another look at my policy and noticed that the compliance settings "perform software compliance check using" was checked to use Adobe 9. Would this be the cause? I unchecked this and will test again

thanks

AttachmentSize
Policy-Acrobat X_2.docx 40.38 KB
Andrew_Shishkov's picture

Hi,

 

I see several problems on the screeenshots which you attached:

1) according to name of the policy you are trying to uninstall Abobe Acrobat 10 while detection rule name on the second screenshot is for Adobe Acrobat 9. Of cause it may happen that detection rule for version 9 will also work properly for version 10, but usually it is not the case. just unchecking the detection rule is not a proper way - in this case uninstall will run even on machines without software installed which obviously is not desired behavior. You need to create a separate detection rule for Abobe Acrobat 10 and assign it to the software resource.

2) on the first screenshot I see that policy contains only detection check and not command line execution. Can you ensure that "If software is not found, install it:" checkbox is checked for your MSD policy?

Attaching screenshot with the checkbox highlighted:

 

andykn101's picture

You need a Detection Rule specifically for the software you are trying to uninstall and to have that selected.

So if the Policy Detects the Software it will run the uninstall and if the Detection fails (if the sSoftware isn't on the PC or has already been uninstalled) it will do nothing. MSI code is the most usual type of rule.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

efyuze's picture

Hi Andrew and andy

Yes the problem was with my detection rule. Somehow it was set to Acrobat 9. I cannot remember if I set that or it was set automatically to version 9 because of Upgrade options ??.

I was not able to browse to add my Acrobat X to the list so had to create a new detection rule. This article helpded https://www-secure.symantec.com/connect/articles/symantec-software-management-71-best-practices-part-2. I created the new rule using Acrobat's registry key value (as in the article).

I will give this a try

thanks

andykn101's picture

You can only select the Detection Rule that is in the Software Resource and you can only have on Detection Rule per Software Resource, although that can have more than one sub rule.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

efyuze's picture

hello everyone

I would like to thank you all for your help. I am now able to uninstall Acrobat at computer startup. My problem was with my Detection Rule!

Thanks again