Version 1.2.4.0 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot.

Get-PackageUpdateInfo

For AI agents: a documentation index is available at /llms.txt; a markdown version of this page is available at /v1.2.4.0/pl/docs/commands/get-packageupdateinfo/index.md.

SYNOPSIS

Pobierz informacje o aktualności zainstalowanych modułów

SYNTAX

DefaultSet1 (Domyślny)

Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-ShowToastNotification] [-Force] [<CommonParameters>]

CurrentUser

Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-ShowToastNotification] [-CurrentUser] [-Force] [<CommonParameters>]

AllUsers

Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-ShowToastNotification] [-AllUsers] [-Force] [<CommonParameters>]

ALIASES

Ten cmdlet ma następujące aliasy,

DESCRIPTION

Get-PackageUpdateInfo pobiera informacje o lokalnie zainstalowanych modułach i porównuje je z wersjami online pod kątem aktualności

EXAMPLES

PRZYKŁAD 1

PS C:\> Get-PackageUpdateInfo

Wyświetla informacje o aktualizacjach dla wszystkich modułów (CurrentUser i AllUsers). Wyjście może wyglądać tak:

Name Repository VersionInstalled VersionOnline NeedUpdate Path


PSReadline PSGallery 1.2 1.2 False C:\Program Files\WindowsPowerShell\Modules\PSReadline Pester PSGallery 4.4.0 4.4.2 True C:\Program Files\WindowsPowerShell\Modules\Pester

PRZYKŁAD 2

PS C:\> Get-PackageUpdateInfo -ShowOnlyNeededUpdate

To przefiltruje wyjście, pokazując tylko moduły, dla których NeedUpdate jest True. Wyjście może wyglądać tak:

Name Repository VersionInstalled VersionOnline NeedUpdate Path


Pester PSGallery 4.4.0 4.4.2 True C:\Program Files\WindowsPowerShell\Modules\Pester

PRZYKŁAD 3

PS C:\> "Pester", "PSReadline" | Get-PackageUpdateInfo

Obsługuje potok. Zwraca informacje tylko dla dwóch modułów: “Pester” i “PSReadline”.

Można to też zrobić za pomocą cmdletu Get-Module: Get-Module “Pester”, “PSReadline” | Get-PackageUpdateInfo

PARAMETERS

-AllUsers

Szukaj modułów tylko w katalogach AllUsers/system. Pamiętaj, że do aktualizacji tych modułów wymagane są prawa administratora.

Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: AllUsers
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-CurrentUser

Szukaj modułów tylko w profilu bieżącego użytkownika. Jest to przydatne, jeśli uruchamiasz bez praw administratora, co powinno być twoim domyślnym sposobem pracy.

Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: CurrentUser
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Force

Wymuś pobranie informacji o aktualności zainstalowanych modułów, nawet jeśli interwał UpdateCheckInterval od ostatniego sprawdzenia nie wygasł.

Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Name

Nazwa modułu do sprawdzenia.

Type: String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Repository

Repozytorium do sprawdzenia.

Type: String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ShowOnlyNeededUpdate

Ten przełącznik powoduje, że w wyjściu nie będą pokazywane moduły aktualne.

Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ShowToastNotification

Ten przełącznik wywołuje ładne powiadomienia Windows Toast z informacjami o wersji dla modułów, które wymagają aktualizacji.

Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- ToastNotification
- Notify
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

Ten cmdlet obsługuje parametry wspólne: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction oraz -WarningVariable. Więcej informacji znajdziesz w about_CommonParameters.

INPUTS

System.String[]

OUTPUTS

PackageUpdate.Info