Question Absence de résultat sur une propiéte AD

Plus d'informations
il y a 17 ans 6 mois #2779 par Arnaud Petitjean
Salut Chris,

- Quel est l'OS de ton serveur ?
- Quelle version de Service Pack ?
- Mode d'Active Directory (mode mixte ou non) ?

Es-tu admin lorsque tu lances ton script ?

Arnaud

MVP PowerShell et créateur de ce magnifique forum :-)
Auteur de 6 livres PowerShell aux éditions ENI
Fondateur de la société Start-Scripting
Besoin d'une formation PowerShell ?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 17 ans 6 mois #2783 par maycry
2003 sp2
XP pro sp3

exécuter à partir d'exchange management shell en admin du domaine c'est biazzare ca

Je n'ai pas la propriété passwordlastchanged enfait
même en me servant de cet article mow001.blogspot.com/2006/07/powershell-a...irectory-part-4.html


TypeName: System.DirectoryServices.DirectoryEntry

Name MemberType Definition
----

accountExpires Property System.DirectoryServices.PropertyV...
altRecipient Property System.DirectoryServices.PropertyV...
badPasswordTime Property System.DirectoryServices.PropertyV...
badPwdCount Property System.DirectoryServices.PropertyV...
cn Property System.DirectoryServices.PropertyV...
codePage Property System.DirectoryServices.PropertyV...
countryCode Property System.DirectoryServices.PropertyV...
deliverAndRedirect Property System.DirectoryServices.PropertyV...
displayName Property System.DirectoryServices.PropertyV...
distinguishedName Property System.DirectoryServices.PropertyV...
dSCorePropagationData Property System.DirectoryServices.PropertyV...
givenName Property System.DirectoryServices.PropertyV...
homeMDB Property System.DirectoryServices.PropertyV...
homeMTA Property System.DirectoryServices.PropertyV...
instanceType Property System.DirectoryServices.PropertyV...
lastLogoff Property System.DirectoryServices.PropertyV...
lastLogon Property System.DirectoryServices.PropertyV...
lastLogonTimestamp Property System.DirectoryServices.PropertyV...
legacyExchangeDN Property System.DirectoryServices.PropertyV...
lockoutTime Property System.DirectoryServices.PropertyV...
logonCount Property System.DirectoryServices.PropertyV...
mail Property System.DirectoryServices.PropertyV...
mailNickname Property System.DirectoryServices.PropertyV...
mDBUseDefaults Property System.DirectoryServices.PropertyV...
msExchHideFromAddressLists Property System.DirectoryServices.PropertyV...
msExchHomeServerName Property System.DirectoryServices.PropertyV...
msExchMailboxGuid Property System.DirectoryServices.PropertyV...
msExchMailboxSecurityDescriptor Property System.DirectoryServices.PropertyV...
msExchPoliciesIncluded Property System.DirectoryServices.PropertyV...
msExchRecipientDisplayType Property System.DirectoryServices.PropertyV...
msExchRecipientTypeDetails Property System.DirectoryServices.PropertyV...
msExchUserAccountControl Property System.DirectoryServices.PropertyV...
msExchUserCulture Property System.DirectoryServices.PropertyV...
msExchVersion Property System.DirectoryServices.PropertyV...
name Property System.DirectoryServices.PropertyV...
nTSecurityDescriptor Property System.DirectoryServices.PropertyV...
objectCategory Property System.DirectoryServices.PropertyV...
objectClass Property System.DirectoryServices.PropertyV...
objectGUID Property System.DirectoryServices.PropertyV...
objectSid Property System.DirectoryServices.PropertyV...
primaryGroupID Property System.DirectoryServices.PropertyV...
proxyAddresses Property System.DirectoryServices.PropertyV...
pwdLastSet Property System.DirectoryServices.PropertyV...
sAMAccountName Property System.DirectoryServices.PropertyV...
sAMAccountType Property System.DirectoryServices.PropertyV...
userAccountControl Property System.DirectoryServices.PropertyV...
userPrincipalName Property System.DirectoryServices.PropertyV...
uSNChanged Property System.DirectoryServices.PropertyV...
uSNCreated Property System.DirectoryServices.PropertyV...
whenChanged Property System.DirectoryServices.PropertyV...
whenCreated Property System.DirectoryServices.PropertyV...<br><br>Message édité par: chris, à: 9/09/08 14:28

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 17 ans 6 mois #2791 par rodriguez
Hello,

Pour que la propriété \&quot;PasswordLastChanged\&quot; te retourne une valeur il faut que tu installe sur ton serveur:
Powershell V2 (CTP2).
La release 1 n'a pas cette propriété.
Et je te conseil aussi de faire ton script avec PowerGui.

Bon Script.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 17 ans 6 mois #2794 par Laurent Dardenne
noxydius écrit:

La release 1 n'a pas cette propriété.

N'est-il pas possible de l'obtenir via le framework .NET ?

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 17 ans 6 mois #2800 par rodriguez
Laurent Dardenne écrit:

noxydius écrit:

La release 1 n'a pas cette propriété.

N'est-il pas possible de l'obtenir via le framework .NET ?


je sais pas, pas testé.?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 17 ans 6 mois #2802 par Laurent Dardenne
chris écrit:

Je n'ai pas la propriété passwordlastchanged en fait même en me servant de cet article

Pourtant l'auteur référence un fichier de type, utilisant l'appel suivant
[code:1]
$this.InvokeGet('PasswordLastChanged')
[/code:1]
Ce qui confirme qu'elle n'existe pas nativement, comme de nombreuses autres infos je suppose, mais reste accessible par code.
Comme ici :
mow001.blogspot.com/2006/08/powershell-a...irectory-part-8.html

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.110 secondes
Propulsé par Kunena