Re-run User or Usergroup targetted Mandatory ad - RCrumbaker Web Remote Console 3.21

There are multiple scripts, standalone tools, right-click console additions to help an SMS admin trigger a re-run of a previously run (and failed, or succeeded) mandatory advertisement targetted to a machine.

For those few of us that target advertisements to usernames or usergroups (I believe there are 3 of us, hi guys!), to re-run the ad has always meant (for me at least), remoting into the computer, going to Run Advertised Programs, and re-running the failed advertisement manually.

Attached is a zip file containing a vbscript, as well as a code snippet to insert into your machrest.asp if you prefer to add a button to your Web Remote Console. The script or button will trigger a re-run of a user-based advertisement.

Notes: unlike Machine-based resets, the trigger to re-install is not instant. 1 or 2 User Policy Refreshes are required for the client to realize it needs to rerun the user or usergroup targetted mandatory advertisement. If you need a remote User Policy refresh script, Stuart Watret's right-click tools have that, or Ron Crumbaker's Web Remote Console can have a button for that.


To add this button to your version of Ron's web page, edit MachRest.asp, and add a button by your other buttons (about line 80-ish):
<INPUT id="Button729" style='WIDTH: 180px' type='button' value='ReRun User Ad' name='Btnl729'>

Then add the attached (the Sub) probably near the bottom, just before the </script>, after all of the other Sub/end Sub routines

If you do not have Ron's page implemented, in the attached file is a standalone vbscript you can use to reset a user-based ad.

PS: The vbscript could be converted into a right-click console tool. I normally don't do that, but I've offered it to Stuart Watret, he's considering it as an addition to his next update of his tools. As of this article being written, his tools are version 1.3 Check his web site for an updated version, and the release notes to see if this script has been integrated.
Published Wednesday, November 29, 2006 8:47 PM by skissinger

Comments

No Comments