AppFabric Cache and Powershell Profile

I’ve been working with AppFabric caching for a recent project and have been managing it on my work machine by using the Cache Administration Powershell Console that it adds to the start menu as part of the installation process. Rather than having to load that powershell console up I decided to add it to my profile. I’d never had a use to the profile before now. So a quick google found Setting up a Profile script in PowerShell.

So I opened up my powershell console (which I have pinned to my taskbar) …

PS C:Usersantony> notepad $profile

I then added the following to my (current blank) profile ..

set COMPLUS_ApplicationMigrationRuntimeActivationConfigPath=%SystemRoot%System32AppFabric
Import-Module DistributedCacheAdministration
Use-CacheCluster

Now, when I open up my standard powershell console I can administer AppFabric

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s