About the author

Related Articles

One Comment

  1. 1


    $computers = Get-Content C:UsersXXXXXXXXDesktopMachine_List.txt
    $patchlist = Get-Content C:UsersXXXXXXXXDesktopKB_List.txt
    foreach($computer in $computers)
    Get-HotFix -ComputerName $computer -Id $patchlist | select 
    InstalledOn,InstalledBy,Description,HotFixID,__SERVER | Format-Table | Out-File 
    #Get-CimInstance -ClassName Win32_Operatingsystem | select csname, lastbootuptime | 
    Format-Table |Out-File C:UsersXXXXXXXXDesktopreport1.txt
    gwmi win32_operatingsystem -ComputerName $computer | select csname, 
    @{LABEL='LastBootUpTime';EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}} | Out- 
    File C:UsersXXXXXXXXDesktopreport1.txt -Append

    Try this, This will allow you to get information what you are looking for. But this script only get installed patches information from the remote machines, If you want add one more loop to print the patches which are installed on another text file.


Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2017 SolutionMmyself.com