|
Di seguito tutti gli interventi pubblicati sul sito, in ordine cronologico.
Di Admin (del 23/03/2009 @ 10:50:58, in ASP.NET, linkato 160 volte)
Una semplice pagina .aspx che interroghi un server LDAP per ottenere la lista dei computer definiti in Active Directory. In realtà bastano semplici poche righe di codice.. che ora vi propongo.
Partial Public Class _Default Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
AD_GetComputerInAD()
End Sub
Public Sub AD_GetComputerName()
Dim dirEntry As DirectoryServices.DirectoryEntry = New DirectoryServices.DirectoryEntry() dirEntry.Path = "LDAP://xx.xx.xx.xx" '***con xx.xx.xx.xx l'indirizzo IP del server LDAP
dirEntry.Username = "username" dirEntry.Password = "password"
'Dim dirEntry As DirectoryServices.DirectoryEntry = dirEntry Dim pcList As New Collection() Dim dirSearcher As DirectoryServices.DirectorySearcher = New DirectoryServices.DirectorySearcher(dirEntry) Dim dirSearchResults As DirectoryServices.SearchResult
dirSearcher.Filter = ("(objectClass=computer)")
For Each dirSearchResults In dirSearcher.FindAll() Dim ComputerName As String ComputerName = dirSearchResults.GetDirectoryEntry().Name.ToString() Response.Write("<font face='Verdana' size=2>" & Right(ComputerName, Len(ComputerName) - 3) & </font><br/>") Next End Sub
Lo username e la password si riferiscono ad un utente di dominio. Qui trovate il codice.
Buon lavoro!! 
Di Admin (del 04/03/2009 @ 06:49:24, in Varia, linkato 333 volte)
Oggi una cosetta facile-facile: rimuovere un contatto dall'autocompletamento nel campo destinatario in Micorosft Outloo; in realtà con lo stesso sistema è possibile anche eliminare elementi dalla cronologia di Internet Explorer
Creare un nuovo messaggio in Outlook.
Iniziare a scrivere il nome del contatto che vogliamo eliminare dalla lista di autocompletamento.
Impiegando il tasto 'freccia giu', selezionare il contatto da eliminare
Premere il tasto 'Del'.
Risolto, vero? 
|
|
<
|
settembre 2010
|
>
|
L |
M |
M |
G |
V |
S |
D |
| | | |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
|
|
|
| |
|
|
|
|
|
|
Ci sono 16 persone collegate
10/09/2010 @ 23.03.12
script eseguito in 63 ms
Totale articoli postati: 185
Totale letture: 142079
Totale commenti: 158
|