Login | |
|
 |
RE: Read/Modify ADSI Attribute - GeneralizedTime - 7/2/2008 4:02:39 PM
|
|
 |
|
| |
dm_4ever
Posts: 2359
Score: 36
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Can you post what you've tried so far? It may be as easy as binding to the user object and retrieving it...I won't be able to try until tomorrow. I'd like to see what you've tried so far though.
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Read/Modify ADSI Attribute - GeneralizedTime - 7/7/2008 5:24:51 AM
|
|
 |
|
| |
dm_4ever
Posts: 2359
Score: 36
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
What attribute exactly are you trying to update? Is it iaTrainingDate? If so, this does not look like a standard property for a user account...is this a custom attribute added by you or your AD admin?
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Read/Modify ADSI Attribute - GeneralizedTime - 7/7/2008 11:33:15 AM
|
|
 |
|
| |
dm_4ever
Posts: 2359
Score: 36
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Well in that case the easiest thing to try is to see if you can retrieve your accounts value.... Dim objADSysInfo : Set objADSysInfo = CreateObject("ADSystemInfo") Dim objUser : Set objUser = GetObject("LDAP://" & objADSysInfo.UserName) WScript.Echo objUser.iaTrainingDate If you don't want to use your account, get the distinguished name of a test account and bind to it If you're able to see the value then you might be able to easily change it with something like Dim objADSysInfo : Set objADSysInfo = CreateObject("ADSystemInfo") Dim objUser : Set objUser = GetObject("LDAP://" & objADSysInfo.UserName) objUser.iaTrainingDate = Now() objUser.SetInfo
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|