Version 1.2.5.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.5.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 sprawdza lokalnie zainstalowane moduły 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 wynik, pokazując tylko moduły, gdzie 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ługa potoku jest dostępna. To 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
Sprawdza tylko moduły 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
Sprawdza tylko moduły w profilu bieżącego użytkownika. Jest to przydatne, jeśli uruchamiasz bez praw administratora, co powinno być twoim domyślnym trybem 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
Wymusza 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 ukrywa moduły aktualne w wyniku.
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 notatkach do wydania dla modułów wymagających 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. Aby uzyskać więcej informacji, zobacz about_CommonParameters.