This will try and ping either one of your DC's or the domain (which will ping the primary DC) if successful it will check the domain name the machine is bound to against what you specify as the correct domain and will also try and query the user object and if communicating with your AD correctly will return the groups the user object is a member of. # We can't see the DCs, so no way to properly check # If the domain returned did not match our expectationsĮlif ] then
# Check the domain returned with dsconfigadĭomain=$( dsconfigad -show | awk '/Active Directory Domain/' ) Where Active Directory Users and Computersdomain nodeComputers Or, click the folder that contains the computer account that you want to enable or disable. To create a new computer account using a command line. You can achieve this with the following Extension Attribute script: #!/bin/bash To open Active Directory Users and Computers, click Start, click Control Panel, double-click Administrative Tools, and then double-click Active Directory Users and Computers. To open Active Directory Users and Computers, click Start, click Control Panel, double-click.