Login | |
|
 |
RE: VB script to list all expired accounts in an ou - 3/9/2006 10:09:37 PM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
With blank lines included I only see 41 lines of code. Remove "On Error Resume Next" from the top of the script, rerun and post what error you get, if different. Cybex
_____________________________
Common sense is not so common.
|
|
| |
|
|
|
 |
RE: VB script to list all expired accounts in an ou - 3/10/2006 12:35:29 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
You may want to actually include the line you are getting the error on, along with the error code. You may have already mentioned this in your previous post, but what's wrong with just using the Local Security Settings? -Security Options -Interactive logon: Prompt user to change password before expiration : <#>days We have over 100 laptop users, and we set this to 5 days; normal workstations to 3. It is then their responsibility to make sure their password is changed. (Too much overhead on trying to babysit all of the laptop users) They learn to pay attention to that message after their account gets locked out a few times.
|
|
| |
|
|
|
 |
RE: VB script to list all expired accounts in an ou - 3/10/2006 1:29:32 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
I realize that you posted the message you are getting for an error, but I'm with others on this. There are only 39 lines of code in the code that you posted, so: 1)This isn't all of your code, OR 2)That is not the error message that you are getting, OR 3)Your install of WSH is crazy.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: VB script to list all expired accounts in an ou - 3/10/2006 1:37:38 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
Just glancing at your code, I'd say the problem may be this line: Wscript.Echo objUser.Display Name & " " & objUser.AccountExpirationDate There should not be a space in the DisplayName property name.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: VB script to list all expired accounts in an ou - 3/10/2006 2:42:43 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
Are you sure that the AccountExpirationDate is defined for all users? Can you get some other value for the users just to test that the objUser object is instantiating correctly?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|