Jump to content


jitaro

Anyone have a script to find where a patch is DL'd to?

Recommended Posts

Does anyone have a script to find out what deployment package a certain patch is downloaded to? I've been searching through each package one by one until I find it, which is quite tedious. Maybe a powershell script, a wql query, whatever you can think of. I've tried searching on this topic and it doesnt seem to be a common problem since I can find nothing on it.

 

I work in a very large enterprise environment. We have probably 30 deployment packages, most are organized by year, but some are not. Problem I have is when a local admin reaches out to me and says he's seeing an issue across his site where a certain patch is stuck at 0% when his workstations try to download it and I know the boundaries are good but I want to see if there is an issue with the package on his DP. Maybe it never got distributed to his site, failed trying to reach his DP's etc. I appreciate any help anyone can provide

Share this post


Link to post
Share on other sites

Here is a SQL query you can run from the Management Studio, Power BI, Excel ... etc.

Just cut the last line if you want a complete list or use it for filtering.

SELECT v_UpdateInfo.Title, v_ContentInfo.ContentSource
FROM v_UpdateInfo INNER JOIN
     v_UpdateContents ON v_UpdateInfo.CI_ID = v_UpdateContents.CI_ID INNER JOIN
     v_ContentInfo ON v_UpdateContents.Content_ID = v_ContentInfo.Content_ID
WHERE     (v_UpdateContents.ContentProvisioned = 1)
AND v_UpdateInfo.Title LIKE '%KB2900986%'

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.