Issue with powershell script on getting the recent update RRS feed

  • Question

  • Hi All,

    The below script giving the result exactly running normal when i run it locally but if I run it on remotely i have not get the correct output like I run on Locally.

    Issue:When Running it remotely, I didn't get updates which installed since 2019. I can see updates till 2018.

    get-hotfox -cn Server1 | Where {$_.Installedon -gt "01/01/2012 00:00:00"}

    Please help I need to run this on multiple machine. If I did not get  exact result that could be problem.

    Friday, May 24, 2019 3:42 PM

All replies

  • If you run cmdlets remotely sometimes their output get's serialized   ... and when you compare to dates or times you should use DateTime objects ... try this:
    Get-HotFix -ComputerName Server1 | 
        Where-Object { $_.Installedon -gt (Get-Date '01/01/2012') }

    Live long and prosper!


    Friday, May 24, 2019 4:59 PM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,


    Just do it.

    Monday, May 27, 2019 6:14 AM