Update output for Connect-SPOService
This commit is contained in:
@@ -73,11 +73,11 @@ function Connect-M365Suite {
|
|||||||
if ($RequiredConnections -contains "SPO") {
|
if ($RequiredConnections -contains "SPO") {
|
||||||
Write-Host "Connecting to SharePoint Online..." -ForegroundColor Yellow
|
Write-Host "Connecting to SharePoint Online..." -ForegroundColor Yellow
|
||||||
Connect-SPOService -Url $TenantAdminUrl | Out-Null
|
Connect-SPOService -Url $TenantAdminUrl | Out-Null
|
||||||
$spoContext = Get-SPOSite -Limit 1
|
$spoContext = Get-SPOCrossTenantHostUrl
|
||||||
|
$tenantName = Get-UrlLine -Output $spoContext
|
||||||
$tenantInfo += [PSCustomObject]@{
|
$tenantInfo += [PSCustomObject]@{
|
||||||
Service = "SharePoint Online"
|
Service = "SharePoint Online"
|
||||||
TenantName = $spoContext.Url
|
TenantName = $tenantName
|
||||||
TenantID = $spoContext.GroupId
|
|
||||||
}
|
}
|
||||||
$connectedServices += "SPO"
|
$connectedServices += "SPO"
|
||||||
Write-Host "Successfully connected to SharePoint Online." -ForegroundColor Green
|
Write-Host "Successfully connected to SharePoint Online." -ForegroundColor Green
|
||||||
|
Reference in New Issue
Block a user