Group Policy ADM to set the desktop wallpaper and the desktop colour Files attached

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.
 

 

VBS Script to list the last password change date of all users in the current domain Files attached

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

VBS Script to find all empty AD groups in the current domain Files attached

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

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

Export Details of all Computers in an Active Directory Domain Files attached

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.

 

VBS Script to disable a list of Active Directory Accounts Files attached

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

 

VBS List Properties of All AD Users Files attached

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

VBS Script to run a Query against a Active Directory Domain Files attached

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"

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.

Set objADSysInfo = CreateObject("ADSystemInfo")
 
msgbox objAdSysInfo.SiteName

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

Design by
ThemeShark.com - Drupal Themes with Bite!
Drupal Themes
with bite!