Sign in to follow this  
Followers 0
mik3

Add AD computer description to script/GUI

101 posts in this topic

#1 ·  Posted (edited)

Hello,

I am new to Autoit. I found the script Walt Truman created. It works fine. However, I would like to add an input box plus the code to add computer description for the computer account that is to join domain. Can someone assist me. Thanks

JoinDomain.au3

Edited by mik3

Share this post


Link to post
Share on other sites



As this script is quite old (2006) I would suggest to create your own version based on my Active Directory UDF (for download please see my signature).

If you like I can assist in writing the script so the learning curve isn't as steep.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thanks Water. I got this one working fine, but if you can help me with something better then great. I would need to be able to do the same things the script/GUI I attached plus be able to add a computer description to the account. Also creating a computer account in AD would be great to. Thanks

Share this post


Link to post
Share on other sites

I just took a look at your scripts. Change password, move computer account, set/change user password, delete computer account would also be great things to be able to do from the GUI. Thanks

Share this post


Link to post
Share on other sites

Do you want to have this two functions (1: create a computer account in AD and add a computer description, 2: add the computer to the domain) in two separate scripts or combined in one script?

I would suggest the first because creating an account needs privileges a normal user doesn't have whereas joining a computer to a domain can be done by everyone (up to 10 computers).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I would like it in one script/GUI. The people who will be using it will have the privileges to do all of this. Thank you so much!

Share this post


Link to post
Share on other sites

I will post an example GUI in a few days ...


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thank you!!!

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Here is a first preview of the GUI.

Every function will have its own tab. Every tab has the same structure: A header line describing what the tab does, a label and an input field in every row plus (optional) additional controls.

The "process" button processes the currently displayed tab.

The script will be easy to expand.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Looks great! I can not wait to learn from the code. Plus it is going to be a great tool. Thanks

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Here is the first - incomplete - version. All tabs should work now.

The PC is joined to the domain using the credentials of the currently logged on user.

If you test, please use a test AD because I just have readonly access to our domain and can't test.

Edit: ADAT can now be found in the Active Directory Example Script thread (please see my signature).

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I compiled, and got the following.

post-69324-0-77440300-1326200357_thumb.j

Share this post


Link to post
Share on other sites

_AD_CreateGroup isn't used in the ADAT script.

What version of the AD UDF do you use (can be found in the first few lines of the UDF)?

Did you change the ADAT script?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I did not change the script. I copied ADAT.au3 into the AD 1.2.0 folder. Then I compiled, and ran it.

Share this post


Link to post
Share on other sites

What do you get if you run it from SciTE?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I get this.

post-69324-0-73869300-1326202506_thumb.j

Share this post


Link to post
Share on other sites

Looks like the AD.au3 is ocrrupt or got changed.

Could you please re-download the AD UDF and try again?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I deleted everything. Downloaded AD1.2.0.zip and ADAT.zip. Copied ADAT.au3 to AD1.2.0 folder, compiled and ran, same result.

post-69324-0-12163200-1326203582_thumb.j

Share this post


Link to post
Share on other sites

What version of AutoIT do you use?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Looks like 3.2.2.0

post-69324-0-08524800-1326204309_thumb.j

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0