Group Policy ADM to set the desktop wallpaper and the desktop colour
For some time I have been using a group policy and Active Desktop to set users Wallpapers however Active desktop is far from perfect.
So instead I have now started using the attached ADM to specify the desktop wallpaper and the desktop background colour.
The downside of not using Active Desktop is only bitmap images are allowed.
- 7 comments
- Read more
- 1552 reads
VBS Script to list the last password change date of all users in the current domain
The below script will list the last password change date (pwdLastSet) of all users in the current domain.
Usage: cscript C:\List_User_pwdLastSet.vbs > C:\Report_Password_Changes.csv
- Add new comment
- Read more
- 588 reads
VBS Script to find all empty AD groups in the current domain
A great script to find all of the groups in the current domain that have no members.
USAGE: cscript c:\Find_Empty_AD_Groups.vbs //nologo
- 2 comments
- Read more
- 514 reads
VBS to Create a Global Security Group in Active Directory
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 "cn=Test" and "sAMAccountName" to the name of the group
- Change "Just a test group" to the description of the group
- Add new comment
- Read more
- 348 reads
Export Details of all Computers in an Active Directory Domain
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.
- Add new comment
- Read more
- 687 reads
VBS Script to disable a list of Active Directory Accounts
The below script will disbale all of the users accounts provided in a CSV file, the script could easily be modified to change any other properties for the list of users.
Change the values strCSV and strDomain as needed
- Add new comment
- Read more
- 991 reads
VBS List Properties of All AD Users
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
TerminalServicesProfilePath
TerminalServicesHomeDirectory
TerminalServicesHomeDrive
ProfilePath
HomeDirectory
HomeDrive
scriptPath
msNPAllowDialin
File attached: You must be a member to download
- Add new comment
- Read more
- 1304 reads
VBS Script to run a Query against a Active Directory Domain
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 user "testusername" in the domain "domainname.com"
- Add new comment
- Read more
- 810 reads
Get the Users AD Site Name
This tiny VB 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.
msgbox objAdSysInfo.SiteName
- Add new comment
- 380 reads
Active Directory User Group Membership IsMenber
Here is a very useful VBS function; I use it a lot in logon scrips.
The function will return True or False depending on if the current user running the script is a member of the AD group passed to the function.
To get the function working you will need to replace domain_name_here in the function with you active directory domain name
This script will not work with nested groups
- Add new comment
- Read more
- 301 reads
