Richard
Tue Mar 02 20:44:58 CST 2004
Peter Christopoulos wrote:
> I am using the ADSystemInfo Object to get Active Directory information
during the logon script (VBScript). All users run perfectly and I have no
issues with the logon script. I have 2 users that get the following error
from the logon script.
>
> Line: 182, Char: 1, Error: Class doesn't support Automation: 'GetObject',
Code: 800A01AE.
> Microsoft VB Script run time error
>
> Line 182 is:
> Set wshADInfo = CreateObject("ADSystemInfo")
Hi,
The ADSystemInfo object is only supported on clients with W2k or above. Are
the two users on older clients?
If so, you have have to use the WshNetwork object instead to retrieve user
and computer NT names, then use the NameTranslate object to convert the NT
names to Distinguished Names. This will work if the clients have DSClient
installed.
If the clients are NT with DSClient, I believe you can use the
WinNTSystemInfo object, although it also returns NT (NetBIOS) names.
An example logon script that uses the WshNetwork and NameTranslate objects
as described above:
http://www.rlmueller.net/Logon2.htm
The loop to retrieve the username from the WshNetwork object is only
required on Win9x clients during logon.
--
Richard
Microsoft MVP Scripting and ADSI
HilltopLab web site -
http://www.rlmueller.net
--