Get-Hotfix InstalledOn property not returning hotfix installed Date and Time on Windows Server 2008 SP2 but works on Windows Server 2008 R2 SP1

Hi,
      I am working on a validation script to get the list of hotfixes installed on Domain Controllers every month as part of our monthly DC patching process. I have been successful in getting these details for DC's with (Windows Server 2008
R2 SP1, Powershell v2.0) using the below command. 
Get-HotFix -cn $computer | Select-Object PSComputerName,HotFixID,Description,InstalledBy,InstalledOn | where InstalledOn -ge (Get-Date -Day 1 -Format d) | FT -AutoSize
I execute the above from a jump box with powershell v4.0 (Server 2008 R2)
However, when I try the same command from the jump box to query DC's with (Server 2008 SP2, powershell v2.0). It doesn't return the InstalledOn date and time. It was giving error for the InstalledOn property and hence I renamed it to $_.InstalledOn. Now
I don't get error but still no details displayed for InstalledOn property.
I tried using the below, as could see on few forums that this might resolve the issue. I also tried removing the "where" part but still no installation date returned. 
Get-HotFix -cn $computer | Select-Object HotFixID, Description, InstalledBy, @{l="InstalledOn";e={[DateTime]::Parse($_.psbase.properties["installedon"].value,$([System.Globalization.CultureInfo]::GetCultureInfo("en-US")))}}
| where {$_.InstalledOn -ge (Get-Date -Day 1 -Format d)} | FT -AutoSize
Have tried this locally on the 2008 SP2 DC but still not working. Please advise what is going wrong? 
Note: If I execute the below command locally on the 2008 SP2 DC, I am getting the InstalledOn output. However, when executed from the jump box with powershell v4.0 (Server 2008 R2) to query
the same 2008 SP2 DC, it just gives the prompt again without any error or output. This behavior is consistent for other 2008 SP2 DC's in the environment.
Get-HotFix -cn $computer | Select-Object HotfixID,Description,InstalledBy,InstalledOn | where {$_.InstalledOn -ge (Get-Date -Day 1 -Format d)} | FT -AutoSize

Hi jrv, I have already tried the Win32_QuickFixEngineering option, which doesn't work either. Apologies for not mentioning the workarounds that I have already tried.
Get-Hotfix seems to be just a wrapper for Win32_QuickFixEngineering as per the below article. (http://technet.microsoft.com/en-us/library/hh849836.aspx)
I have seen a mention of using the WU ActiveX control on few forums, but was too lazy to read it through.
After rigorous testing, it makes me realize that somewhere the Get-Hotfix dates formatting\comparison isn't working. 

Similar Messages

  • How to include install date and time in registry keys

    Hi All,
    Hopefully someone can help me. I am creating an installer which includes some properties in the build specs. I also wannt to include some registry keys to be added upon installation:
    1. I include the install directory of the application by providing the key with the value [INSTALLDIR]. This seems to work well and I have no problem with this.
    2. The other key I would like to include (but I do not know how) is the date and time of installation. Is there a way of automatically including this in a registry key (similar to INSTALLDIR)?
    I look forward to your expert advice!
    Kind Regards,
    Larry
    Laurence C.
    Senior Test Development Engineer
    Dyson Ltd
    Solved!
    Go to Solution.

    Larry,
    afaik the setting for "Run as Admin" is per OS process. As the "Run Exe after installation" is a different process as the application you installed by it (e.g. "MyApplication.exe"), i wouldn't expect the MyApplication.exe to require/use admin-rights.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • My apple TV not able to set date and time

    Pl let me know how to signin in iTunes in apple as date and time is not working

    Assuming this is not the first time you have used your Apple TV
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Also try restarting the router. (Also try removing it’s power cord for at least 30 seconds)
    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • Network not able to set date and time

    Live outside of US and have my new Apple TV set to my Air Express WiFi network but I have not found a way to set the date and time. I have set my region time zone but stll no luck. I cannot move forward with the installation until I resove this problem. So far my Apple TV is only good for Air Play of my Spotify music and YouTube. Without date and time can't even set iTunes. Help!

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Also try restarting the router. (Also try removing it’s power cord for at least 30 seconds)
    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • Not able to set date and time

    I have a problem with automatic date and time will not initiate. I have wireless connection verified; my DHCP is properly configured, the latest i-Tunes software update, homesharing ID matched with computer and security firewall verified configured properly for allowing all incoming connections. Second Apple TV 2 bought in past two days where it will not update wirelessly. Is this a port problem, NTP, or related to software update that went wrong?
    Contacted router vendor to troubleshoot their device. Verified with my computer, the wireless router works. Has anyone seen this problem before?
       Thanks!

    Welcome to the Apple Community.
    If you have previously been able to use your Apple TV without this problem, you might try restarting the Apple TV by removing ALL the cables for a 30 seconds. if this doesn't help try a restore.

  • Not able to adjust date and time - format does not permit

    Hello,
    I just scanned one old photo as a JPG and then imported it to Aperture 2, I renamed the file 1976-07-01_01.jpg based on the date the pic was taken. Then I tried to adjust the date and time in Aperture but got this error window:
    "Unable to adjust master file
    Aperture was not able to adjust the date and time of the master file "pic.jpg" because it has a format that does not permit date modification."
    What next?

    I am having a similar problem. The time is off by 12 hours exactly (ahead). When I touch date and time, screen goes black for less than a second and then reverts to main screen with all of the icons. I have first generation touch and just noticed this problem. All of the software is up to date. Any one know of a fix for this?

  • Not allowed to change date and time for some photos; why?

    I have some images that I scanned in of old photos.  I'm trying to change the date and time and location to reflect the time the original photo was taken.  I know how to do it in the menu system, but when I try to change the original data it tells me they are of a file type that won't allow this metadata to be changed.  They are simple JPEG's so I'm not sure what the problem is.  Do I need to convert it to some other format first to be able to do this?  Any ideas would be helpful...

    Hello Toran,
    are trying to change the date and time of the versions only, or are you trying to change the date and time of the masters too? If you are using
         Meta Data -> change date and time
    deselect "also change master file", this causes the problem, the new Aperture version seems not to allow to change the date and time of masters.
    There have been long discussions on this problem, see e.g. this thread; I do not know if somebody has found a solution by now,
    Regards, Léonie

  • On mozilla's OWN WEBSITE I get the message 'Your Firefox is out of date and may contain a security risk!" but I just download and installed the latest version?

    I have the latest version of firefox to date (10/15/2014 v32) and I still get messages while on various websites (Youtube, Google, Gmail) telling me that Your Firefox is out of date and may contain a security risk.
    I even get that message on the support pages of mozilla.org??
    I've tried the about:config reset the useragent(s) fix but that doesn't work.
    I've tried browsing in safe mode and still get the error.
    Why is this False/Positive happening?
    Thanks

    hello your useragent (the information the browser sends to websites to identify its version) - apparently mistakenly - shows this:
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20140923 '''Firefox/4.0.0; xs-A30GTmfXR3o;CkHZPf;'''
    probably some sort of unwanted software has overwritten it. please refer to this article in order to reset the user-agent settings in firefox:
    [[Websites say that Firefox is outdated or incompatible even though it's the latest version]]
    in case this does not help, please try to reset the whole browser:
    [[Reset Firefox – easily fix most problems]]

  • Not able to adjust Date and Time

    For about a month now I haven't been able to manually adjust the time and date. Everything else on my iPod works fine... but when I click to change time and date it just goes black for about one second then goes back to the main menu. I don't think anything has been added to it that is unsafe.. but to be sure I scanned all my folders that are on my iPod and then scanned my entire computer. Nothing came up in the scan.
    I do have the most up to date version of the software that is out.
    It currently says that it is Friday, February 23, 2007 at 5:33pm. It changed it's time and date on it's own... I can't correct it.
    So if anyone knows how to fix this please tell me how.

    I am having a similar problem. The time is off by 12 hours exactly (ahead). When I touch date and time, screen goes black for less than a second and then reverts to main screen with all of the icons. I have first generation touch and just noticed this problem. All of the software is up to date. Any one know of a fix for this?

  • DATE AND TIME PICKER ACTIVEX NOT WORKING

    The microsoft date and time picker (6.0) is not working in systems which doesnt have MS office. What is the solution to use this in systmes which doesnt have office.

    I'm not sure what the date and time picker does, but if you use an ActiveX object which does not exist on another system, the only way for it to work is to install MS Office on the target machine. The ActiveX component has to be registered on the systems.
    Probably not what you wanted to hear.
    Is there any way you can get what you want without using ActiveX?
    Mark

  • Chat Messages do not show date and time of buddies logging in and out.

    If I keep my buddy chat with friends open, it used show the date and time that they log in and out. Now after updating to Yosemite, it does not and also will show the last message exchange as something way older that the last chat session. Not the actual last exchange. Why?
    Is there a setting that I can keep the date and time log. It's important for work conversations. Thanks.

    I realize that my needs are outside of the normal editing workflow. I am a private investigator and last week I shot over 6 hours of surveillance video on a Sony video camera. Within this 6 hours of video there is at most 2 minutes of actual footage of my subject. So what I wanted to do was just import the parts of the clip I want, so I can avoid importing the whole 6 hours, and then add a text title of some sort that shows the date/time. My problem is that once I get this clip I have easy way of establising the TOD short of taking the clip capture time and then counting up using the SMTPE Timecode. In this regard iMovie makes it easier because I can just hover over the clip and see the TOD of that specific frame. iMovie on the other hand would force me to import the whole 6 hour video so i'm left moving between both programs which is less than ideal.

  • Date selection will not print properly when using Microsoft Date and Time Picker Control 6.0 in Excel 2010

    I have created a field input worksheet in which the user identifies start and end dates for training sessions, using the Date and Time Picker Active X Control.  It works fine on-screen, but when the worksheets are printed, the dates that were selected
    using the date picker calendar print out in an unreadable, huge font.  The large font also appears in the print preview mode.  I've tried modifying various properties in design mode, but nothing that I have tried will correct the problem. 
    Any ideas?

    The DTPicker seems to have some bugs in it when used on a worksheet. I have overcome the above by setting the size properties to the same size as a cell and the Linked cell property to the
    cell under the DTPicker. (Even setting the Linked cell had problems with an error message referring to the Check box property to be set to true so I just set it to true and inserted the linked cell and set the checkbox property back to
    false.)
    Then the VBA code below that Hides the DTPicker after a date is selected and unhides the DTPicker when the linked cell with the date is selected. The code is for 2 DTPickers so you will need to edit to suit your requirements.
    Caveat: If the DTPicker is visible then you can't hide it by selecting the same date again. If this occurs then it is a multi step operation. First select another date and the DTPicker will hide, then click on another cell then back on the cell with
    the date to unhide the DTPicker and then select the correct date.
    Hope it helps and feel free to get back to me with any questions etc.
    Private Sub DTPicker1_Change()
        Me.DTPicker1.Visible = False
    End Sub
    Private Sub DTPicker2_Change()
        Me.DTPicker2.Visible = False
    End Sub
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        Select Case Target.Address
            Case "$E$5"     'This is the linked cell for DTPicker1
                Me.DTPicker1.Visible = True
            Case "$E$13"    'This is the linked cell for DTPicker2
                Me.DTPicker2.Visible = True
        End Select
    End Sub
    Regards, OssieMac

  • Installed new Mountain Lion now Date and time do not update

    Hi,
    I have a new Macbook pro bought June 2011 and find that using Safari and playing a Flash Movie it will glitch the movie stallas and will nor play correctly.
    I see Kernel tasks are at 700 Mem and CPU at aaround 7%.
    So i reinstall a new downloaded system from Apple Mountain Lion.
    Stiil kernel Taskc are at 3 to 5% and and mem at 650meg
    I still get the glitches in the new Safari and now i see the Date and time shows but is frozen till i click in the data and time in the upper right hand corner of the screen it will then Upate the time.
    What is the problem here a clean install i see permissions have many errors after a clean install and will not fi, with disk utillities
    any help here please
    Thanks for any time given

    wersix wrote:
    How do I remove these? Do I just delete the folders using Finder? I'm new to Mac OS X.
    I'm seeing a number of posts about network printing problems after upgrading to Mountain Lion. I'm guessing the problem is something other than the drivers themselves.
    I sure appreciate your willingness to help me out with this!
    Yes, just delete the folders.
    There could be other problems, not driver-related, but updating to the most recent drivers will at least eliminate that possibility.
    Happy to try to help.

  • IntelMac (newest Tiger) not connecting after installing WinXP and switching

    Hi Everyone. I tried searching the discussions for this, but I couldn't find a suitable answer (or anyone else having this problem). Here's the issue (and my temporary solution, but really really annoying):
    I recently installed winXP on my intelMac core duo running Tiger.8. After a bit of trouble I figured out how to connect my Windows to my Airport Express (hassle). Anyway, everytime I'd switch back to Tiger, I don't connect to my network. It's a closed network, and when it starts up, Airport connects to the network (shows all 5 bars) but I cannot get online. My temporary resolution is to turn airport off then back on, and it finds (and connects) to my network so I can surf the 'net.
    The question is... is there a way that I can get around this temporary solution? (It's a bit annoying as my sister who is anti-computers has to use the 'net and gets frustrated when it's not connected.)
    ....Yes I realize I can just tell her how to get around the issue, but >_>..... Or if there is a way I can create a script to run at startup that will turn airport off and then on, after startup, then that would be great too....
    If there is someone that can help me out, that'd be greatly appreciated!
    Thanks.
    iMac Intel Core Duo 2.0GHz 1.5 GB RAM   Mac OS X (10.4.8)   WinXP installed and can connect to airport express

    I just recently installed it (maybe 3-4 wks ago?).... It's BootCamp 1.1.2, assuming newest drivers for the computer.
    Yes I've noticed about the date-time thing being offset by the amount of hours I'm on the XP -- almost always 5h, too, for some reason.
    I read in another post that XP might be stealing my IP address which is why I have to restart the Airport card (so I can get it back). But there's no viable solution. Happen to know any for the window's side? I'll have to ask my windows buddy this too.
    In the meantime....
    Do you think that there are scripts out there (or is it possible to make a script) that will automatically run when the computer restarts... and have it turn the airport card on/off? ...As well as go to date and time? I'm not very familiar with Scripting, and Automator Robot is bloody confusing....
    Any help is greatly appreciated!!
    Thanks.
    PS - Have you tried Parallels, if you switch back n forth so often? Aside from the drivers not existing, it's great for using regular applications. I tried to use it but, honestly, the games wouldn't load because of lack of drivers for video card (and lack of "finding" the video card to get a driver for it lol)

  • How can I get rid of the dates and time on my Notes

    How do I get rid of the dates and times on my Notes that appeared when I updated to 8?

    Yes, it's seems like a poor design decision.
    By putting the date on the line below the Note title in the Notes Index, the app shows half the number of notes per page AND if you have a large number of notes, it takes twice as long to stroll down.
    I doubt the designer actually uses the app. 
    TSAW

Maybe you are looking for