-
WSRNicholsHoHum
AskWoody LoungerMy problem is that the script is written in VBScript which doesn’t seem to support the sort method. It another example of one of the differences between VBScript and VB or VBA.
-
WSRNicholsHoHum
AskWoody LoungerAnd don’t forget the section:
‘ —————————————————————
‘ From the book “Active Directory Cookbook” by Robbie Allen
‘ Publisher: O’Reilly and Associates
‘ ISBN: 0-596-00466-4
‘ Book web site: http://rallenhome.com/books/adcookbook/code.html
‘ —————————————————————
Let’s give credit where credit due.Glad the link was of use.
-
WSRNicholsHoHum
AskWoody LoungerRobbie Allen’s book “Active Directory Cookbook” is great for this sort of thing. The scripts are available on :
http://rallenhome.com/books/adcookbook/code.html
Have a look at script 4.2 Viewing the attributes of a object. It is easy to build that into an ASP page if you want to look up user’s AD attributes regularly (though you should secure that page!)
-
WSRNicholsHoHum
AskWoody LoungerThe SQL databases I use are MySQL, Access and a Borland DB2. In my experience if the driver won’t translate a normalised date (e.g. 1-Jul-2003) then best bet is to use yyyy-mm-dd hh:mm:ss format. The SQL books I have indicate this is the standard format for most SQL databases. I’ll bow to your greater experience with MS SQL. In VBA and VBScript I tend to use month(), day() and year() a lot so I know exactly what I’m getting out.
0nly goes to further prove what a pain dates are.
Thanks again for the feedback
-
WSRNicholsHoHum
AskWoody LoungerThank you for your replies. At least a consistant answer
).
This only re-emphasises my favouring of writing dates in 28-Jul-05 style, where there is no confusion. Though I’m actually getting to like SQLs standard yyyy-mm-dd hh:mm:ss as at least its a logical progression from large to small and appears to be consistent across platforms.
I don’t think my user will be so pleased. I’m sure to get the “but it works on so and sos PC”. Hey ho! the fun of life as an IT manager.
Thanks again – Reggie -
WSRNicholsHoHum
AskWoody LoungerNo problem at all. There is a trial version of MDaemon. You can get it from http://www.altn.com[/url%5D. However, you should be able to replicate the problem without MDaemon. I’m picking the e-mail addresses by storing them in each users details in AD and then using Outlook’s LDAP option to query AD. It works well except if people have large lists on people in the Outlook Contracts list. Then the system tends to come up with the address in the contact list rather than one from LDAP (or both).
-
WSRNicholsHoHum
AskWoody LoungerNo problem at all. There is a trial version of MDaemon. You can get it from http://www.altn.com[/url%5D. However, you should be able to replicate the problem without MDaemon. I’m picking the e-mail addresses by storing them in each users details in AD and then using Outlook’s LDAP option to query AD. It works well except if people have large lists on people in the Outlook Contracts list. Then the system tends to come up with the address in the contact list rather than one from LDAP (or both).
-
WSRNicholsHoHum
AskWoody LoungerI don’t get Tools-Options, rather Tools-Accounts. Here these is an option to change the order of LDAP directory queries, but this doesn’t include the Outlook “Contacts” address book. So users still default to the Contacts book before looking at LDAP.
-
WSRNicholsHoHum
AskWoody LoungerI don’t get Tools-Options, rather Tools-Accounts. Here these is an option to change the order of LDAP directory queries, but this doesn’t include the Outlook “Contacts” address book. So users still default to the Contacts book before looking at LDAP.
-
WSRNicholsHoHum
AskWoody LoungerThanks for the advice. I used it in post 434120 which also explains why I’m no longer looking at changing the permissions at the server.
Still looking for help with the search order – default is Contact then LDAP. I want to change it to LDAP then Contacts.
-
WSRNicholsHoHum
AskWoody LoungerThanks for the advice. I used it in post 434120 which also explains why I’m no longer looking at changing the permissions at the server.
Still looking for help with the search order – default is Contact then LDAP. I want to change it to LDAP then Contacts.
-
WSRNicholsHoHum
AskWoody LoungerOh! and I got hold of a copy of ADSI Edit via the XP support tools – complete install. Free download from Microsoft:
-
WSRNicholsHoHum
AskWoody LoungerOh! and I got hold of a copy of ADSI Edit via the XP support tools – complete install. Free download from Microsoft:
-
WSRNicholsHoHum
AskWoody LoungerI’ve found this article: Microsoft Knowledge Base Article 320528 which covers what I am trying to do. I also found a reference to doing this in Robbie Allen’s book “Active Directory Cookbook” p436 (O’Reilly). As wells as allowing anonymous access, I also have to set permissions on the directory objects. However, some attributes only seem to be available on user objects. That means I cannot set the attribute at the OU level and let it pass down to the users via inheritance. Which leaves me with three options: Set “Read all” for anonymous logon (which I don’t want to do for security reasons), Set the attributes for each user individually (Hard work), or create a script to do it for me (possible, but time consuming and how do I test without risking messing up the directory). So unless someone can suggest another option, I’m giving up on this plan. I’ll stick with things as they are.
-
WSRNicholsHoHum
AskWoody LoungerI’ve found this article: Microsoft Knowledge Base Article 320528 which covers what I am trying to do. I also found a reference to doing this in Robbie Allen’s book “Active Directory Cookbook” p436 (O’Reilly). As wells as allowing anonymous access, I also have to set permissions on the directory objects. However, some attributes only seem to be available on user objects. That means I cannot set the attribute at the OU level and let it pass down to the users via inheritance. Which leaves me with three options: Set “Read all” for anonymous logon (which I don’t want to do for security reasons), Set the attributes for each user individually (Hard work), or create a script to do it for me (possible, but time consuming and how do I test without risking messing up the directory). So unless someone can suggest another option, I’m giving up on this plan. I’ll stick with things as they are.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
3 hours, 38 minutes ago -
Office apps read-only for family members
by
b
6 hours, 14 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
3 hours, 6 minutes ago -
24H2??
by
CWBillow
1 hour, 12 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
15 hours ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
8 hours, 13 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
3 hours, 3 minutes ago -
two pages side by side land scape
by
marc
2 days, 4 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 6 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 9 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 11 hours ago -
April 2025 updates out
by
Susan Bradley
6 hours, 44 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 5 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
19 hours, 12 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 21 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
9 hours, 46 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 1 hour ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 4 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 6 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 4 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 21 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 4 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 9 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
3 hours, 11 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 18 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 2 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 2 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 11 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 19 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
19 hours, 12 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.