Su .net, C#, ... RSS 2.0
 Thursday, August 07, 2008

Una pagina interessante che propone una serie di script per leggere, creare e modificare le chiavi di registro:

http://www.activexperts.com/activmonitor/windowsmanagement/scripts/operatingsystem/registry/#CSDWORDV.htm

Ottimo per procedure da automatizzare al volo !

Luc.

Thursday, August 07, 2008 5:04:36 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
scripts | Windows
 Monday, May 26, 2008

A questo indirizzo:

http://www.codeproject.com/KB/cs/LogParser_DataProvider.aspx

si può trovare un data provider custom per il logParser. Con esso si possono effettuare le query con un formato simile a quello delle normali query SQL, sfruttando le potenzialità di ADO.NET.

Luc.

Monday, May 26, 2008 4:05:52 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
.net | C# | scripts | tools

Al link di seguito:

lmhosts e hosts

un articolo che spiega, in poche righe, a cosa servono i due files e come debbono esservi inserite delle voci per definire delle associazioni fra ip e nomi (lmhosts per nomi netBios, hosts per nomi dns).

Monday, May 26, 2008 3:20:23 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
scripts | tools

L'infrastruttura WMI (Windows Management Instrumentation) permette, tra le altre cose, una volta definito lo schema di una classe, di instanziarne a runtime delle istanze. Tale operazione può essere effettuata tramite script wsh oppure sfruttando le classi presenti nei namespace System.Management e System.Management.Instrumentation.

Anzitutto è necessario istanziare un oggetto della classe ManagementPath, che identifica la classe da considerare:

            ManagementPath pathObj = new ManagementPath();
            
            pathObj.ClassName = "Win32_IP4RouteTable";
            pathObj.NamespacePath = "root\\CimV2";

In questo caso si tratta di una route ip.

Deve essere poi creata l'istanza di classe:

            ManagementScope mgmtScope = new ManagementScope(pathObj);
            ManagementClass routeTableClass = new ManagementClass(mgmtScope, pathObj, null);

            ManagementObject routeTableObj = routeTableClass.CreateInstance();

Sulla quale viene effettuata l'impostazione delle proprietà:

            routeTableObj.SetPropertyValue("<prop_name>", <prop_value>);
            ...

Ed infine l'istanza viene salvata:

            PutOptions po = new PutOptions();
            po.Type = PutType.UpdateOrCreate;

            routeTableObj.Put(po); 

Luc.

Monday, May 26, 2008 2:49:42 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
.net | C# | networks | scripts
 Thursday, May 22, 2008

Su Vista il comando non esiste più. Ora si chiama msg.exe. Ecco come si usa:

msg /server:<nome_server> <nome_utente> "Ciao!"

:)

Luc.

Thursday, May 22, 2008 4:51:35 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
scripts | tools
 Sunday, May 18, 2008

Alcuni interessanti articoli trovati su un blog. Il primo spiega come creare uno snap-in custom per mmc 3.0 con .net:

A managed code 'task manager' MMC 3.0 snap-in

un altro, sullo stesso argomento ma in stile 'cook-book':

The managed MMC 3.0 snap-in cookbook

ed infine un articolo su come creare un comando custom per la powershell:

Easy Windows PowerShell cmdlet development and debugging

il blog contiene parecchie informazioni. Da vedere.

Luc.

Sunday, May 18, 2008 10:53:03 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
.net | C# | scripts
 Friday, May 16, 2008

Programma molto utile per la scrittura di query WMI (Windows Management Instrumentation). Si può scaricare da:

WMI Code Creator

Una volta selezionata una classe di interesse, è possibile generare codice per invocarne i metodi, le proprietà o gestirne gli eventi.

Molto utile per lo sviluppo o per la creazione di script di amministrazione, eventualmente in accoppiata con:

Scriptomatic 2.0

e con gli strumenti nella suite:

WMI Administrative Tools

tra cui CIM Studio e WMI Object Browser.

Preinstallati nel sistema si trovano inoltre, normalmente, i tools WBemTest.exe, per effettuare delle interrogazioni di prova e Wmic.exe, per eseguire delle query da riga di comando.

Luc.

Friday, May 16, 2008 7:03:57 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
.net | C# | scripts | tools | VB
Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Luca Biader Ceipidor
Sign In
Statistics
Total Posts: 47
This Year: 0
This Month: 0
This Week: 0
Comments: 4
Themes
Pick a theme:
All Content © 2010, Luca Biader Ceipidor
DasBlog theme 'Business' created by Christoph De Baene (delarou)