DevAdmin Blog

Blog di Ermanno Goletto (Microsoft MVP Directory Services - MCITP - MCTS - MCSA - MCP)
posts - 975, comments - 549, trackbacks - 8

My Links

News

Avatar

Curriculum Vitae

Visualizza il profilo di Ermanno Goletto su LinkedIn

Follow ermannog on Twitter


Il contenuto di questo blog e di ciascun post viene fornito “così come é”, senza garanzie, e non conferisce alcun diritto. Questo blog riporta il mio personale pensiero che non riflette necessariamente il pensiero del mio datore di lavoro.

Logo Creative Commons Deed


Server Infrastructure Days 2013 - Milano - 18 e 19 Giugno


Logo SysAdmin.it SysAdmin.it Staff


Logo TechNet Forum TechNet Italia @ForumTechNetIt Follow TechNet Forum on Twitter


Logo MVP

Article Categories

Archives

Post Categories

Blogs

Friends

Knowledge Base

MVP Sites

Resources

August 2006 Blog Posts

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 FROM Win32_PrintJob") Dim search As New System.Management.ManagementObjectSearcher(scope, query) Dim objectCollection As System.Management.ManagementObjectCollection objectCollection = search.Get() Dim printerName, document, owner As String Dim pages, size As System.UInt32 Dim timeSubmitted As DateTime For Each prntJob As System.Management.ManagementObject In objectCollection        printerName = prntJob("Name").ToString().Split(","c)(0)        document = prntJob("Document").ToString()        owner = prntJob("Owner").ToString()        pages = System.Convert.ToUInt32(prntJob("TotalPages"))        size = System.Convert.ToUInt32(prntJob("Size"))        timeSubmitted = System.Management.ManagementDateTimeConverter.ToDateTime( _                 prntJob("TimeSubmitted").ToString())        Console.WriteLine("Printer: " & printerName)        Console.WriteLine("Document: " & document)        Console.WriteLine("Owner: " & owner)        Console.WriteLine("Pages: " &...

posted @ Wednesday, August 23, 2006 10:29 AM | Feedback (2) | Filed Under [ Code, Snippets & Scripts IT ]

KB Exchange 2003

How to use a VBScript to write proxy addresses to an Ldifde.exe-compatible import file in Exchange Server 2003 http://support.microsoft.com/kb/922258

posted @ Tuesday, August 22, 2006 6:59 AM | Feedback (0) | Filed Under [ Links Exchange ]

KB ASP.NET

Loading Web Parts into a catalog at run time http://support.microsoft.com/kb/910446

posted @ Friday, August 11, 2006 5:41 PM | Feedback (0) | Filed Under [ Links .NET Web ]

Modifica allo script Sendmail.vbs

Dietro suggerimento ho modificato lo Script per inviare mail tramite CDOSYS per supportare anche i parametri -Cc e -Bcc.

posted @ Friday, August 11, 2006 2:20 PM | Feedback (0) | Filed Under [ Links Code, Snippets & Scripts IT ]

Powered by:
Powered By Subtext Powered By ASP.NET