Query for Software Updates Reports Install Date for only Some of the Installed Updates

We use the following query to retrieve a list of software updates for a specific collection and software update group.  There are many cases where the installation status of a software update is 'installed' but there is no corresponding 'install
date'.  Can anyone tell me why?
declare   @AuthListLocalID as int
declare @CollID as varchar(8)
Select @CollID=CollectionID
from v_Collection
WHERE CollectionID='ZSV0000A'
select @AuthListLocalID=CI_ID from   v_AuthListInfo
where    CI_UniqueID='ScopeId_EAD5EB80-CC39-4EA2-B08F-A45BB84F1D76/AuthList_4DEAD110-5740-495E-8BD8-467A55C50A0C'
select
rs.Name0 as ServerName,
catinfo.CategoryInstanceName as Vendor,
catinfo2.CategoryInstanceName as   UpdateClassification,
ui.BulletinID as BulletinID,
ui.ArticleID as ArticleID,
Case ui.Severity WHEN 10 THEN 'Critical' WHEN 8 THEN 'Important' ELSE LTRIM(ui.Severity) END as Rating,
ui.Title as Title,            
Targeted=(case when ctm.ResourceID is not   null then '*' else '' end),
Installed=(case when css.Status=3 then   '*' else '' end),
IsRequired=(case when css.Status=2 then   '*' else '' end),
Deadline=cdl.Deadline,            
CAST(CASE   IsNull(AddRem.InstallDate0,CAST('1/1/1900' as smalldatetime)) WHEN   CAST('1/1/1900' as smalldatetime) THEN AddRem64.InstallDate0 ELSE   AddRem.InstallDate0 END as Date) as 'Install Date',
ui.InfoURL as InformationURL
from v_UpdateComplianceStatus css
inner join v_UpdateInfo ui on   ui.CI_ID=css.CI_ID
inner join v_CIRelation cir 
on ui.CI_ID=css.CI_ID and cir.ToCIID =   ui.CI_ID -- add this
inner join v_CICategories_All catall on   catall.CI_ID=ui.CI_ID 
inner join v_CategoryInfo catinfo on   catall.CategoryInstance_UniqueID = catinfo.CategoryInstance_UniqueID and   catinfo.CategoryTypeName='Company' 
inner join v_CICategories_All catall2 on   catall2.CI_ID=ui.CI_ID 
inner join v_CategoryInfo catinfo2 on   catall2.CategoryInstance_UniqueID = catinfo2.CategoryInstance_UniqueID
and   catinfo2.CategoryTypeName='UpdateClassification'
left outer join v_CITargetedMachines ctm   on ctm.CI_ID=css.CI_ID
and ctm.ResourceID = css.ResourceID
left outer join v_GS_ADD_REMOVE_PROGRAMS   AddRem on css.ResourceID = AddRem.ResourceID and ui.Title =   AddRem.DisplayName0
left outer join   v_GS_ADD_REMOVE_PROGRAMS_64 AddRem64 on css.ResourceID = AddRem64.ResourceID   and ui.Title = AddRem64.DisplayName0
left outer join (select atc.CI_ID
,CreationTime=min(a.CreationTime)
,ExpirationTime=min(a.ExpirationTime)
,StartTime=min(a.StartTime)
,EnforcementDeadLine=min(a.EnforcementDeadLine)
,LastModificationTime=min(a.LastModificationTime)
,Deadline=min(a.EnforcementDeadline)
from v_CIAssignment a
inner join v_CIAssignmentToCI atc on   atc.AssignmentID=a.AssignmentID
group by atc.CI_ID) cdl  
on cdl.CI_ID=css.CI_ID
left outer join v_R_System rs ON   css.ResourceID=rs.ResourceID
where    css.ResourceID in (
Select vc.ResourceID
FROM v_FullCollectionMembership vc
WHERE vc.CollectionID=@CollID)
and cir.FromCIID=@AuthListLocalID
and cir.RelationType=1  
order by
catinfo.CategoryInstanceName
, catinfo2.CategoryInstanceName
, ui.ArticleID

Hi Mate,
Its really difficult to do get the installed date of the patches as there is no table available in SCCM  DB to pull this info i had a requirement in the past but i was unable to do had done it via work around.
This can be done after editing of sms_def.mof file or else using the power-shell script in windows server 2008 where the powershell is a feature by default.
H/W inventory: 
For the 2000 servers this has to be installed but if we enable this its mentioned it may utilize upto 100 % of the Memory during the h/w inventory you can check that in your SMS_DEF.MOF  -
QuickFixEngineering you can see the warning.uickFixEngineering
http://support.microsoft.com/kb/279225/en-us
Powershell script:
http://msmvps.com/blogs/richardsiddaway/archive/2011/10/23/1760058.aspx
the warning for the quick fix engineering is not there on 2012 but there on 2007 hope the info help you to achieve your output.
Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights

Similar Messages

  • HT6147 If my iPhone and iPad both say I have  7.0.6 and under "General",  "Software Update" I receive the message "iOS  7.0.6  Your software is up to date" can I assume that the security patch has been installed and activated?

    If my iPhone and iPad both say I have  7.0.6 and under "General",  "Software Update" I receive the message "iOS  7.0.6  Your software is up to date" can I assume that the security patch has been installed and activated?

    Yes, you have the Security patch.

  • HT4623 Why do my iPhone cords for my 5 say it is not certified and may not work with this device? It's the same cord that came with my phone. The only difference is the iOS7 update.

    Why do my iPhone cords for my 5 say it is not certified and may not work with this device? It's the same cord that came with my phone. The only difference is the iOS7 update.
    Maps took me to the completely wrong side of town for a long standing business in town.

    Hello margmcarlson,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting iPhone, iPad, and iPod touch accessories
    http://support.apple.com/kb/TS2634
    Restore iPhone, iPad, or iPod touch to its factory default state. You should rarely need to use this step with an accessory issue.
    Best of luck,
    Mario

  • How to generate SIDs for a particular range of data for a DSO ?

    Hi All,
    Please let me know if there is any way to generate SIDs for a particular range of data for a DSO which does not have any SID values. I need this as when i am trying to load data from DSO to InfoCube it's taking a lot of time. When i tried to find the reason behind it, i came to know that most of the time is going in SID creation for the data which is getting loaded. Please share some solution for the same. Thanks...

    Hi,
    Try this.
    Create an internal table and populated it with the values present in the F4 help of the field. Then in AT SELECTION-SCREEN event check the value of the field with the values in the internal table and display the appropriate message.
    Sharin.

  • My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

  • When I load cds i get a message that states, "User not registered for online use." This problem has only begun since the new itunes update and is only a problem on my pc laptop.  Media content (track names, etc.) do not load.  Thanks

    When I load cds i get a message that states, "User not registered for online use." This problem has only begun since the new itunes update and is only a problem on my pc laptop.  Media content (track names, etc.) do not load.  Thanks

    See  Re: itunes 12 track names not found and user not registered for online use.
    tt2

  • Software updates sometimes do not install. I have two software updates that I continually show up as available to install. When I click on the install button it changes to installed. Checked About this Mac shows that the updates have not installed.

    Software updates sometimes do not install. I have two software updates that I continually show up as available to install. When I click on the install button it changes to installed. Checked About this Mac shows that the updates have not installed.

    What are the updates?

  • TS1702 My Kindle app suddenly stopped working on my iPhone 4s. All my software is up to date and I have restarted the phone, uninstalled and reinstalled the app and it still opens and shuts down instantly. Any ideas?

    My Kindle app suddenly stopped working on my iPhone 4s. All my software is up to date and I have restarted the phone, uninstalled and reinstalled the app and it still opens and shuts down instantly. Any ideas?

    We need clarification here.
    Please don't just state version numbers, also state which software.  iTunes 10.7 requires OSX 10.6.8 or higher.  Leopard is OSX 10.5.8.  You have two alternatives right now.  One is to stay with Leopard for a while (ultimately you should upgrade) and install iTunes 10.6.3 which is the last version to work with Leopard.  This should work with iOS6 on an iPhone4.  The other is to call Apple and order OSX 10.6 (Snow Leopard) and upgrade the computer to 10.6.8 which will allow you to run iTunes 10.7.  The caveat is we know nothing about which computer you run and if it even can run any system higher than Leopard.
    Here is iTunes 10.6.3
    iTunes 10.6.3 - http://support.apple.com/kb/DL1575
    If you want to try upgrading:
    Get more information about your computer. Go to the Apple in the upper left corner of any window, then "About this Mac" and "More Info..."  Copy and paste the information here, but omit the serial number and Hardware UUID (if present).  If it says something about Intel or Core Duo or Core 2 Duo in the processor you can upgrade to Snow Leopard (assuming you have sufficient RAM/"memory").  If it says PPC or PowerMac, you cannot.
    Kappy 08/2012 post on upgrading to Snow Leopard, then Lion or Mountain Lion -  https://discussions.apple.com/message/19401628 - including how to get Snow Leopard and Lion since Apple removed them from the online store. 
    It would help when posting issues here if you would state exact error messages you see.  "It's still not working!" while a description of the situation does not speed us to a diagnosis of the underlying issue.

  • I signed up for my apple account while living in Canada, and now I lives in the US. I am looking for a specific app that apparently is only available through the US app store. How can I change my account to the US Apple Store?

    I signed up for my apple account while living in Canada, and now I lives in the US. I am looking for a specific app that apparently is only available through the US app store. How can I change my account to the US Apple Store?

    As long as you have a form of payment (credit or debit card) with a USA source, and with a billing address in the USA, then you just need to change your payment information on your account to that, change your country in the store settings, and you will then be able to shop in the USA store.
    Your AppleID will work in any country's store, as long as your payment source and billing addres are also specific to that country (and you are in that country as well, as there may be IP filters in place to stop use outside of the country).

  • I'm having problems installing OSX update 10.9.2. Twice I have tried to install, and both times I get the message - Update could not be verified. Can anyone advise ?

    I'm having problems installing OS X update 10.9.2. Twice I have tried to install, and both times I get the message - Update could not be verified. Can anyone advise ?

    Are you updating from the App Store when you get that error message?
    If so, thry using the 10.9.2 Combo update -> http://support.apple.com/kb/DL1726.
    Good luck,
    Clinton

  • I am updating my mac book to Snowleopard but everytime the install reaches 45 minutes the computer just restarts.Help!!

    i am updating my mac book to Snowleopard but everytime the install reaches 45 minutes the computer just restarts.Help!!

    First run disk utility on your hard drive to repair it , also repair permissions then give it a try. 

  • HT201210 I wanted to update my iPad 2 from 4.3 to the latest update but I got stuck in the restoring step. I couldn't restore the iPad

    I wanted to update my iPad 2 from 4.3 to the latest update but I got stuck in the restoring step. I couldn't restore the iPad.
    The error message"The iPad cannot be restored at this time because the iPad software update server couldn't be contacted or is temprorily unavailable"

    Hello someone9,
    There are a few possible causes for this issue, sometimes it is related to Security Software, other times it is related to the internet connection. Let's follow the steps below:
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    - Install the latest version of iTunes.
    - Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    - Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    - Try to restore from another known-good computer and network.
    - If the errors persist on another computer, the device may need service.
    If the above does not resolve the issue, you can also check out this article:
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    http://support.apple.com/kb/TS1814
    Thanks,
    Matt M.

  • I am trying to update my macbook from osx10.6.8 to the free update but it says it can't update my computer even though it fits the standards. Any one have this problem?

    I am trying to update my macbook osx 10.6.8 to the free update and it says it cant update it. Anyone else have this problem and if so have you found a solution?

    The point in reference, regarding an offer of something 'free' could be any kind of upgrade to software, a newer version of browser, an adobe flash player, a supported version of OS X from the Mac App Store, etc. With an Apple ID one can access the online stores from OS X 10.6.8.
    So, one has to be specific, and also detail the computer configuration and specifications so as to help confirm what kind(s) of upgrade may actually work with the hardware vintage of the computer. The Model number, build series year, is it an Early, Mid, or Late (year) model?
    These factor in hardware differences and what kinds of OS X version or other software may or may not work in the computer. Also, an upgrade of RAM may be needed for some software upgrade or system upgrade, to work correctly. While your computer may be unable to upgrade to Mavericks 10.9.2.
    If too old, it may do OK with Mountain Lion 10.8.5, or maybe Lion 10.7.5. Some users with an older Mac prefer 10.6.8 if it works well and they have applications that run on there; older applications may not run on Mavericks 10.9.2... Or maybe the Mac won't like it. Make a backup before upgrades.
    •Mac OS X Support:
    http://www.apple.com/support/osx/
    •Apple - Support - OS X - Upgrade:
    http://www.apple.com/support/osx/upgrade/
    There's a lot of information available in Support pages.
    Good luck & happy computing!

  • Update from a mac 10.4.2 to the lates update how save it is?

    How save is my Mac, for having a kernel Panic if I want to update from a mac 10.4.2 to the latest update, I have it ignore few times the "Software Update" dialog box... the workstation work perfectly as it is now... so I don't know if I head on and update, I might the end up having problems after the updates... could any one advise me on this matter, please.
    thanks.
    amagan
    (Apple Mac late 2005) (Dual core 2ghz G5, Mac 10.4.2)   Mac OS X (10.4.2)   n/a

    The update is safe but whether or not you will have problems with it is entirely dependent on your setup.
    Personally, I had issue like several other users with the USB drivers in 10.4.7 causing problems with a USB PCI card. Not a huge issue as I've been using 10.4.6 USB drivers under 10.4.7 for about 2 months with no more problems.
    In any case, several users have posted checklists you can use to minimize potential problems:
    ABrody's Upgrade FAQ: http://www.macmaps.com/upgradefaq.html
    Gulliver's checklist: http://discussions.apple.com/thread.jspa?messageID=607363

  • Oh no i need to install tiger server but i lost the install disks.

    Oh no i need to install tiger server but i lost the install disks. I also could use Leopard server on another mac.

    Yikes!... they sure want a lt for it...
    http://www.ebay.com/sch/i.html?_nkw=mac+osx+tiger+server
    http://www.ebay.com/sch/sis.html?_nkw=Apple+Mac+OS+X+Leopard+Server+10+5+4+10+Cl ient+MB606Z+A

Maybe you are looking for

  • I was typing a post on my blog and Fire Fox crashed. I lost my data. How can I get it back?

    Fire Fox has been crashing the last few days. Tonight, I was typing an article post for my blog and it crashed again. I was just finishing the article (900 words). The open sites usually come back up and they all did except the blog post site. I lost

  • Return receipt plug in for Mac Mail software?

    Return receipt for Mac OSX 10.4.6 build in email software "Mail" 2.0.7 (746.2/749.3) 2005 Apple Inc. Is there a return receipt plug in for Mac Mail software? I want to know if my sent mail was received and know if the mail was opened.

  • Built-in Firewall and Blocking of Dreamweaver

    When I turn on the automatic firewall in Sharing Preferences (OS 10.4.11) my uploads to a remote server through Dreamweaver MX are blocked. Is there a way to open the Firewall to allow these uploads? Thanks for any suggestions.

  • Customer Quality notification for multiple batches

    Hi All, Is there any way I can reference multiple Batches to single quality notification? Present solution Proposed -  Using user exit insert New Zfields to notification to enter Batch nos manually. is there any other standard enhasment where multipl

  • Scan and email becomes blueish

    Hi, I tried to scan a document and do all the options: send by email, computer, memory card, USB drive. Everything is good (computer, memory card, USB drive) except send by email. The file that I received by email have blueish color when I printed it