8

I recently set up a new SCCM 2012 environment at my workplace and now we are creating our applications for distribution.

Some applications are set up using a script. When during testing, something was not right and the content of the application needs to be changed. The distribution point keeps on serving the old content to the clients.

I was wondering what the proper procedure is for updating the DP's when the content of an application changes. I have tried redistributing to the distribution points and deleting old revisions but to no avail.

Omnomnomnom
  • 649
  • 2
  • 10
  • 22
  • 1
    You may be having problems with the DP Update processes. Anything in the site's logs (Administration, Site Operations, and some other menu options I can't remember off the top of my head)? – Chris S Feb 18 '13 at 15:32

2 Answers2

3

There is an option on the package to disconnect users so that sccm can update the package. Is this happening with all packages or just one?

enter image description here

Update

I think I know what's happening. I've never used the redistribute option as I never saw the point, now I'm curious and this blog post confirmed my theory that it's more for repair and not updating a package. It copies the package from a third location (not package source like updating the Distribution point) to the DP, which is not what we want to do.

To update the DP, highlight your package and click the highlighted button in my screenshot.

enter image description here

2nd Update

When working with App-v Applications, if I have to update the content, once I stage it to the directory that sccm will copy it from, I highlight the package, then go to the Deployment Types tab, then up top I will click on 'Refresh Content' and go through the prompts. I can confirm this works. In my particular application, this installs from the App Catalog, but apps advertised to the machine should work the same.

enter image description here

MDMoore313
  • 5,531
  • 6
  • 34
  • 73
  • It is happening with a small number of packages, not all. That looks really useful. (I'm on holiday at the moment, but will certainly give this a try when I get back) – Omnomnomnom Mar 03 '13 at 22:20
  • I've tested this, but it does not solve the problem. – Omnomnomnom Apr 12 '13 at 12:15
  • @Omnomnomnom just to confirm you *are updating the DP after you add the content to the fileshare*, correct? – MDMoore313 Apr 12 '13 at 12:58
  • Yes, after changing the content for an application. I go to its properties, click on the content tab and choose redistribute for the necessary DP's. – Omnomnomnom Apr 12 '13 at 14:08
  • @Omnomnomnom please see my update. – MDMoore313 Apr 12 '13 at 14:22
  • On packages your suggested solution works fine (i've tested it). But my problem only occurs on applications. The "Update Distribution points" option does not seem to exist for applications. – Omnomnomnom Apr 12 '13 at 14:43
  • Did you ever find a solution for this? – Joe Taylor Jul 11 '13 at 09:14
  • @JoeTaylor I actually started working with App-v packages last week with SCCM, I updated my answer. If this is what you were doing and it still didn't work, I'll have to take another look, but this does work for me. – MDMoore313 Jul 11 '13 at 13:09
  • 1
    @MDMoore313 - Yup thats exactly what i did. Should have update this thread really. Can confirm that it works for me too – Joe Taylor Jul 12 '13 at 14:09
  • @Omnomnomnom Select the application, in the bottom pane, select the tab 'Deployment Types', then you can Update them – BlueCacti Mar 24 '14 at 13:17
  • @BigHomie You are right. The update content button appears when you are on the deployment types tab of an application. Since then I also upgraded to SP1 CU3 and we started using the "Update content" button. And everyhting seems to working fine now. Thank you for pointing this out! – Omnomnomnom Mar 28 '14 at 10:14
0

just wrote a small powershell script that updates all applications :

try
{
$DPGroup = "PTB"
Get-Wmiobject -Namespace "root\SMS\Site_ptb" -Class SMS_Application -Filter "isLatest='true' and isExpired='false'" | foreach{
           $name = $_.LocalizedDisplayName
           echo "Application : $name"
           $dptypes = Get-CMDeploymentType -ApplicationName "$name"
           foreach ($dpt in $dptypes){
                $dptname = $dpt.LocalizedDisplayName
                echo "Deployment Type: $dptname"
                Update-CMDistributionPoint -ApplicationName "$name" -DeploymentTypeName "$dptname"
                }
           }
}
catch
{
    $_.Exception.Message
}
Sven
  • 97,248
  • 13
  • 177
  • 225
fokker
  • 21
  • 3