TechNet Gallery - resources for IT professionals

Download resources and applications for Windows 7, Windows Server 2008 R2, Windows Server 2008, SharePoint, System Center, Office, and other products. Find resources written in VB Script, PowerShell, SQL, JavaScript, or other script languages. New resources are added frequently so check often and see what's new.

Each contribution is licensed to you under a License Agreement by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.
Sort by: rss
770 Active Directory results in Windows Server 2003 [Clear]
Raimund Andrée
Managing Active Directory Sites, Site Links and Subnets very easily with PowerShell. Also checking the Active Directory Replication is easy and richer than repadmin.exe, the cmdlets in this module do return objects and not just text. So no more boring test parsing.
Featured
i.biswajith
How to find group members for n number of groups
(1)
Updated 8/15/2013
Released 3/12/2013
54 Downloads
Axel Limousin - ITSI
Display-ADSecurityGroupMemberOf.ps1 helps in checking Security Group Nesting Strategy (ie: G.U.DL.) or searching for Circular Nesting. Example: Get-ADGroup "CN=MyGroup,OU=MyOU,DC=MyDom,DC=MyRoot" | Display-ADSecurityGroupMemberOf
(0)
Updated 4/21/2013
Released 3/16/2013
115 Downloads
CoffeineNerd
This is a very simple PowerShell script that adds the users from the file (users.csv) to the groups specified. The script reads the user environment path, you have to add the filename and relativa path to your homedir.For the CSV file, please see the following picture:This pictur
(0)
Updated 3/13/2013
Released 3/13/2013
57 Downloads
Santhosh Sivarajan-
Here is another batch file script which you can used to identify the domain membership
(3)
Updated 12/5/2011
Released 5/19/2011
289 Downloads
Niklas Goude
Retrieves information from Active-Directory
(5)
Updated 1/4/2010
Released 1/4/2010
The Scripting Guys - Microsoft
Returns the members of an Active Directory group named Scientists.
(11)
Updated 8/10/2009
Released 8/10/2009
Andreas Werner
This script looks in the local domain-all online active directory computer. All results will be in a folder named "Report" stored on the local desktop. The generated csv file can then e.g. be edited in excel on. the last LogOn of computers
to the domain appears. The suppl. be d
(3)
Updated 12/4/2012
Released 11/28/2012
802 Downloads
Blancanales
This code demonstrates how to create a User Object on Active Directory without any plug-ins.
(6)
Updated 6/1/2010
Released 12/11/2009
Bunta126
Checks a specified OU in Active Directory for inactive user accounts that have not been logged in to for a predetermined number of days then disables and moves the accounts to a different OU.
(6)
Updated 3/30/2010
Released 3/30/2010
Santhosh Sivarajan-
This can be used to copy a value from one attribute to another.  In the below example, I am coping Exchange Alias (mailnickname) value to
extensionattribute14. Update the following attribute based your requirement. $user.psbase.invokeSet("extensionattribute14","$tAlias") You can
(0)
Updated 11/14/2013
Released 6/24/2013
39 Downloads
Ben Wilkinson
This script runs on a scheduled task to monitor and alert for changes in Active Directory.
Any changes to group membership will cause an alert email to be created with the changes included.
(2)
Updated 12/10/2011
Released 1/29/2011
uSlackr

This script is part of the copyAD suite. The suite was developed to copy OUs, users, groups and group memberships from one AD to another.
Export-OUs
(2)
Updated 12/31/2012
Released 9/15/2011
600 Downloads
The Scripting Guys - Microsoft
Forces a user to change their password the next time they logon.
(7)
Updated 8/10/2009
Released 8/10/2009
Abhishek Borole
We can remove users from AD group with this script, You need to create a txt file where all user names should be mentioned and change the DN name for user in below script. As well as change the txt file location. You can execute this script from any server where you should have a
(2)
Updated 5/28/2012
Released 5/28/2012
247 Downloads
Rich Prescott
You can use this script to determine the NTP time source for multiple computers.  It includes the -Computername parameter, which accepts pipeline input and can be used with Active Directory queries to query a large number of computers.ExamplesGet-NTPSourceName            NTPSourc
(5)
Updated 9/7/2011
Released 9/7/2011
428 Downloads
136 - 150 of 770 Items