rError:
The following error was generated when "$error.Clear();
$InstallerScriptFileName = 'Scripts\ManageScheduledTask.ps1'
$OneCopyScriptFileName = 'Scripts\CheckDatabaseRedundancy.ps1'
$PsInstallerScriptPath = Join-Path $RoleInstallPath $InstallerScriptFileName
$PsOneCopyScriptPath = Join-Path $RoleInstallPath $OneCopyScriptFileName
& $PsInstallerScriptPath -RunFromSetup -Install -DeleteExisting -ServerName $RoleNetBIOSName -TaskName "Database One Copy Alert" -PsScriptPath $PsOneCopyScriptPath -PsScriptArgs "-MonitoringContext -ShowDetailedErrors -ErrorAction:Continue" -Verbose
" was run: "Exception calling "GetFolder" with "1" argument(s): "This operation is supported only when you are connected to the server. (Exception from HRESULT: 0x800704E3)"".
Exception calling "GetFolder" with "1" argument(s): "This operation is supported only when you are connected to the server. (Exception from HRESULT: 0x800704E3)"
Exception has been thrown by the target of an invocation.
This operation is supported only when you are connected to the server. (Exception from HRESULT: 0x800704E3)
The following error was generated when "$error.Clear();
$InstallerScriptFileName = 'Scripts\ManageScheduledTask.ps1'
$OneCopyScriptFileName = 'Scripts\CheckDatabaseRedundancy.ps1'
$PsInstallerScriptPath = Join-Path $RoleInstallPath $InstallerScriptFileName
$PsOneCopyScriptPath = Join-Path $RoleInstallPath $OneCopyScriptFileName
& $PsInstallerScriptPath -RunFromSetup -Install -DeleteExisting -ServerName $RoleNetBIOSName -TaskName "Database One Copy Alert" -PsScriptPath $PsOneCopyScriptPath -PsScriptArgs "-MonitoringContext -ShowDetailedErrors -ErrorAction:Continue" -Verbose
" was run: "Exception calling "GetFolder" with "1" argument(s): "This operation is supported only when you are connected to the server. (Exception from HRESULT: 0x800704E3)"".
Exception calling "GetFolder" with "1" argument(s): "This operation is supported only when you are connected to the server. (Exception from HRESULT: 0x800704E3)"
Exception has been thrown by the target of an invocation.
This operation is supported only when you are connected to the server. (Exception from HRESULT: 0x800704E3)