Jump to content

Recommended Posts

Posted

Hello everyone;

i'm new with AutoIt...

i need to retrieve the full DN of a computer in Active Directory...

the scope is if a computer is member of a particular OU, take an action...

can you help me? thanks a lot

Posted

  On 3/4/2010 at 8:43 AM, 'bluemoon said:

Hello everyone;

i'm new with AutoIt...

i need to retrieve the full DN of a computer in Active Directory...

the scope is if a computer is member of a particular OU, take an action...

can you help me? thanks a lot

For sure.

Please download the Active Directory UDF (User Defined Functions) as described in my signature.

To retrieve the FQDN of a computer you could use:

$sSam = @ComputerName & "$"
$sFQDN = _AD_SamAccountNameToFQDN($sSam)

Please note the Dollar appended to the Computername!

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

  On 3/4/2010 at 9:21 AM, 'water said:

For sure.

Please download the Active Directory UDF (User Defined Functions) as described in my signature.

To retrieve the FQDN of a computer you could use:

$sSam = @ComputerName & "$"
$sFQDN = _AD_SamAccountNameToFQDN($sSam)

Please note the Dollar appended to the Computername!

FANTASTIC!!!! THANKS A LOT

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...