Get hotfix list remotely

This script gets the hotfix list installed on a remote system. I add a date filter to the result.

Script :

<>

Reference
Get-HotFix

Syntax

 

Detailed Description

The Get-Hotfix cmdlet gets hotfixes (also called updates) that have been installed on either the local computer (or on specified remote computers) by Windows Update, Microsoft Update, or Windows Server Update Services; the cmdlet also gets hotfixes or updates that have been installed manually by users.

 

Parameters

-ComputerName<String[]>

Specifies a remote computer. The default is the local computer.

Type the NetBIOS name, an Internet Protocol (IP) address, or a fully qualified domain name of a remote computer.

This parameter does not rely on Windows PowerShell remoting. You can use the ComputerName parameter of Get-Hotfix even if your computer is not configured to run remote commands.

Aliases none
Required? false
Position? named
Default Value Local computer
Accept Pipeline Input? true (ByPropertyName)
Accept Wildcard Characters? false

-Credential<PSCredential>

Specifies a user account that has permission to perform this action. The default is the current user.

Type a user name, such as “User01” or “Domain01\User01”, or enter a PSCredential object, such as one generated by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.

Aliases none
Required? false
Position? named
Default Value Current user
Accept Pipeline Input? false
Accept Wildcard Characters? false

-Description<String[]>

Gets only hotfixes with the specified descriptions. Wildcards are permitted. The default is all hotfixes on the computer.

Aliases none
Required? false
Position? named
Default Value All hotfixes
Accept Pipeline Input? false
Accept Wildcard Characters? true

-Id<String[]>

Gets only hotfixes with the specified hotfix IDs. The default is all hotfixes on the computer.

Aliases none
Required? false
Position? 1
Default Value All hotfixes
Accept Pipeline Input? false
Accept Wildcard Characters? false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: