Elencare i print job tramite WMI
Uno snippet per i print job in corso. Dim path As New System.Management.ManagementPath(“root\cimv2”) Dim options As New System.Management.ConnectionOptions ‘Local Host path.Server = “.” ‘Remote Host ‘path.Server = “ServerName” ‘options.Username = “DomainName\UserName” ‘options.Password = “UserPassword” Dim scope As New System.Management.ManagementScope(path, options) Dim query As New System.Management.ObjectQuery( _ “SELECT Name, Document, JobStatus, Owner, TotalPages, Size, TimeSubmitted…