Forzare un refresh hardware via codice

In questo post Rilevazione modifiche hardware avevo già affrontato questo problema valutando quali soluzioni venivano offerte da un punto di vista sistemistico. In questi giorni però ho avuto l’esigenza di forzare la rilevazione hardware via codice e dopo aver letto questo articolo della KB: How To Force Reenumeration of a Device Tree From an Application ne … Leggi tutto

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 … Leggi tutto

Nascondere la visualizzazione delle sottoproprietà

Creando controlli o componenti custom capita di creare proprietà che referenzino oggetti e in molti casi si vorrebbe evitare di vedere le proprietà di questi oggetti. In questi casi basta applicare alla proprietà il seguente attributo: <System.ComponentModel.TypeConverter(GetType(System.ComponentModel.ReferenceConverter))> _ Public Property MyConfirmButton() As System.Windows.Forms.Button

KB IIS 6.0 & SQL Server 2000

How to use the IIS Debug Diagnostics Tool to troubleshoot an IIS process that stops unexpectedly http://support.microsoft.com/kb/919789 How to troubleshoot an IIS process that consumes lots of RAM by using the IIS Debug Diagnostics tool http://support.microsoft.com/kb/919790 You cannot remotely connect to a named instance of SQL Server 2000 by using the TCP/IP protocol http://support.microsoft.com/kb/922131

KB XP & 2003 per problemi con USB

USB devices no longer work correctly after you install the Intel Chipset Software Installation Utility in Windows XP or in Windows Server 2003 http://support.microsoft.com/kb/921411 Una periferica USB connessa a un hub USB 2.0 non viene rilevata in Windows XP Service Pack 2, Windows Server 2003 Service Pack 1 o Windows Server 2003 versioni x64 http://support.microsoft.com/kb/892050/it