Menu Content/Inhalt
Accueil arrow Outils arrow WSHShell arrow WSH Shell : Assistance ADSI

Syndication

Abonnez-vous à ce fil RSS pour être tenu informé des nouveautés de ce site.

WSH Shell : Assistance ADSI Convertir en PDF Version imprimable Suggérer par mail
Écrit par Gilles LAURENT   
05-10-2007

Aperçu des fonctionnalités de la console WSH Shell

Assistance ADSI à l'aide du module _wshAdsi.inc

Microsoft (R) Windows Script Host Version 5.6                                   
Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.            
                                                                                
 _ _ _  ___  _ _   ___  _         _  _                                          
| | | |/ __>| | | / __>| |_  ___ | || |                                         
| | | |\__ \|   | \__ \| . |/ ._>| || |                                         
|__/_/ <___/|_|_| <___/|_|_|\___.|_||_|                                         
                                                                                
Windows Script Host (WSH) Shell v1.0.0.5 starting ...                           
                                                                                
Registering components ...                                                      
                                                                                
Loading external modules ...                                                    
  Loading _wshAdsi.inc ...                                                      
  Loading _wshIni.inc ...                                                       
  Loading _wshWmi.inc ...                                                       
                                                                                
Welcome ...                                                                     
It's 05/10/2007 19:12:05 and WSH Shell is up !                                  
                                                                                
Ready.                                                                          
                                                                                
WSH D:\Test> ' utilisation du module externe _wshAdsi.inc                       
WSH D:\Test> ' tous les modules (classes) sont chargés au démarrage de la       
WSH D:\Test> ' console donc il ne reste plus qu'à créer une instance            
WSH D:\Test> Set oAdsi=New wshAdsi                                              
WSH D:\Test> ' détermination des membres (méthodes et propriétés)               
WSH D:\Test> gm(oAdsi)                                                          
                                                                                
Category  Name                                                                  
--------  ----                                                                  
Function  Bind (strADSIPath)                                                    
Function  BindWithCredentials (strADSIPath, strUsername, strPassword)           
Function  GetProperties (Object)                                                
Property  strComputer                                                           
Property  Version                                                               
                                                                                
WSH D:\Test> ' lecture des propriétés du compte local "Administrateur"          
WSH D:\Test> ' il est tout d'abord nécessaire de réaliser une liaison (bind)    
WSH D:\Test> ' on utilise ici le fournisseur adsi WinNT                         
WSH D:\Test> Set oUser=oAdsi.Bind("WinNT://Administrateur,user")                
WSH D:\Test> ' affichage des propriétés de l'utilisateur                        
WSH D:\Test> ft oAdsi.GetProperties(oUser),"","","*"                            
                                                                                
Property               Mandatory  Syntax       Multivalued  Value               
--------               ---------  ------       -----------  -----               
Description            Faux       String       Faux         Compte d'utilisat...
FullName               Faux       String       Faux         administrateur      
AccountExpirationDate  Faux       Time         Faux         <Not Set>           
BadPasswordAttempts    Faux       Integer      Faux         0                   
HomeDirDrive           Faux       String       Faux                             
HomeDirectory          Faux       Path         Faux                             
LastLogin              Faux       Time         Faux         05/10/2007 18:39:...
LastLogoff             Faux       Time         Faux         <Not Set>           
LoginHours             Faux       OctetString  Faux         FFFFFFFFFFFFFFFFF...
LoginScript            Faux       Path         Faux                             
LoginWorkstations      Faux       String       Vrai         <Not Set>           
MaxLogins              Faux       Integer      Faux         <Not Set>           
MaxPasswordAge         Faux       Interval     Faux         3710851             
MaxStorage             Faux       Integer      Faux         -1                  
MinPasswordAge         Faux       Interval     Faux         0                   
MinPasswordLength      Faux       Integer      Faux         3                   
objectSid              Faux       OctetString  Faux         01050000000000051...
Parameters             Faux       String       Faux                             
PasswordAge            Faux       Time         Faux         5561712             
PasswordExpired        Faux       Integer      Faux         0                   
PasswordHistoryLength  Faux       Integer      Faux         0                   
PrimaryGroupID         Faux       Integer      Faux         513                 
Profile                Faux       Path         Faux                             
UserFlags              Faux       Integer      Faux         66049               
RasPermissions         Faux       Integer      Faux         1                   
Name                   Faux       String       Faux         Administrateur      
                                                                                
WSH D:\Test> ' il est également possible de consulter un objet sur une          
WSH D:\Test> ' machine distante                                                 
WSH D:\Test> ' on spécifie ici la machine distante via la propriété de l'objet  
WSH D:\Test> oAdsi.strComputer="DEVW2K"                                         
WSH D:\Test> Set oGroup=oAdsi.Bind("WinNT://Administrateurs,group")             
:: An error occured (70)                                                        
:: Permission refusée                                                           
                                                                                
WSH D:\Test> ' Oops ! Je ne possède pas les droits nécessaires !                
WSH D:\Test> ' essayons la méthode BindWithCredentials de l'objet oAdsi         
WSH D:\Test> Set oGroup=oAdsi.BindWithCredentials("WinNT://Administrateurs,group
","Administrateur","**********")                                                
WSH D:\Test> ' pas de message d'erreur : la liaison semble avoir réussi :-)     
WSH D:\Test> ' affichage des propriétés de l'objet                              
WSH D:\Test> ft oAdsi.GetProperties(oGroup),"","","*"                           
                                                                                
Property     Mandatory  Syntax       Multivalued  Value                         
--------     ---------  ------       -----------  -----                         
groupType    Vrai       Integer      Faux         4                             
Description  Faux       String       Faux         Les administrateurs ont l'a...
objectSid    Faux       OctetString  Faux         010200000000000520000000200...
Name         Faux       String       Faux         Administrateurs               
                                                                                
WSH D:\Test> ' le fournisseur adsi LDAP est également supporté                  
WSH D:\Test> ' lecture des propriétés du compte "Administrateur" sur la         
WSH D:\Test> ' machine distante (contrôleur de domaine) Windows 2003 R2         
WSH D:\Test> ' cette fois-ci le nom de la machine distante est transmis dans    
WSH D:\Test> ' le path LDAP. C'est simplement une autre méthode !               
WSH D:\Test> Set oUser=oAdsi.Bind("LDAP://HOME2003/cn=Administrateur,cn=users,dc
=domain,dc=local")                                                              
WSH D:\Test> ' NOTE: la propriété strComputer est mise à jour dynamiquement     
WSH D:\Test> echo oAdsi.strComputer                                             
HOME2003                                                                        
WSH D:\Test> ' affichage des propriétés de l'utilisateur                        
WSH D:\Test> ft oAdsi.GetProperties(oUser),"","","*"                            
                                                                                
Property                            Mandatory  Syntax                    Mult...
--------                            ---------  ------                    ----...
cn                                  Vrai       DirectoryString           Faux...
instanceType                        Vrai       INTEGER                   Faux...
nTSecurityDescriptor                Vrai       ObjectSecurityDescriptor  Faux   
objectCategory                      Vrai       DN                        Faux...
objectClass                         Vrai       OID                       Vrai...
objectSid                           Vrai       OctetString               Faux...
sAMAccountName                      Vrai       DirectoryString           Faux...
accountExpires                      Faux       INTEGER8                  Faux...
accountNameHistory                  Faux       DirectoryString           Vrai...
aCSPolicyName                       Faux       DirectoryString           Faux...
adminCount                          Faux       INTEGER                   Faux...
adminDescription                    Faux       DirectoryString           Faux...
adminDisplayName                    Faux       DirectoryString           Faux...
allowedAttributes                   Faux       OID                       Vrai...
allowedAttributesEffective          Faux       OID                       Vrai...
allowedChildClasses                 Faux       OID                       Vrai...
allowedChildClassesEffective        Faux       OID                       Vrai...
altSecurityIdentities               Faux       DirectoryString           Vrai...
assistant                           Faux       DN                        Faux...
attributeCertificateAttribute       Faux       OctetString               Vrai...
audio                               Faux       OctetString               Vrai...
badPasswordTime                     Faux       INTEGER8                  Faux...
badPwdCount                         Faux       INTEGER                   Faux...
bridgeheadServerListBL              Faux       DN                        Vrai...
businessCategory                    Faux       DirectoryString           Vrai...
c                                   Faux       DirectoryString           Faux...
canonicalName                       Faux       DirectoryString           Vrai...
carLicense                          Faux       DirectoryString           Vrai...
co                                  Faux       DirectoryString           Faux...
codePage                            Faux       INTEGER                   Faux...
comment                             Faux       DirectoryString           Faux...
company                             Faux       DirectoryString           Faux...
controlAccessRights                 Faux       OctetString               Vrai...
countryCode                         Faux       INTEGER                   Faux...
createTimeStamp                     Faux       GeneralizedTime           Faux...
dBCSPwd                             Faux       OctetString               Faux...
defaultClassStore                   Faux       DN                        Vrai...
department                          Faux       DirectoryString           Faux...
departmentNumber                    Faux       DirectoryString           Vrai...
description                         Faux       DirectoryString           Vrai...
desktopProfile                      Faux       DirectoryString           Faux...
destinationIndicator                Faux       PrintableString           Vrai...
directReports                       Faux       DN                        Vrai...
displayName                         Faux       DirectoryString           Faux...
displayNamePrintable                Faux       PrintableString           Faux...
distinguishedName                   Faux       DN                        Faux...
division                            Faux       DirectoryString           Faux...
dSASignature                        Faux       OctetString               Faux...
dSCorePropagationData               Faux       GeneralizedTime           Vrai...
dynamicLDAPServer                   Faux       DN                        Faux...
employeeID                          Faux       DirectoryString           Faux...
employeeNumber                      Faux       DirectoryString           Faux...
employeeType                        Faux       DirectoryString           Faux...
extensionName                       Faux       DirectoryString           Vrai...
facsimileTelephoneNumber            Faux       DirectoryString           Faux...
flags                               Faux       INTEGER                   Faux...
fromEntry                           Faux       Boolean                   Vrai...
frsComputerReferenceBL              Faux       DN                        Vrai...
fRSMemberReferenceBL                Faux       DN                        Vrai...
fSMORoleOwner                       Faux       DN                        Faux...
garbageCollPeriod                   Faux       INTEGER                   Faux...
gecos                               Faux       IA5String                 Faux...
generationQualifier                 Faux       DirectoryString           Faux...
gidNumber                           Faux       INTEGER                   Faux...
givenName                           Faux       DirectoryString           Faux...
groupMembershipSAM                  Faux       OctetString               Faux...
groupPriority                       Faux       DirectoryString           Vrai...
groupsToIgnore                      Faux       DirectoryString           Vrai...
homeDirectory                       Faux       DirectoryString           Faux...
homeDrive                           Faux       DirectoryString           Faux...
homePhone                           Faux       DirectoryString           Faux...
homePostalAddress                   Faux       DirectoryString           Faux...
houseIdentifier                     Faux       DirectoryString           Vrai...
info                                Faux       DirectoryString           Faux...
initials                            Faux       DirectoryString           Faux...
internationalISDNNumber             Faux       NumericString             Vrai...
ipPhone                             Faux       DirectoryString           Faux...
isCriticalSystemObject              Faux       Boolean                   Faux...
isDeleted                           Faux       Boolean                   Faux...
isPrivilegeHolder                   Faux       DN                        Vrai...
jpegPhoto                           Faux       OctetString               Vrai...
l                                   Faux       DirectoryString           Faux...
labeledURI                          Faux       DirectoryString           Vrai...
lastKnownParent                     Faux       DN                        Faux...
lastLogoff                          Faux       INTEGER8                  Faux...
lastLogon                           Faux       INTEGER8                  Faux...
lastLogonTimestamp                  Faux       INTEGER8                  Faux...
legacyExchangeDN                    Faux       CaseIgnoreString          Faux...
lmPwdHistory                        Faux       OctetString               Vrai...
localeID                            Faux       INTEGER                   Vrai...
lockoutTime                         Faux       INTEGER8                  Faux...
loginShell                          Faux       IA5String                 Faux...
logonCount                          Faux       INTEGER                   Faux...
logonHours                          Faux       OctetString               Faux...
logonWorkstation                    Faux       OctetString               Faux...
mail                                Faux       DirectoryString           Faux...
managedObjects                      Faux       DN                        Vrai...
manager                             Faux       DN                        Faux...
masteredBy                          Faux       DN                        Vrai...
maxStorage                          Faux       INTEGER8                  Faux...
memberOf                            Faux       DN                        Vrai...
mhsORAddress                        Faux       DirectoryString           Vrai...
middleName                          Faux       DirectoryString           Faux...
mobile                              Faux       DirectoryString           Faux...
modifyTimeStamp                     Faux       GeneralizedTime           Faux...
mS-DS-ConsistencyChildCount         Faux       INTEGER                   Faux...
mS-DS-ConsistencyGuid               Faux       OctetString               Faux...
mS-DS-CreatorSID                    Faux       OctetString               Faux...
msCOM-PartitionSetLink              Faux       DN                        Vrai...
msCOM-UserLink                      Faux       DN                        Vrai...
msCOM-UserPartitionSetLink          Faux       DN                        Faux...
msDFSR-ComputerReferenceBL          Faux       DN                        Vrai...
msDFSR-MemberReferenceBL            Faux       DN                        Vrai...
msDRM-IdentityCertificate           Faux       OctetString               Vrai...
msDS-AllowedToDelegateTo            Faux       DirectoryString           Vrai...
msDS-Approx-Immed-Subordinates      Faux       INTEGER                   Faux...
msDS-Cached-Membership              Faux       OctetString               Faux...
msDS-Cached-Membership-Time-Stamp   Faux       INTEGER8                  Faux...
msDS-KeyVersionNumber               Faux       INTEGER                   Faux...
msDs-masteredBy                     Faux       DN                        Vrai...
msDS-MembersForAzRoleBL             Faux       DN                        Vrai...
msDS-NCReplCursors                  Faux       DirectoryString           Vrai...
msDS-NCReplInboundNeighbors         Faux       DirectoryString           Vrai...
msDS-NCReplOutboundNeighbors        Faux       DirectoryString           Vrai...
msDS-NonMembersBL                   Faux       DN                        Vrai...
msDS-ObjectReferenceBL              Faux       DN                        Vrai...
msDS-OperationsForAzRoleBL          Faux       DN                        Vrai...
msDS-OperationsForAzTaskBL          Faux       DN                        Vrai...
msDS-ReplAttributeMetaData          Faux       DirectoryString           Vrai...
msDS-ReplValueMetaData              Faux       DirectoryString           Vrai...
msDS-Site-Affinity                  Faux       OctetString               Vrai...
msDS-SourceObjectDN                 Faux       DirectoryString           Faux...
msDS-TasksForAzRoleBL               Faux       DN                        Vrai...
msDS-TasksForAzTaskBL               Faux       DN                        Vrai...
msDS-User-Account-Control-Computed  Faux       INTEGER                   Faux...
msExchAssistantName                 Faux       DirectoryString           Faux...
msExchHouseIdentifier               Faux       DirectoryString           Faux...
msExchLabeledURI                    Faux       DirectoryString           Vrai...
msIIS-FTPDir                        Faux       DirectoryString           Faux...
msIIS-FTPRoot                       Faux       DirectoryString           Faux...
mSMQDigests                         Faux       OctetString               Vrai...
mSMQDigestsMig                      Faux       OctetString               Vrai...
mSMQSignCertificates                Faux       OctetString               Faux...
mSMQSignCertificatesMig             Faux       OctetString               Faux...
msNPAllowDialin                     Faux       Boolean                   Faux...
msNPCallingStationID                Faux       IA5String                 Vrai...
msNPSavedCallingStationID           Faux       IA5String                 Vrai...
msRADIUSCallbackNumber              Faux       IA5String                 Faux...
msRADIUSFramedIPAddress             Faux       INTEGER                   Faux...
msRADIUSFramedRoute                 Faux       IA5String                 Vrai...
msRADIUSServiceType                 Faux       INTEGER                   Faux...
msRASSavedCallbackNumber            Faux       IA5String                 Faux...
msRASSavedFramedIPAddress           Faux       INTEGER                   Faux...
msRASSavedFramedRoute               Faux       IA5String                 Vrai...
msSFU30Name                         Faux       IA5String                 Faux...
msSFU30NisDomain                    Faux       IA5String                 Faux...
msSFU30PosixMemberOf                Faux       DN                        Vrai...
name                                Faux       DirectoryString           Faux...
netbootSCPBL                        Faux       DN                        Vrai...
networkAddress                      Faux       CaseIgnoreString          Vrai...
nonSecurityMemberBL                 Faux       DN                        Vrai...
ntPwdHistory                        Faux       OctetString               Vrai...
o                                   Faux       DirectoryString           Vrai...
objectGUID                          Faux       OctetString               Faux...
objectVersion                       Faux       INTEGER                   Faux...
operatorCount                       Faux       INTEGER                   Faux...
otherFacsimileTelephoneNumber       Faux       DirectoryString           Vrai...
otherHomePhone                      Faux       DirectoryString           Vrai...
otherIpPhone                        Faux       DirectoryString           Vrai...
otherLoginWorkstations              Faux       DirectoryString           Vrai...
otherMailbox                        Faux       DirectoryString           Vrai...
otherMobile                         Faux       DirectoryString           Vrai...
otherPager                          Faux       DirectoryString           Vrai...
otherTelephone                      Faux       DirectoryString           Vrai...
otherWellKnownObjects               Faux       DNWithBinary              Vrai...
ou                                  Faux       DirectoryString           Vrai...
ownerBL                             Faux       DN                        Vrai...
pager                               Faux       DirectoryString           Faux...
partialAttributeDeletionList        Faux       OctetString               Faux...
partialAttributeSet                 Faux       OctetString               Faux...
personalTitle                       Faux       DirectoryString           Faux...
photo                               Faux       OctetString               Vrai...
physicalDeliveryOfficeName          Faux       DirectoryString           Faux...
possibleInferiors                   Faux       OID                       Vrai...
postalAddress                       Faux       DirectoryString           Vrai...
postalCode                          Faux       DirectoryString           Faux...
postOfficeBox                       Faux       DirectoryString           Vrai...
preferredDeliveryMethod             Faux       INTEGER                   Vrai...
preferredLanguage                   Faux       DirectoryString           Faux...
preferredOU                         Faux       DN                        Faux...
primaryGroupID                      Faux       INTEGER                   Faux...
primaryInternationalISDNNumber      Faux       DirectoryString           Faux...
primaryTelexNumber                  Faux       DirectoryString           Faux...
profilePath                         Faux       DirectoryString           Faux...
proxiedObjectName                   Faux       DNWithBinary              Faux...
proxyAddresses                      Faux       DirectoryString           Vrai...
pwdLastSet                          Faux       INTEGER8                  Faux...
queryPolicyBL                       Faux       DN                        Vrai...
registeredAddress                   Faux       OctetString               Vrai...
replPropertyMetaData                Faux       OctetString               Faux...
replUpToDateVector                  Faux       OctetString               Faux...
repsFrom                            Faux       OctetString               Vrai...
repsTo                              Faux       OctetString               Vrai...
revision                            Faux       INTEGER                   Faux...
rid                                 Faux       INTEGER                   Faux...
roomNumber                          Faux       DirectoryString           Vrai...
sAMAccountType                      Faux       INTEGER                   Faux...
scriptPath                          Faux       DirectoryString           Faux...
sDRightsEffective                   Faux       INTEGER                   Faux...
secretary                           Faux       DN                        Vrai...
securityIdentifier                  Faux       OctetString               Faux...
seeAlso                             Faux       DN                        Vrai...
serialNumber                        Faux       PrintableString           Vrai...
serverReferenceBL                   Faux       DN                        Vrai...
servicePrincipalName                Faux       DirectoryString           Vrai...
shadowExpire                        Faux       INTEGER                   Faux...
shadowFlag                          Faux       INTEGER                   Faux...
shadowInactive                      Faux       INTEGER                   Faux...
shadowLastChange                    Faux       INTEGER                   Faux...
shadowMax                           Faux       INTEGER                   Faux...
shadowMin                           Faux       INTEGER                   Faux...
shadowWarning                       Faux       INTEGER                   Faux...
showInAddressBook                   Faux       DN                        Vrai...
showInAdvancedViewOnly              Faux       Boolean                   Faux...
sIDHistory                          Faux       OctetString               Vrai...
siteObjectBL                        Faux       DN                        Vrai...
sn                                  Faux       DirectoryString           Faux...
st                                  Faux       DirectoryString           Faux...
street                              Faux       DirectoryString           Faux...
streetAddress                       Faux       DirectoryString           Faux...
structuralObjectClass               Faux       OID                       Vrai...
subRefs                             Faux       DN                        Vrai...
subSchemaSubEntry                   Faux       DN                        Vrai...
supplementalCredentials             Faux       OctetString               Vrai...
systemFlags                         Faux       INTEGER                   Faux...
telephoneNumber                     Faux       DirectoryString           Faux...
teletexTerminalIdentifier           Faux       OctetString               Vrai...
telexNumber                         Faux       OctetString               Vrai...
terminalServer                      Faux       OctetString               Faux...
textEncodedORAddress                Faux       DirectoryString           Faux...
thumbnailLogo                       Faux       OctetString               Faux...
thumbnailPhoto                      Faux       OctetString               Faux...
title                               Faux       DirectoryString           Faux...
tokenGroups                         Faux       OctetString               Vrai...
tokenGroupsGlobalAndUniversal       Faux       OctetString               Vrai...
tokenGroupsNoGCAcceptable           Faux       OctetString               Vrai...
uid                                 Faux       DirectoryString           Vrai...
uidNumber                           Faux       INTEGER                   Faux...
unicodePwd                          Faux       OctetString               Faux...
unixHomeDirectory                   Faux       IA5String                 Faux...
unixUserPassword                    Faux       OctetString               Vrai...
url                                 Faux       DirectoryString           Vrai...
userAccountControl                  Faux       INTEGER                   Faux...
userCert                            Faux       OctetString               Faux...
userCertificate                     Faux       OctetString               Vrai...
userParameters                      Faux       DirectoryString           Faux...
userPassword                        Faux       OctetString               Vrai...
userPKCS12                          Faux       OctetString               Vrai...
userPrincipalName                   Faux       DirectoryString           Faux...
userSharedFolder                    Faux       DirectoryString           Faux...
userSharedFolderOther               Faux       DirectoryString           Vrai...
userSMIMECertificate                Faux       OctetString               Vrai...
userWorkstations                    Faux       DirectoryString           Faux...
uSNChanged                          Faux       INTEGER8                  Faux...
uSNCreated                          Faux       INTEGER8                  Faux...
uSNDSALastObjRemoved                Faux       INTEGER8                  Faux...
USNIntersite                        Faux       INTEGER                   Faux...
uSNLastObjRem                       Faux       INTEGER8                  Faux...
uSNSource                           Faux       INTEGER8                  Faux...
wbemPath                            Faux       DirectoryString           Vrai...
wellKnownObjects                    Faux       DNWithBinary              Vrai...
whenChanged                         Faux       GeneralizedTime           Faux...
whenCreated                         Faux       GeneralizedTime           Faux...
wWWHomePage                         Faux       DirectoryString           Faux...
x121Address                         Faux       NumericString             Vrai...
x500uniqueIdentifier                Faux       OctetString               Vrai...
                                                                                
WSH D:\Test> ' le fournisseur LDAP est quand même beaucoup plus verbeux !       
WSH D:\Test> ' lecture des propriétés d'un groupe via LDAP                      
WSH D:\Test> Set oGroup=oAdsi.Bind("LDAP://cn=Administrateurs,cn=Builtin,dc=doma
in,dc=local")                                                                   
WSH D:\Test> ft oAdsi.GetProperties(oGroup),"","","*"                           
                                                                                
Property                        Mandatory  Syntax                    Multival...
--------                        ---------  ------                    --------...
cn                              Vrai       DirectoryString           Faux    ...
groupType                       Vrai       INTEGER                   Faux    ...
instanceType                    Vrai       INTEGER                   Faux    ...
nTSecurityDescriptor            Vrai       ObjectSecurityDescriptor  Faux       
objectCategory                  Vrai       DN                        Faux    ...
objectClass                     Vrai       OID                       Vrai    ...
objectSid                       Vrai       OctetString               Faux    ...
sAMAccountName                  Vrai       DirectoryString           Faux    ...
accountNameHistory              Faux       DirectoryString           Vrai    ...
adminCount                      Faux       INTEGER                   Faux    ...
adminDescription                Faux       DirectoryString           Faux    ...
adminDisplayName                Faux       DirectoryString           Faux    ...
allowedAttributes               Faux       OID                       Vrai    ...
allowedAttributesEffective      Faux       OID                       Vrai    ...
allowedChildClasses             Faux       OID                       Vrai    ...
allowedChildClassesEffective    Faux       OID                       Vrai    ...
altSecurityIdentities           Faux       DirectoryString           Vrai    ...
bridgeheadServerListBL          Faux       DN                        Vrai    ...
canonicalName                   Faux       DirectoryString           Vrai    ...
controlAccessRights             Faux       OctetString               Vrai    ...
createTimeStamp                 Faux       GeneralizedTime           Faux    ...
description                     Faux       DirectoryString           Vrai    ...
desktopProfile                  Faux       DirectoryString           Faux    ...
directReports                   Faux       DN                        Vrai    ...
displayName                     Faux       DirectoryString           Faux    ...
displayNamePrintable            Faux       PrintableString           Faux    ...
distinguishedName               Faux       DN                        Faux    ...
dSASignature                    Faux       OctetString               Faux    ...
dSCorePropagationData           Faux       GeneralizedTime           Vrai    ...
extensionName                   Faux       DirectoryString           Vrai    ...
flags                           Faux       INTEGER                   Faux    ...
fromEntry                       Faux       Boolean                   Vrai    ...
frsComputerReferenceBL          Faux       DN                        Vrai    ...
fRSMemberReferenceBL            Faux       DN                        Vrai    ...
fSMORoleOwner                   Faux       DN                        Faux    ...
garbageCollPeriod               Faux       INTEGER                   Faux    ...
gidNumber                       Faux       INTEGER                   Faux    ...
groupAttributes                 Faux       INTEGER                   Faux    ...
groupMembershipSAM              Faux       OctetString               Faux    ...
info                            Faux       DirectoryString           Faux    ...
isCriticalSystemObject          Faux       Boolean                   Faux    ...
isDeleted                       Faux       Boolean                   Faux    ...
isPrivilegeHolder               Faux       DN                        Vrai    ...
labeledURI                      Faux       DirectoryString           Vrai    ...
lastKnownParent                 Faux       DN                        Faux    ...
legacyExchangeDN                Faux       CaseIgnoreString          Faux    ...
mail                            Faux       DirectoryString           Faux    ...
managedBy                       Faux       DN                        Faux    ...
managedObjects                  Faux       DN                        Vrai    ...
masteredBy                      Faux       DN                        Vrai    ...
member                          Faux       DN                        Vrai    ...
memberOf                        Faux       DN                        Vrai    ...
memberUid                       Faux       IA5String                 Vrai    ...
modifyTimeStamp                 Faux       GeneralizedTime           Faux    ...
mS-DS-ConsistencyChildCount     Faux       INTEGER                   Faux    ...
mS-DS-ConsistencyGuid           Faux       OctetString               Faux    ...
msCOM-PartitionSetLink          Faux       DN                        Vrai    ...
msCOM-UserLink                  Faux       DN                        Vrai    ...
msDFSR-ComputerReferenceBL      Faux       DN                        Vrai    ...
msDFSR-MemberReferenceBL        Faux       DN                        Vrai    ...
msDS-Approx-Immed-Subordinates  Faux       INTEGER                   Faux    ...
msDS-AzLDAPQuery                Faux       DirectoryString           Faux    ...
msDS-KeyVersionNumber           Faux       INTEGER                   Faux    ...
msDs-masteredBy                 Faux       DN                        Vrai    ...
msDS-MembersForAzRoleBL         Faux       DN                        Vrai    ...
msDS-NCReplCursors              Faux       DirectoryString           Vrai    ...
msDS-NCReplInboundNeighbors     Faux       DirectoryString           Vrai    ...
msDS-NCReplOutboundNeighbors    Faux       DirectoryString           Vrai    ...
msDS-NonMembers                 Faux       DN                        Vrai    ...
msDS-NonMembersBL               Faux       DN                        Vrai    ...
msDS-ObjectReferenceBL          Faux       DN                        Vrai    ...
msDS-OperationsForAzRoleBL      Faux       DN                        Vrai    ...
msDS-OperationsForAzTaskBL      Faux       DN                        Vrai    ...
msDS-ReplAttributeMetaData      Faux       DirectoryString           Vrai    ...
msDS-ReplValueMetaData          Faux       DirectoryString           Vrai    ...
msDS-TasksForAzRoleBL           Faux       DN                        Vrai    ...
msDS-TasksForAzTaskBL           Faux       DN                        Vrai    ...
msExchAssistantName             Faux       DirectoryString           Faux    ...
msExchLabeledURI                Faux       DirectoryString           Vrai    ...
msSFU30Name                     Faux       IA5String                 Faux    ...
msSFU30NisDomain                Faux       IA5String                 Faux    ...
msSFU30PosixMember              Faux       DN                        Vrai    ...
msSFU30PosixMemberOf            Faux       DN                        Vrai    ...
name                            Faux       DirectoryString           Faux    ...
netbootSCPBL                    Faux       DN                        Vrai    ...
nonSecurityMember               Faux       DN                        Vrai    ...
nonSecurityMemberBL             Faux       DN                        Vrai    ...
nTGroupMembers                  Faux       OctetString               Vrai    ...
objectGUID                      Faux       OctetString               Faux    ...
objectVersion                   Faux       INTEGER                   Faux    ...
operatorCount                   Faux       INTEGER                   Faux    ...
otherWellKnownObjects           Faux       DNWithBinary              Vrai    ...
ownerBL                         Faux       DN                        Vrai    ...
partialAttributeDeletionList    Faux       OctetString               Faux    ...
partialAttributeSet             Faux       OctetString               Faux    ...
possibleInferiors               Faux       OID                       Vrai    ...
primaryGroupToken               Faux       INTEGER                   Faux    ...
proxiedObjectName               Faux       DNWithBinary              Faux    ...
proxyAddresses                  Faux       DirectoryString           Vrai    ...
queryPolicyBL                   Faux       DN                        Vrai    ...
replPropertyMetaData            Faux       OctetString               Faux    ...
replUpToDateVector              Faux       OctetString               Faux    ...
repsFrom                        Faux       OctetString               Vrai    ...
repsTo                          Faux       OctetString               Vrai    ...
revision                        Faux       INTEGER                   Faux    ...
rid                             Faux       INTEGER                   Faux    ...
sAMAccountType                  Faux       INTEGER                   Faux    ...
sDRightsEffective               Faux       INTEGER                   Faux    ...
secretary                       Faux       DN                        Vrai    ...
securityIdentifier              Faux       OctetString               Faux    ...
serverReferenceBL               Faux       DN                        Vrai    ...
showInAddressBook               Faux       DN                        Vrai    ...
showInAdvancedViewOnly          Faux       Boolean                   Faux    ...
sIDHistory                      Faux       OctetString               Vrai    ...
siteObjectBL                    Faux       DN                        Vrai    ...
structuralObjectClass           Faux       OID                       Vrai    ...
subRefs                         Faux       DN                        Vrai    ...
subSchemaSubEntry               Faux       DN                        Vrai    ...
supplementalCredentials         Faux       OctetString               Vrai    ...
systemFlags                     Faux       INTEGER                   Faux    ...
telephoneNumber                 Faux       DirectoryString           Faux    ...
textEncodedORAddress            Faux       DirectoryString           Faux    ...
tokenGroups                     Faux       OctetString               Vrai    ...
tokenGroupsGlobalAndUniversal   Faux       OctetString               Vrai    ...
tokenGroupsNoGCAcceptable       Faux       OctetString               Vrai    ...
unixUserPassword                Faux       OctetString               Vrai    ...
url                             Faux       DirectoryString           Vrai    ...
userCert                        Faux       OctetString               Faux    ...
userCertificate                 Faux       OctetString               Vrai    ...
userPassword                    Faux       OctetString               Vrai    ...
userSMIMECertificate            Faux       OctetString               Vrai    ...
uSNChanged                      Faux       INTEGER8                  Faux    ...
uSNCreated                      Faux       INTEGER8                  Faux    ...
uSNDSALastObjRemoved            Faux       INTEGER8                  Faux    ...
USNIntersite                    Faux       INTEGER                   Faux    ...
uSNLastObjRem                   Faux       INTEGER8                  Faux    ...
uSNSource                       Faux       INTEGER8                  Faux    ...
wbemPath                        Faux       DirectoryString           Vrai    ...
wellKnownObjects                Faux       DNWithBinary              Vrai    ...
whenChanged                     Faux       GeneralizedTime           Faux    ...
whenCreated                     Faux       GeneralizedTime           Faux    ...
wWWHomePage                     Faux       DirectoryString           Faux    ...
                                                                                
WSH D:\Test> ' la colonne "value" est masquée ! (Line Wrapping : OFF)           
WSH D:\Test> ' affichage de quelques propriétés                                 
WSH D:\Test> ' celles qui débutent par la lettre "c"                            
WSH D:\Test> ft oAdsi.GetProperties(oGroup),"","Property Like 'c*'","Property|^V
alue"                                                                           
                                                                                
Property                        Value                                           
--------                        -----                                           
cn                              Administrateurs                                 
canonicalName                   domain.local/Builtin/Administrateurs            
controlAccessRights             <Not Set>                                       
createTimeStamp                 30/08/2007 08:31:01                             
                                                                                
WSH D:\Test> ' Enjoy                                                            
WSH D:\Test>                                                                    

 
< Précédent   Suivant >