Category: Active Directory
Using PowerShell to find all empty AD groups in the current domain
by Phil Eddies | Feb 13, 2017 | Active Directory, Scripts | 0 |
Pre-requisites Before you can use the Active Directory Cmdlets you will either need the to install...
Read MoreA PHP example of how to get data from Active Directory via LDAP
by Phil Eddies | Sep 16, 2016 | Active Directory, PHP, Scripts | 16 |
Running a command on all computers within an AD OU
by Phil Eddies | Jan 24, 2016 | Active Directory, Scripts | 1 |
The below VBS script will run a command on all computers in the Active Directory OU defined by...
Read MoreVBS Script to list the last password change date of all users in the current domain
by Phil Eddies | Dec 8, 2009 | Active Directory, Scripts | 0 |
The below script will list the last password change date (pwdLastSet) of all users in the current...
Read MoreVBS Script to find all empty AD groups in the current domain
by Phil Eddies | Dec 4, 2009 | Active Directory, Scripts | 5 |
The below is a great little script to find all empty AD groups in the current domain. Usage:...
Read MoreVBS to Create a Global Security Group in Active Directory
by Phil Eddies | Jul 30, 2009 | Active Directory, Scripts | 0 |
The below script will create a single Global Security group in Active Directory. – Change “LDAP://ou=HR,dc=NA,dc=fabrikam,dc=com to your domain and the OU where you want the group created – Change...
Read MoreExport Details of all Computers in an Active Directory Domain
by Phil Eddies | Jul 20, 2009 | Active Directory, Scripts | 2 |
The below script will create a CSV file listing the Name, Description, Operating System and Service Pack level of all computers in an Active Directory domain. Set objRootDSE = GetObject(“LDAP://RootDSE”) strDNSDomain...
Read MoreVBS Script to disable a list of Active Directory user accounts
by Phil Eddies | Jun 17, 2009 | Active Directory, Scripts | 2 |
The below script will disable a list of Active Directory user accounts provided in a text file, the script could easily be modified to change any other properties for the list of users. I have this script scheduled to run every...
Read MoreVBS List Properties of All AD Users
by Phil Eddies | Dec 2, 2008 | Active Directory, Scripts | 0 |
This script creates a CSV file listing the below details for all Active Directory users. The script could be very easily extended to include any extra user properties. sAMAccountName displayName description...
Read MoreVBS Script to run a Query against a Active Directory Domain
by Phil Eddies | Nov 11, 2008 | Active Directory, Scripts | 0 |
The below script is an example of how using VBS and ADODB you can perform SQL like queries against Active directory to return or change properties of an object. In this case the script returns the “Home Drive” on the...
Read MoreGet the Users AD Site Name
by Phil Eddies | Sep 3, 2008 | Active Directory, Scripts | 0 |
This tiny VBS script will return the current users Active Directory site name, which is very useful in a login script for doing things like adding printers or mapping drives based on what site the user is at Set objADSysInfo =...
Read More
Recent Comments