Horje
powershell try catch connect-viserver Code Example
powershell try catch connect-viserver
  try {
    Write-debug "Connecting to vCenter, please wait.."
    #Connect to vCenter
    Connect-ViServer -server $vcInfo.server -credential $creds -ErrorAction Stop | Out-Null
  }
  catch [Exception]{
    $status = 1
    $exception = $_.Exception
    Write-debug "Could not connect to vCenter"
    $msg = "Could not connect to vCenter"
    LogSysTo-File $msg $status $env:username $exception.message
  }




Shell

Related
Install Mapproxy Code Example Install Mapproxy Code Example
how do I add a commit to an existing pull request Code Example how do I add a commit to an existing pull request Code Example
install specific version pacakge go Code Example install specific version pacakge go Code Example
git log get out hotkey Code Example git log get out hotkey Code Example
ionic capacitor file-chooser Code Example ionic capacitor file-chooser Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9