Skip to content

Commit b903b54

Browse files
author
Matt
committed
get rid of some weird string interpolation stuffs
1 parent 1595129 commit b903b54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CheckMailBoxStats/run.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function Connect-HtExchangeOnline {
113113
return $true
114114
}
115115
catch {
116-
Write-Error "Failed to connect to Exchange for tenant $TenantName: $_"
116+
Write-Error "Failed to connect to Exchange for tenant $($TenantName): $_"
117117
return $false
118118
}
119119
}
@@ -145,7 +145,7 @@ function Get-HtStorageTable {
145145
return $table
146146
}
147147
catch {
148-
Write-Error "Failed to get/create storage table '$TableName': $_"
148+
Write-Error "Failed to get/create storage table $($TableName): $_"
149149
throw
150150
}
151151
}
@@ -292,7 +292,7 @@ function Check-MailboxSizes {
292292
Write-Information "Retrieved archive stats for $UserPrincipalName"
293293
}
294294
catch {
295-
Write-Warning "Could not retrieve archive stats for $UserPrincipalName`: $_"
295+
Write-Warning "Could not retrieve archive stats for $($UserPrincipalName): $_"
296296
}
297297
}
298298

@@ -324,7 +324,7 @@ Total Size: $([math]::Round(($totalSize + $archiveSize)/1GB, 2)) GB
324324
}
325325
}
326326
catch {
327-
Write-Error "Error checking mailbox size for $UserPrincipalName`: $_"
327+
Write-Error "Error checking mailbox size for $($UserPrincipalName): $_"
328328
}
329329
}
330330

0 commit comments

Comments
 (0)