external help file | Module Name | online version | schema |
---|---|---|---|
WingetTools-help.xml |
WingetTools |
2.0.0 |
Test Winget version
Test-WGVersion [-Quiet] [<CommonParameters>]
Test-WGVersion is a simple command you use to discover if you need to update winget.
PS C:\> Test-WGVersion
Installed Online Update Command
--------- ------ ------ -------
1.1.13405 1.1.12653 False C:\Users\Jeff\AppData\Local\Microsoft\Windo…
The default output is an object showing the currently installed version and the latest stable version online. If an update is available, and you are running in the PowerShell console or VS Code, the Update value will be displayed in Green.
PS C:\> Test-WGVersion -Quiet
False
Run the test and get a simple, Boolean result indicating if an update is available.
Get a Boolean result indicating if an update is available.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.