ADSystemInfo and ComputerName

Here you can find everything you need to know about Dll-Files. You can also share your knowledge regarding the topic.

Moderators: DllAdmin, DLLADMIN ONLY

Post Reply
bryan
Posts: 1
Joined: 20 Sep 2009, 23:00

ADSystemInfo and ComputerName

Post by bryan »

Set objSysInfo = CreateObject("ADSystemInfo")
sTmp = objSysInfo.ComputerName
If err <> 0 Then
wsh.echo err.description
End If

This script echos a "Permission Denied" on some machines. I have been unable
to determine the cause. I have re-registered the activeds.dll. Not sure what
else to try. Anyone have any ideas?

pegasus [mvp]
Posts: 59
Joined: 22 Mar 2009, 00:00

Re: ADSystemInfo and ComputerName

Post by pegasus [mvp] »

"Bryan" <Bryan@discussions.microsoft.com> wrote in message
news:91643121-2DE4-4CA3-9020-832878941917@microsoft.com...
> Set objSysInfo = CreateObject("ADSystemInfo")
> sTmp = objSysInfo.ComputerName
> If err <> 0 Then
> wsh.echo err.description
> End If
>
> This script echos a "Permission Denied" on some machines. I have been
> unable
> to determine the cause. I have re-registered the activeds.dll. Not sure
> what
> else to try. Anyone have any ideas?
>

Best to ask the experts in a VB Script newsgroup, e.g.
public.scripting.vbscript.

Post Reply