Title: Message
I've found that if I add Domain Users to the Schema and Enterprise Admins groups of my forest, it seems to work. You also have to be careful to only use NULL for any SD references. Thanks for the help!
 
  joe



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Kingslan
Sent: Saturday, October 18, 2003 5:06 PM
To: [EMAIL PROTECTED]

Joe - Yep..... I'm sure.
 
You're sure you're using the release version,and not one of the betas?    This method was added very late in the process, right about the same time that the class 'Yada:' was added, along with the function 'whatever (var middle-finger, str [EMAIL PROTECTED] you)'.
 
Try adding all hotfixes, SP's, any updates to the Framework.  If that doesn't work - just give up.  That's what most developers would do anyway.
 
;P
 

Rick Kingslan  MCSE, MCSA, MCT
Microsoft MVP - Active Directory
Associate Expert
Expert Zone - www.microsoft.com/windowsxp/expertzone
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe
Sent: Saturday, October 18, 2003 9:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP'ing a computer object in AD

Rick I am getting unknown identifier when I try that. What am I doing wrong?
 
 
 
   joe



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kingslan, Rick T.
Sent: Friday, October 17, 2003 9:26 AM
To: [EMAIL PROTECTED]

'blah, blah, blah' was added as a new method in VB.Net in Visual Studio .Net 2003.  It should compile just fine.  The default behavior is to simply not work at all.
 
;oD
 

Rick Kingslan  MCSE, MCSA, MCT
Microsoft MVP - Active Directory
LAN Administration - Windows 2000
West Corporation
[EMAIL PROTECTED]

-----Original Message-----
From: Pennell, Ronald B. [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 7:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP'ing a computer object in AD

How can I take your code and save as an executable script?

 

Ron

 

-----Original Message-----
From: Michael B. Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 8:34 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP'ing a computer object in AD

 

compname = InputBox ("Enter name of computer", "GetComputerName", "mycomputername")

domname  = InputBox ("Enter name of domain", "GetDomainName", "myhostname")

blah blah blah

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP'ing a computer object in AD

Anyway to make screen pops asking for compname and domname?

 

 

Shawn

-----Original Message-----
From: Frederic Allaert [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [ActiveDir] LDAP'ing a computer object in AD

OK, I figured it out using your tip on the SAM account:

 

Dim compname
Dim domname
compname = "MYHOSTNAME"
domname = "MYDOMAIN"

 

Set
Set oTrans = CreateObject("NameTranslate")
oTrans.Init 1, domname
oTrans.Set 3, domname &"\"& compname &"$"
sAdsPath = oTrans.Get(1)
Set >Set oTrans = Nothing
wscript.echo "LDAP path: " & sAdsPath

Thanks & greetings,
 
Frederic Allaert
System Engineer
Johnson Pump AB


-----Original Message-----
From: Ken Cornetet [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 3:55 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] LDAP'ing a computer object in AD

I think this is what you want. Search for samaccountname=computername$ (append a "$" to the computer name).

-----Original Message-----
From: Frederic Allaert [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 8:50 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] LDAP'ing a computer object in AD

Hello all,

I have been searching some good, clear examples how to determine the LDAP path
for a computer object, (without knowing the "location" in AD), with the only input being
the hostname of the computer, and the DNS-name for the domain. All this using a .VBS-script...

Can someone produce such an example, or direct me to some good resource websites on this topic?

Greetings,

Frederic Allaert

Reply via email to