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
19 results in Security > PowerShell [Clear]
Raimund Andrée
Allows a much easier management of permissions on files and folders using PowerShell
Featured
Raimund Andrée
Allows a much easier management of permissions on files and folders using PowerShell
(105)
Updated 8/21/2013
Released 6/20/2011
96,819 Downloads
Boe Prox
Contains two functions that can be used together to view the Share permissions and the NTFS permissions on each share on a server or servers.
(21)
Updated 2/22/2012
Released 9/13/2010
6,479 Downloads
Brenton J.W. Blawat
By: Brenton BlawatThe encryption and decryption of strings is essential when creating an enterprise product that has clear text passwords. This function displays how to encrypt and decrypt a string using Powershell using Richard’s code located at http://poshcode.org/116. While I
(3)
Updated 8/27/2012
Released 8/27/2012
1,030 Downloads
danielsul
This is a script to monitor Data being placed on a USB.
It then emails with attached file to show whats been added and by who it can run as a background process so the user does not see it. This script is to help with Data Loss Prevention which is becoming more of an issue in th
(1)
Updated 12/11/2013
Released 12/11/2013
12 Downloads
Roger Cormier
This script retrieves passwords for SharePoint 2010 Managed accounts.  One variable is required, that is the managed account you wish to retrieve.The script uses two steps to retrieve the password for the managed account and performs all necessary cleanup to ensure we leave the e
(5)
Updated 10/18/2012
Released 4/26/2012
869 Downloads
Rohn Edwards
This is a module that helps with working with security descriptors for various objects.

PowerShell version 3 is required for use.
(1)
Updated 7/6/2013
Released 7/6/2013
109 Downloads
obscuresec
GetPasswordFile is a function that utilizes Copy-RawItem (http://gallery.technet.microsoft.com/scriptcenter/Copy-RawItem-Private-NET-78917643) and the volume shadow copy service to copy the password (either ntds.dit or sam) and system file to a specified
directory. This is a sa
(2)
Updated 6/28/2013
Released 6/20/2013
182 Downloads
Georges Maheu [MSFT]
Document service accounts with PowerShell, Excel and WMI. Series of scripts demonstrating optimization techniques. Go from documenting 50 computers in 90 minutes down to 42 seconds. Microsoft PFE Georges Maheu discusses these techniques in a series of “Hey Scripting Guy" blogs.
(5)
Updated 3/2/2012
Released 1/17/2012
1,149 Downloads
Goude, Niklas
Extracts LSA secrets from HKLM:\\SECURITY\Policy\Secrets\ on a local computer. The function must be run with elevated permissions, in 32-bit mode and requires permissions to the security key in the registry
(0)
Updated 6/26/2012
Released 6/26/2012
593 Downloads
Raimund Andrée
Allows a much easier management of permissions inside the registry database using PowerShell
(50)
Updated 8/27/2011
Released 7/27/2011
11,147 Downloads
Goude, Niklas
The Get-TSWordXMetadata function displays Metadata from a WordX file using the Word.Application Com Object.
(0)
Updated 6/26/2012
Released 6/26/2012
206 Downloads
Goude, Niklas
DESCRIPTION The Enable-TSDuplicateToken function duplicates the Access token of lsass and sets it in the current process thread. The CmdLet must be run with elevated permissions.
(1)
Updated 6/26/2012
Released 6/26/2012
461 Downloads
Peter Kriegel
If you need to edit the .NET Code Access Security (CAS) on a Workstation you have to use the very unhandy CASPOL.EXE.
I had the need to change the CAS to Trust/Untrust a Share.
I found no way to remove the Trust easily.
So I Wrap and Parse the output of the Caspol.exe.
(1)
Updated 2/2/2012
Released 2/1/2012
440 Downloads
Jeff Schulman
This automates a somewhat tedious manual process of turning on failure auditing for file access on all volumes. Additionally, it turns off indexing on each disk.
(0)
Updated 7/24/2013
Released 7/3/2013
66 Downloads
Jeffrey S. Patton
DescriptionThis script arose from a need within our domain structure. We have various departmental admins, and they have been given the ability to create GPO's within their own OU's (See this

article for more details). If a given admin has only a few GPO's it's a simple thing
(2)
Updated 2/14/2012
Released 6/7/2011
111 Downloads
1 - 15 of 19 Items