functions/Get-BcLicenseNo.ps1
function Get-BcLicenseNo { <# .SYNOPSIS Retrieves the LicenseNo from tenant databases .DESCRIPTION The Get-BcLicenseNo function retrieves data from a specified source and returns it in a structured format. .PARAMETER MajorVersion Limit the queried server instances to the given major version. .PARAMETER ServerInstance Limit the query to all tenants of the given server instance. .PARAMETER Tenant Limit the queried server instances to the given tenant id. .EXAMPLE Get-BcLicenseNo -MajorVersion 24 Retrieves ServerInstance, Tenant and LicenseNo from all tenants in all server instances that match the given major version 24. .NOTES Author: Jascha Vincke #> param ( [int]$MajorVersion, [string]$ServerInstance, [string]$Tenant ) # Function code here } # Export-ModuleMember -Function Get-BcLicenseNo |