PC Review


Reply
Thread Tools Rate Thread

ADSystemInfo and ComputerName

 
 
Bryan
Guest
Posts: n/a
 
      21st Sep 2009
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?

 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      21st Sep 2009

"Bryan" <(E-Mail Removed)> wrote in message
news:91643121-2DE4-4CA3-9020-(E-Mail Removed)...
> 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.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSysteminfo Tim Rush Microsoft Excel Programming 2 13th Jun 2008 06:49 PM
Computername Peter Larsen [CPH] Microsoft Dot NET 8 9th May 2008 10:02 AM
computername =?Utf-8?B?ZWR1YXJkbw==?= Windows Vista Administration 5 6th Jul 2007 09:51 PM
can asp.net get the computername? Jason Shohet Microsoft ASP .NET 1 15th Jan 2004 09:30 PM
RE: Cannot map by computername Johnny Windows XP Help 0 27th Oct 2003 10:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 AM.