Sha256: aa27b63ee00bb9d967bbd082549c113768b66bd076ab56592d671f3bd8db64ad

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

# fail on errors and include uplift helpers
$ErrorActionPreference = "Stop"

function Get-SharePoint2016Edittion($productId) {
    
    # https://social.technet.microsoft.com/wiki/contents/articles/40031.sharepoint-2016-detect-the-installed-edition-with-powershell.aspx

    switch ($productId)
    {
        "5DB351B8-C548-4C3C-BFD1-82308C9A519B" { return "SharePoint 2016 Trail Edition" }
        "4F593424-7178-467A-B612-D02D85C56940" { return "SharePoint 2016 Standard Edition" }
        "716578D2-2029-4FF2-8053-637391A7E683" { return "SharePoint 2016 Enterprise Edition" }
        "435d4d60-f4cf-421d-abc8-129e4b57f7a"  { return "n/a" }
    }

    return $productId
}

Write-Host "Loading SharePoint snapin"
ASNP Microsoft.SharePoint.Powershell

Write-Host "Fetching local farm..."
$farm = Get-SPFarm

Write-Host "Farm version (config db version):"
$farm.BuildVersion

Write-Host "Farm products:"
$farm.Products | % { Write-Host ($_.Guid + " (" + (Get-SharePoint2016Edittion $_.Guid) + ")") }

Write-Host "SharePoint-related products:"
Get-SPProduct -Local `
    | Sort-Object -Property ProductName `
    |  % { Write-Host $_.ProductName }

exit 0

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vagrant-uplift-0.2.1902.49 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.46 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.42 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.40 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.39 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.37 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.32 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.19 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1
vagrant-uplift-0.2.1902.18 lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.info.ps1