"Allow this program to be installed from the Install Software task sequence without being advertised"


If you are trying to install multiple software packages using a ConfigMgr task sequence “Install Software” step, where each of the package and program combinations is stored in a task sequence variable (e.g. PACKAGES001=XXX00001:Install), you might find that they don’t work.  If you go digging through the SMSTS.LOG, you’ll see messages like this:

No matching policy assignments received.
Policy download failed, hr=0x80004005

This is because you have to give ConfigMgr permission to install a package that isn’t advertised to the computer.  (ConfigMgr always tries to be “secure by default” and making this the default would violate that principle.)  This is done using the “Allow this program to be installed from the Install Software task sequence without being advertised” checkbox on each program’s properties.  The explanation given in the ConfigMgr documentation (http://technet.microsoft.com/en-us/library/bb680842.aspx) is:

Important

The program specified must have the Allow this program to be installed from a list of software packages in the “Install Software” task sequence step without being advertised option selected or the installation will fail. This option can be selected when adding a program to an existing package in the New Program Wizard. Alternatively, you can specify this option by right-clicking an existing program, selecting clicking Properties, and then clicking the Advanced tab.

So, before you can install a dynamic list of packages, you need to check this box on every program that you are planning to install this way.  Depending on how many programs you have, this could be rather painful via the ConfigMgr console.  So in MDT 2008 Update 1, we included a new sample script to help with this (a script I forgot to mention in my previous post).  Look in the “C:\Program Files\Microsoft Deployment Toolkit 2008\Samples” folder for a file named EnableProgramsForTS.vbs.  You will need to make a few edits toward the top of this script before it will work in your environment:

sProviderServer = “”
sSiteCode = “CEN”
sNamespace = “root\sms\site_” & sSiteCode
sUsername = “”
sPassword = “”

Change these values to specify the proper connection details for your ConfigMgr site (whichever site owns packages that need updating, typically the central primary site) and then run it.  (Don’t specify a username and password if you are running the script on the ConfigMgr server.  These values are always optional, but when making a local WMI connection they can’t be specified.)  The script will check the “Allow” box for every program on every package.

If there is a subset of programs that you want to enable, you can tweak the script as required.  (Of course if the criteria is too complex it’s probably easier to just use the UI.)


Comments (6)

  1. Anonymous says:

    Thanks for this one, saved me a lot of work/time!

  2. Anonymous says:

    Are there any other scenarios where this might come up?  I am getting the "No matching policy assignments received.  Policy download failed, hr=0x80004005" but the box is checked to allow the program to be installed from the Install Software task sequence without being advertised.

  3. Anonymous says:

    Thank you for sharing this information with us, we

  4. SCCM 2012 and Applications, not programs says:

    I was experiencing this issue even though I recreated deployment, deployment type, and even the application with the "Allow….from task sequence.." checked. The mistake I made was in the Collection Variables tab associated with the collection of the Applications
    I was trying to install during the Task Sequence using the variables.

    The Name of the variable has to associate with your variable being used..ie APP01 for variable APP. The part that I made the mistake on was the Value associated with the Variable Name. The Value HAS TO BE the name of the actual Application Name. So if you have
    an application named Microsoft Office using Variable APP and depending on how you want to install them your Variable Name should be APP01 and Value must be Microsoft Office

    Here is the reference that caught my eye:
    http://technet.microsoft.com/en-us/library/6b116f87-a1df-4194-ad57-f01d797b7d13#BKMK_InstallApplication

    Install applications according to dynamic variable list
    This setting specifies the base name for a set of task sequence variables that are defined for a collection or for a computer. These variables specify the applications that will be installed for that collection or computer. Each variable name consists of its
    common base name plus a numerical suffix starting at 01. The value for each variable must contain the name of the application and nothing else.

  5. showbox says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    http://showboxandroids.com/showbox-apk/
    http://showboxappandroid.com/
    Latest version of Showbox App download for all android smart phones and tablets.
    http://movieboxappdownloads.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    http://showboxappk.com/showbox-for-ipad-download/
    http://showboxappk.com/showbox-for-iphone/
    Showbox for PC articles:
    http://showboxandroids.com/showbox-for-pc/
    http://showboxappandroid.com/showbox-for-pc-download/
    http://showboxforpcs.com/
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings. Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android.
    The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.

  6. aw says:

    hai, I just want to tell you that I am just very new to blogs and seriously loved this website. More than likely I’m planning to bookmark your blog post .
    You amazingly come with really good posts. Thanks a lot for sharing your blog Microsoft.

    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20QNB%20Kesawan
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Maspion%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Mayapada%20Internasional
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Mestika%20Dharma
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Metro%20Ekspress
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Mutiara
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Nusantara%20Parahyangan
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Permata
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20OCBC%20NISP
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Sinarmas
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Mega
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Of%20India%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Syariah%20Mega%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20BNP%20Paribas%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Capital%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20KEB%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Rabo%20Bank
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Resona%20Perdania
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Agris
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Maybank
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Commonwealth