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
22 results in User Accounts and Powershell [Clear]
HicanNL
Note: This script is tailored for the project I used it in. It should work out of the box (by only changing the $location variable), but sometimes it doesn't (because of the configuration of Active Directory, missing of the AD Module, etc. etc). Most of the times when it doesn't
(49)
Updated 6/12/2013
Released 4/26/2012
25,350 Downloads
Jason W


  This function will locate the computer that processed a failed user logon attempt which caused the user account to become locked out.

 The locked out location is found by querying the PDC Emulator for locked out events (4740). 

 
(8)
Updated 3/20/2013
Released 12/7/2012
3,276 Downloads
Piotrek82
This function will recursively enumerate members of a given group along with nesting level and parent group information. If there is a circular membership, it will be displayed in Comment column.It accepts input from pipeline and works well with get-adgroup.
(0)
Updated 8/20/2013
Released 4/3/2013
402 Downloads
Jaap Brasser
This script queries AD with the name of the home folder. If this query does not result in an account or a disabled account the script will list the folder size with the folder path and error message.
(3)
Updated 5/24/2013
Released 10/19/2012
753 Downloads
ITBigBang
Overview:
This article provides step-by-step procedure about How to query [or] get [or] list all active directory users from a particular domain using PowerShell.
The example PowerShell script will query active directory and list any user whose email address (proxyaddress) ends
(1)
Updated 11/22/2012
Released 11/22/2012
966 Downloads
Jaap Brasser
This PowerShell function takes a user name and a password as input and will verify if the combination is correct. The function returns a boolean based on the result.
(1)
Updated 5/10/2013
Released 5/10/2013
180 Downloads
Jaap Brasser
This PowerShell function takes a user name and a password as input and will verify if the combination is correct. The function returns a boolean based on the result. A computername can be specified to check account details on remote systems.
(0)
Updated 5/20/2013
Released 5/20/2013
157 Downloads
Boe Prox
This is script will first ask for a computername and then will scan the Win32_UserProfile WMI class and present the user with all of the possible user profiles to remove.
(2)
Updated 2/22/2012
Released 1/27/2011
1,219 Downloads
Jaap Brasser
The goal of this script is to grant the destination user all the missing memberships when compared to the source user. Any missing memberships will be added by this script while outputting the changes to the console.This script compares the group membership of two AD users, user1
(5)
Updated 8/13/2013
Released 3/14/2012
684 Downloads
Nfields03
This powershell script searches a specified OU tree in AD for accounts that have been disabled longer than a certain period of time and then deletes them.  User accounts can be whitelisted from the cleanup process and once complete, the script compiles a nice HTML report and emai
(2)
Updated 9/8/2011
Released 9/8/2011
552 Downloads
Jim Britt [MSFT]
This downloadable content (SMA-Build-Exchange-Distribution-List.zip) introduces a collection of example Service Management Automation (SMA) Runbooks that you can use to get acquainted with the platform introduced
with System Center 2012 R2.  This download is supported by the fo
(0)
Updated 8/15/2013
Released 8/15/2013
119 Downloads
Anthony Guimelli
This script gets users from the Active Directory from which it is run that are three years inactive (which can be changed via the $yearsInactive variable) and outputs the list to a csv file with other attributes of interest
including create date, password last set, last logon,
(3)
Updated 9/15/2012
Released 5/25/2012
815 Downloads
Jaap Brasser
The goal of this script is to grant the destination user all the missing memberships when compared to the source user. Any missing memberships will be added by this script and and any additional memberships will be removed.
(2)
Updated 5/9/2012
Released 5/9/2012
448 Downloads
Ansgar Geers
Reads all User of the Active directory based on the Searchbase and sents Email to the User and a Summary to the Administrator

Liest alle User aus dem Active Directory unterhalb der Suchbasis und sendet eine Email zu dem User und eine Zusammenfassung zu dem Administrator
(2)
Updated 6/20/2013
Released 6/14/2013
104 Downloads
Jared Larkins
This Termination script can do several different funcitons.Disable AD User account and set user description to Account Terminated on $dateRemove Group Membership from User account and email and display the resultsMove user to Disabled Users OU.
Change the user password
Set an e
(0)
Updated 1/5/2012
Released 1/4/2012
397 Downloads
1 - 15 of 22 Items