+ \r
+ try {\r
+ Remove-PSDrive $smbDrive -ErrorAction Stop\r
+ }\r
+ catch {\r
+ Write-Host "Could not disconnect network drive $smbDrive`: $_.Exception.Message"\r
+ $errorMessages += "Could not disconnect network drive $smbDrive`: $_.Exception.Message"\r
+ }\r