< Back

Get-LinaCurrentTenantID

Fri Jan 10, 2020 9:17 pm

NAME Get-LinaCurrentTenantID



SYNOPSIS

Get the current tenant





SYNTAX

Get-LinaCurrentTenantID [<CommonParameters>]





DESCRIPTION

Get the current tenant. If current tenant is the Global View (no tenant selected), it will return -1.





PARAMETERS

<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

None





OUTPUTS

Current tenant ID





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



PS C:\\>$current_tenant_id = Get-LinaCurrentTenantID



Get the current tenant ID.











RELATED LINKS