skip to main | skip to sidebar

Kenny's Blog

This blog covers many areas of Information Technology that intrigue me as well as other interests.

Friday, November 14, 2008

Active Directory - Accessing AD:

while VBscript supports LDAP querying and objects right out of the box, Powershell needs to ADSI Type Adapter (type cast, basically). the following are examples of how to connect to LDAP using both methods.

  • VB - SET objContainer = GetObject(ldap://cn=username,ou=abc,dc=xyz,dc=com/)
  • PS - $objContainer = [ADSI]ldap://cn=username,ou=abc,dc=xyz,dc=com/

the rest is usual.
Posted by ssrtist at 10:57 PM
Labels: Active Directory

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (1)
    • ►  July (1)
  • ►  2009 (6)
    • ►  June (2)
    • ►  March (3)
    • ►  February (1)
  • ▼  2008 (13)
    • ►  December (5)
    • ▼  November (7)
      • "host currently has no management network redundan...
      • How to clone a Windows Virtual Machine in VMware S...
      • Journey to Active Directory - Exchange reinstall:t...
      • Active Directory - Accessing AD:while VBscript sup...
      • VMware VIX:to list VMs on local computer (VMware s...
      • VMware VI Client: add an existing vm to inventory:...
      • VMware Remote CLI - register vm:vmware-cmd --serve...
    • ►  October (1)
  • ►  2007 (1)
    • ►  May (1)
  • ►  2006 (1)
    • ►  April (1)

My LinkedIn Profile

  • My LinkedIn Profile

My Blog List

  • blog.scottlowe.org
 

Followers