powershell
Mar 07 2012
Discovering, Activating, and Deactivating Features In A SharePoint Site Collection Using PowerShell
Recently I had to deactivate/activate a hidden feature that was deployed to a SharePoint 2010 Site Collection. It was deployed as hidden to prevent a critical capability from being turned off accidentally. Hidden features do not show up on the Manage Site Features page, but they can be displayed using PowerShell.
I needed to perform the following:
- List the active features
- Deactivate/Activate the feature
List The Active Features
Jul 10 2009
Cleaning up Visual Studio TestResults with PowerShell
If you write your unit tests using Visual Studio, then you know how quickly those pesky "TestResults" folders can eat up precious disk space over time. Here is a simple, yet effective PowerShell script to seek and destroy them!
Assuming all of your code is collocated in the same parent directory, replace "C:\Projects" with your parent directory.
(get-childitem C:\Projects\* -recurse) | where{$_.name -eq "TestResults"} |% {remove-item $_.fullname -recurse}
© 2011 CapTech Ventures, Inc. All Rights Reserved. Legal Notices.