Re: Change PasswordLastChanged value



Andre Thomasse wrote:
I use the following script to change the value. But i receive the
following error: Wrong number of arguments or invalid property
assignment 'objUser.PasswordLastchanged'

someone any ideas or suggestion?

Set objUser = GetObject("LDAP://cn=lizzy van
beek,ou=test,ou=totallan,dc=totallan,dc=nl")
objUser.PasswordLastChanged = "01/11/2006 05:01:01 PM"
objUser.SetInfo

Not too surprising since it is a read only property...

IADsUser.IADsUser Property Methods [ADSI]
<http://msdn.microsoft.com/library/en-us/adsi/adsi/iadsuser_property_methods.asp?frame=true>

--
Michael Harris
Microsoft MVP Scripting


.



Relevant Pages

  • user accounts still has the error...
    ... i'm sitll having the user accounts problem where it ... says "wrong number of arguements or invalid property ... assignment" i've tried many solutions but none of them ...
    (microsoft.public.windowsxp.general)
  • Re: user accounts still has the error...
    ... >says "wrong number of arguements or invalid property ... >assignment" i've tried many solutions but none of them ... Have you tried deleting the user profile and re-creating it? ...
    (microsoft.public.windowsxp.general)

Loading