This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from JPRuskin/Show-MVPProfile
Add Show-MVPProfile
- Loading branch information
Showing
3 changed files
with
84 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
function Show-MVPProfile { | ||
<# | ||
.SYNOPSIS | ||
Displays the MVP Profile for $ID | ||
.DESCRIPTION | ||
Opens the profile of the ID(s) provided, or your profile if no ID is specified, in the default browser. | ||
.PARAMETER ID | ||
It's an MVP ID | ||
.EXAMPLE | ||
Show-MVPProfile | ||
It shows your MVP Profile | ||
.EXAMPLE | ||
Show-MVPProfile -ID 5000475, 5000890 | ||
It shows the profiles for Francois-Xavier Cat and Emin Atac | ||
.EXAMPLE | ||
Get-MVPProfile -ID 4025267 | Show-MVPProfile | ||
It shows the profile for Joel Bennett | ||
#> | ||
[CmdletBinding()] | ||
param( | ||
[Parameter(ValueFromPipeline, ValueFromPipelineByPropertyName)] | ||
[Alias('MvpId')] | ||
[ValidateNotNullOrEmpty()] | ||
[string[]]$ID = (Get-MVPProfile).MvpId | ||
) | ||
process { | ||
foreach ($MVP in $ID.Where{$_}) { | ||
Start-Process "https://mvp.microsoft.com/en-us/PublicProfile/$MVP" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters