Hi all,
Due to circumstances I was not able to look further into this.
Today I have checked again, this time using v9.8.5 on a Windows Server 2019 machine.
I created a Powershell task and added the below code
write-output "load DDL"
Add-Type -Path "E:\Apps\VisualCron\VisualCronAPI.dll"
Add-Type -Path "E:\Apps\VisualCron\VisualCron.dll"
write-output "setup CONN"
$Client = New-Object -TypeName VisualCronAPI.Client
$conn = New-Object VisualCronAPI.Connection
$conn.Address = "{COMPUTER(Name)}"
$conn.username = "Test_User"
$conn.password = "Test_UserTest_User01"
write-output "Connect"
$connection = $client.Connect($conn,$true,$true)
write-output "Show the connection details"
$connection
This is the output of the task:
Please note the parameter "Status" is is set to disconnected. So it has made a connection and then the connection was dropped again. So any subsequent action will be against a closed connection.
load DDL
setup CONN
Connect
Show the connection details
License : VisualCronAPI.License
ClientConnections : VisualCronAPI.ClientConnections
Jobs : VisualCronAPI.Jobs
Events : VisualCronAPI.Events
Certificates : VisualCronAPI.Certificates
SSHKeys : VisualCronAPI.SSHKeys
PGPKeyRings : VisualCronAPI.PGPKeyRings
Conditions : VisualCronAPI.Conditions
Connections : VisualCronAPI.Connections
Credentials : VisualCronAPI.Credentials
Notifications : VisualCronAPI.Notifications
TaskRepository : VisualCronAPI.TaskRepository
ExitCodes : VisualCronAPI.ExitCodes
Permissions : VisualCronAPI.Permissions
Processes : VisualCronAPI.Processes
Performance : VisualCronAPI.Performance
TimeExceptions : VisualCronAPI.TimeExceptions
NetworkDrives : VisualCronAPI.NetworkDrives
Variables : VisualCronAPI.Variables
Email : VisualCronAPI.EmailSettings
Explorer : VisualCronAPI.Explorer
Proxy :
Log : VisualCronAPI.Log
Computer : VisualCronAPI.Computer
Flow : VisualCronAPI.Flow
Connection : VisualCronAPI.Connection
ServerId :
MFT : VisualCronAPI.MFT
SyncSettings : VisualCronAPI.Sync
ClusterApi : VisualCronAPI.ClusterApi
CloudApi : VisualCronAPI.CloudApi
CloudServers : {}
TaskManager : VisualCronAPI.TaskManager
Client : VisualCronAPI.Client
Active : True
On : False
Port : 0
Authenticated : False
InSync : False
🅱Status : Disconnected🅱
ServerTimeDiff : 0
ServerTime : 8/13/2021 1:41:59 PM
TimeZoneName :
UTCTimeOffset : 00:00:00
Protocol : 9.0.0
Version :
BuildDate : 12:00:00 AM
LimitOutput : True
LimitOutputSize : 20480
MaxOutputSize : 2147483647
Connected : True
LanguageId : 11
AllowLocalConnectionsOnly : False
UserServerId : 2d8fb89d-b943-48f8-83b9-e9203a8096be
IP :
SendErrorReportsToVisualCron : True
CodePage : 0
ServiceInfo : VisualCron.VisualCronServiceInfoClass
Settings : VisualCron.ServerSettingsClass
InvokeControl :
ConnectionTime : 7.971
SyncTime : 0
ConnectionProgress : 0
Edited by user
2021-08-13T11:45:32Z
|
Reason: Not specified