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
52 results in User Accounts > 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
Mr X
This script provides Active Directory administrators the ability to quickly and easily identify the exact last logon date and time for a user account.
(14)
Updated 6/16/2013
Released 3/17/2013
12,055 Downloads
Santhosh Sivarajan-
Add Users to a Group using a PowerShell Script C2
(34)
Updated 12/6/2011
Released 8/2/2011
13,079 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
Santhosh Sivarajan-
You can use the following PowerShell script to Start, Stop, Enable or Disable Windows services on a remote machine. An input file can be used to provide computer names - add all your computer names
to input.csv file.More Info:  http://portal.sivarajan.com/2010/07/stopstart-or-e
(6)
Updated 12/5/2011
Released 7/10/2010
2,551 Downloads
Richard Mueller
A PowerShell V1 script to update users (or any class of AD objects) in bulk from the information in a Microsoft Excel spreadsheet. Only single-valued string attributes are supported.
(16)
Updated 9/17/2011
Released 9/17/2011
3,839 Downloads
Santhosh Sivarajan-
This PowerShell script can be used to change the service account credential remotely.
(2)
Updated 12/5/2011
Released 7/26/2011
1,472 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
Santhosh Sivarajan-
This PowerShell Script can be used to search Active Directory using an input file.
(14)
Updated 12/5/2011
Released 7/19/2011
4,002 Downloads
Santhosh Sivarajan-
This PowerShell script can be used update the pwdLastSet (User Must Change Password at Next Logon) value in Active Directory. You can use “0” or “-1” to enable to disable this option:
(3)
Updated 12/5/2011
Released 7/12/2011
1,349 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
TSO
Get inactive / old User (which are still enabled) in your domain as a simple CSV output. Credits tohttp://blog.mattvogt.net/2011/10/06/powershell-last-logon-timestamp-for-single-ho
Run on AD server (2008 or newer)Update the domain and if required the DaysInactiveThis is a simple
(1)
Updated 8/27/2013
Released 8/27/2013
150 Downloads
Santhosh Sivarajan-
Here is a simple PowerShell script which you can use to update the employee ID from a CSV input file.
(4)
Updated 10/3/2011
Released 7/11/2011
854 Downloads
Mr X
In order to provide a better management for password reset of Active Directory user accounts, this script was developed to automatically generate a random password and set it as the new password for a user account. The new user account password will be provided
as part of a UI
(2)
Updated 3/31/2013
Released 3/31/2013
2,346 Downloads
Mr X
This script provides an easy and efficient way to upload Employee's Managers in Active Directory based on the use of a CSV file as input.
(3)
Updated 6/2/2013
Released 6/2/2013
3,601 Downloads
1 - 15 of 52 Items