Created
March 25, 2019 23:45
-
-
Save lazywinadmin/0d6ff188488ff4f409424c5b6943b06f to your computer and use it in GitHub Desktop.
Revisions
-
lazywinadmin created this gist
Mar 25, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #https://lazywinadmin.com/2018/01/MVPModule-BackupMyEntries.html#backup-per-year # Connect to api $Key = '<Your Secret key>' Set-MVPConfiguration -SubscriptionKey $Key # Get All contributions $AllContrib = Get-MVPContribution -limit 1000 # Retrieve important data and select the useful properties that # we can use for the next import $AllContrib|Select-Object -Property startdate,title,description,referenceurl,AnnualQuantitySecond,AnnualQuantity,AnnualReach, @{L='Visibility';E={$_.visibility.description}}, @{L='ContributionType';E={$_.contributiontype.name}}, @{L='ContributionTechnology';E={$_.contributiontechnology.name}} | # Export to CSV Export-Csv .\AllMyContributionsBackup_$(Get-Date -Format yyyyMMdd).csv -NoTypeInformation