Here is a variation for powershell 4
$KBArticle = "KB2775511"
$listOfComputers = Get-ADComputer -Filter 'Name -like "ABC-p-*"'
foreach ($item in $listOfComputers)
{
Write-Host $item.name
if (Test-Connection -ComputerName $item.name -Quiet)
{
get-hotfix -computername $item.name |where -property hotfixid -eq
$KBArticle
}
else
{
Write-Host $item.name "did not respond to ping"
}
}
On Tue, Oct 27, 2015 at 9:53 AM, Marcum, John <[email protected]> wrote:
> Thanks!
>
>
> * ------------------------------ *
>
> * John Marcum*
>
> MCITP, MCTS, MCSA
> * Desktop Architect*
>
> * Bradley Arant Boult Cummings LLP*
> * ------------------------------ *
>
>
>
> [image: H_Logo]
>
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Shawn M Thomas
> *Sent:* Monday, October 26, 2015 3:44 PM
> *To:* [email protected]
> *Subject:* [mssms] RE: Installed Updates View
>
>
>
> John,
>
>
>
> I believe what you are looking for is in the Win32_QuickFixEngineering
> class.
>
>
>
> Based on this link:
> https://www.reddit.com/r/SCCM/comments/3q8pnk/beginning_sccm/
>
>
>
> PowerShell = Get-WmiObject -Class Win32_QuickFixEngineering -Filter
> "HotFixId = 'KB2775511'"
>
> WMIC = wmic qfe where "hotfixid = 'KB2775511'"
>
>
>
> Thanks,
>
> *_______________________________________________________________________*
> *Shawn M. Thomas* *|* *ITS Infrastructure Applications* *|* Sr. Desktop
> Systems Engineer *|* *
> *[email protected] <[email protected]> *Rochester Institute of Technology *|*
> Rochester,
> NY 14623-5608 *|* (: 585-475-7877 *|* 6: 585-475-7860
>
>
>
> "Dignity consists not in possessing honors, but in the consciousness that
> we deserve them."
> -- Aristotle <http://en.wikipedia.org/wiki/Aristotle>
>
> Submit a request via email: [email protected]
>
> Check the status of an active request: footprints.rit.edu
>
> Manage your RIT computer account and computers: start.rit.edu
>
> Ritchie's List (office supplies): http://www.rit.edu/fa/ritchieslist/
>
>
> *Confidentiality Note:* *The information transmitted, including
> attachments, is intended only for the persons or entity to which it is
> addressed and may*
>
> *contain confidential and/or privileged material. Any review,
> retransmission, dissemination or other use of, or taking of any action in
> reliance upon this*
>
> *information by persons or entities other than the intended recipient is
> prohibited. If you received this in error, please contact the sender and
> destroy any*
>
> *copies of this information.*
>
>
>
>
>
>
>
>
>
> *From:* [email protected] [
> mailto:[email protected] <[email protected]>] *On
> Behalf Of *Marcum, John
> *Sent:* Monday, October 26, 2015 4:03 PM
> *To:* [email protected]
> *Subject:* [mssms] Installed Updates View
>
>
>
> I have a software product that lists installed patches in ARP>View
> Installed Updates. Where’s that info in SQL and/or WQL?
>
>
> * ------------------------------ *
>
> * John Marcum*
>
> MCITP, MCTS, MCSA
> * Desktop Architect*
>
> * Bradley Arant Boult Cummings LLP*
> * ------------------------------ *
>
>
>
> [image: H_Logo]
>
>
>
>
> ------------------------------
>
>
> Confidentiality Notice: This e-mail is from a law firm and may be
> protected by the attorney-client or work product privileges. If you have
> received this message in error, please notify the sender by replying to
> this e-mail and then delete it from your computer.
>
>
>
>
>
>