fix: Connect host output

This commit is contained in:
DrIOS
2024-06-23 18:16:19 -05:00
parent 4e0b20fc14
commit e81395bb4c

View File

@@ -101,9 +101,8 @@ function Connect-M365Suite {
Write-Host "Connected to the following tenants:" -ForegroundColor Yellow Write-Host "Connected to the following tenants:" -ForegroundColor Yellow
foreach ($tenant in $tenantInfo) { foreach ($tenant in $tenantInfo) {
Write-Host "Service: $($tenant.Service)" -ForegroundColor Cyan Write-Host "Service: $($tenant.Service)" -ForegroundColor Cyan
Write-Host "Tenant Name: $($tenant.TenantName)" -ForegroundColor Green Write-Host "Tenant Context: $($tenant.TenantName)`n" -ForegroundColor Green
#Write-Host "Tenant ID: $($tenant.TenantID)" #Write-Host "Tenant ID: $($tenant.TenantID)"
Write-Host ""
} }
$confirmation = Read-Host "Do you want to proceed with these connections? (Y/N)" $confirmation = Read-Host "Do you want to proceed with these connections? (Y/N)"
if ($confirmation -notlike 'Y') { if ($confirmation -notlike 'Y') {