ADSI Script to check Computer name and Domain

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: aek (aek.1kz9xp_at_mail.codecomments.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 11:06:41 -0600


I need to create a VBscript using ADSI. The script will be deployed by
SMS.

The script should run on my machine and check:
1) Is my machine a Computer?
2) What is the name of the Computer?
3) Who is the user logged on?
4) Which domain am I joined to?
5) Does a computer account exist for my computer name in AD?

How can I do that. I am new to ADSI any help is appreciated.

Thank you

--
aek
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
 


Relevant Pages

  • Re: changing NT passwords across the Internet using SSL
    ... the password, but you still need a script, probably an ADSI script, to ... search www.google.com or www.microsoft.com/support for "ADSI ... Outgoing mail is certified Virus Free. ...
    (microsoft.public.inetserver.iis.security)
  • Re: ADSI script failing on OUs with space?
    ... > Trying to connect to an AD object using ADSI and VBScript. ... > And it appears that the script is having an issue with the space in the OU ... csvde or ldifde to extract users from that OU, ...
    (microsoft.public.windows.server.scripting)
  • Re: How to tell if an AD user property is set
    ... I'm using ADSI only. ... My script needs to ... You can use the IsEmpty function to check if there is no value. ... The snippet I posted earlier seems most direct, but an ADO query could also ...
    (microsoft.public.windows.server.scripting)
  • Re: Local Account
    ... It covers VBScript, WSH, ADSI, ADO, and WMI. ... The text uses the LDAP provider, but the principles are the same. ... Script Center" to learn the script, ... Now, the local account is configed, but the property of the local ...
    (microsoft.public.scripting.vbscript)
  • Re: ADSI and NDS help
    ... trying to locate a user object in eDirectory via LDAP using ADSI. ... query i the script below runs successfully in ldp.exe; ...
    (microsoft.public.scripting.vbscript)