Skip to content

Microsoft OneDrive latest version #105

Answered by msfreaks
Maurice-AxiansNL asked this question in Q&A
Discussion options

You must be logged in to vote

You could try this:

(Get-MicrosoftOneDrive | Where-Object { $_.Type -eq "Exe" -and $_.Ring -eq "Production" }) | Sort-Object -Property @{ Expression = { [System.Version]$_.Version }; Descending = $true } | Select-Object -First 1

Will work for however many versions are returned.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Maurice-AxiansNL
Comment options

Answer selected by aaronparker
Comment options

You must be logged in to vote
1 reply
@msfreaks
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants