< Back

Test-MVPContribution

Sat Jan 18, 2020 4:54 pm

NAME Test-MVPContribution



SYNOPSIS

Tests for matching MVP Contributions on your MVP profile





SYNTAX

Test-MVPContribution [[-StartDate] <String>] [[-Title] <String>] [[-ReferenceUrl] <String>] [-ReturnMatch]

[<CommonParameters>]





DESCRIPTION

The Test-MVPContribution function looks for contributions that match supplied criteria.



It can either return a boolean value, or the matching object.





PARAMETERS

-StartDate <String>

Specifies the Date of the activity



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Title <String>

Specifies the Title of the activity



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ReferenceUrl <String>

Specifies the Url of the activity



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ReturnMatch [<SwitchParameter>]

Returns the matching contribution, rather than a boolean value



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





https://github.com/lazywinadmin/MVP



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-MVPContribution -Title 'PowerShell Command Precedence' -ReferenceUrl

'https://lazywinadmin.com/2017/06/CommandPrecedence.html'



This command returns $true if a contribution is found with both a matching title and url









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Test-MVPContribution -Title 'User Group Presentation - FRPSUG' -ReturnMatch



This command returns the matching contribution object if it is found











RELATED LINKS