ADSystemInfo and ComputerName

  • Thread starter Thread starter Bryan
  • Start date Start date
B

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?
 
Bryan said:
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.
 
Back
Top