Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal

Search

Search

PowerShell

There are 26 entries for the tag PowerShell.

PowerShell Script for Clearing Windows Event Logs

Sure, you can just type "wevtutil el | % { wevtutil cl $_ }" whenever you feel like it, but how fun is that?!

PowerShell Scripts for Managing the Path Environment Variable

Even though it doesn't take long to add a folder to %Path% by clicking through Windows, I prefer to do this using a little PowerShell instead.

PowerShell Scripts for Managing BackConnectionHostNames (KB 896861)

Here's a set of scripts to make it easier to view the items in the "BackConnectionHostNames" registry key, as well as add and remove hostnames.

PowerShell Scripts for Managing the Hosts File

Here's a set of scripts to make it easier to view the hostname mappings in the hosts file, as well as add and remove hostnames.

PowerShell Scripts for Managing MaxPatchCacheSize

Here's a pair of PowerShell scripts for quickly setting and verifying the MaxPatchCacheSize registry setting.

Some Tips for Managing TFS Workspaces

Are you familiar with the "tfpt scorch" command? Have you ever used PowerShell to quickly cloak/uncloak folders in your TFS workspaces? If not, here are a couple of tips that could save you a little time.

Import website (IIS) logs into SQL Server using Log Parser and PowerShell

Here's a little PowerShell script I whipped up to import the TechnologyToolbox.com log files into a SQL Server database for some "quick and dirty" analysis.

Packaging a code sample using PowerShell

Here is the PowerShell script I developed to avoid accidentally including "junk" in code samples I create for my blog.

Zip a folder using PowerShell

There are a couple of options for creating a zip file for a specific folder. You can either use a third-party solution (like the PowerShell Community Extensions) or do it all with "out-of-the-box" functionality.

Use PowerShell to alleviate the pain of code coverage analysis in Visual Studio 2010 and .NET 3.5 solutions (e.g. SharePoint 2010)

This PowerShell script makes it much easier to perform code coverage analysis in Visual Studio 2010 and .NET Framework 3.5 solutions (e.g. SharePoint 2010).

Tips & Tricks for Running PowerShell Scripts as Scheduled Tasks

In my previous post, I described the PowerShell script used to rebuild the Development environment for TechnologyToolbox.com on a daily basis. This post explains the subtleties of running the script -- or, more generally, any PowerShell script -- using the Windows Task Scheduler...

PowerShell script to deploy/rebuild an ASP.NET Web application (a.k.a. Building TechnologyToolbox.com, part 8)

In this post, I describe the PowerShell script used to rebuild the Development and Test environments for TechnologyToolbox.com. From a high-level perspective, the script deletes the IIS website (if it exists), creates a new website (including the corresponding application pool), and then copies the files for the main site as well as the Subtext files for the /blog application...

PowerShell Script to Configure Search in SharePoint Server 2010

This morning I thought I'd share one more very useful PowerShell script for SharePoint Server 2010. When using Central Administration and/or the Farm Configuration Wizard to create and configure the Search Service Application, the resulting databases...

PowerShell Script to Configure the State Service in SharePoint Server 2010

In my first post today , I provided a number of scripts for deploying custom solutions and features in SharePoint Server 2010. However, those certainly weren't all of the PowerShell scripts that I currently use when working with SharePoint 2010. Here...

Deployment Scripts for SharePoint Server 2010

A couple of years ago, I shared the scripts I created for deploying solutions based on Microsoft Office SharePoint Server (MOSS) 2007, or what I like to refer to as the " DR.DADA approach to SharePoint ." Well, I probably should have done this long...

Configuring Claims-Based Authentication in SharePoint Server 2010

I thought it would be helpful to share my step-by-step procedures for manually configuring claims-based authentication in SharePoint Server 2010 using an "ASP.NET database" and corresponding membership and role providers. Note that the following TechNet...

Formatting PowerShell Script for My Blog

In a previous post , I described how I format code for my blog (i.e. by copying it from Visual Studio or SQL Server Management Studio and then running a simple console application to convert the RTF clipboard text to HTML). I recently started doing...

Using PowerShell to Delete a Site with Subsites in SharePoint Server 2010

When using the "DR.DADA" approach to SharePoint development , I often find myself deleting sites (in DEV and TEST environments) and subsequently re-activating features or running some migration utility to recreate the site hierarchy. In fact, a few...

Use PowerShell to "Reset to Site Definition" in SharePoint Server 2010

In one of my posts last month , I provided the following steps to "reghost" all of the pages in a Team Foundation Server (TFS) project site: Browse to the Site Settings page for the site (e.g. http://cyclops/sites/Demo/_layouts/settings.aspx )....

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 3 - Quick Launch Navigation

Update (2010-05-20) I made some changes to correct a few issues and also to include the final version of the XML input file that I used to update my TFS project sites. In my previous post , I showed how you can use PowerShell to export the quick...

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 4 - Project Work Items Web Part

In the part 1 of this series , I described how to enable the dashboard functionality in Team Foundation Server (TFS) 2010 on project sites upgraded from TFS 2005/2008 (i.e. sites originally created with the MSF Agile v4.x process templates). I noted that...

Configuring Quick Launch Navigation in SharePoint Server 2010 Using PowerShell

Suppose that you need to update a few SharePoint team sites to add a couple of links to the quick launch navigation. Assuming the number of sites to be updated is relatively small, then it is reasonable to manually apply the configuration changes via...

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 2 - Team Wiki

In part 1 of this series , I showed how you can add new Team Foundation Server (TFS) 2010 dashboard functionality to project sites originally created in TFS 2008 (or TFS 2005). Another feature that you might want to add to upgraded project sites is...

SharePoint Server 2010 Windows PowerShell cmdlets

Another essential resource for those (like me) upgrading from Microsoft Office SharePoint Server (MOSS) 2007 to SharePoint Server 2010: Index of SharePoint Server 2010 Windows PowerShell cmdlets http://technet.microsoft.com/en-us/library/ff678226...

StsAdm to Windows PowerShell Mapping (SharePoint Server 2010)

Here is an essential resource for those (like me) upgrading from Microsoft Office SharePoint Server (MOSS) 2007 to SharePoint Server 2010: Stsadm to Windows PowerShell mapping (SharePoint Server 2010) http://technet.microsoft.com/en-us/library/ff621084...

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 1 - Agile Dashboard Features

In one of last week's posts , I provided details on upgrading from Team Foundation Server 2008 to TFS 2010, including some information about updating your TFS project sites. I also provided a reference to the following MSDN article for more information...