How to identify a SharePoint 2007 farm id

To identify a SharePoint 2007 Farm ID, I installed Microsoft Powershell onto my local development image from. (http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx)
 
Powershell is installed as a hotfix and can be identified as such in Add/Remove programs.
 
Overview of Microsoft Powershell
 
Microsoft Windows PowerShell command line shell and scripting language helps IT professionals achieve greater control and productivity. Using a new admin-focused scripting language, more than 130 standard command line tools, and consistent syntax and utilities, Windows PowerShell allows IT professionals to more easily control system administration and accelerate automation. Windows PowerShell is easy to adopt, learn, and use, because it works with your existing IT infrastructure and existing script investments, and because it runs on Windows XP, Windows Vista, and Windows Server 2003. Windows PowerShell is now included as part of Windows Server 2008 and can be evaluated in Windows Server 2008 Beta 3. Exchange Server 2007, System Center Operations Manager 2007, System Center Data Protection Manager V2, and System Center Virtual Machine Manager also leverage Windows PowerShell to improve administrator control, efficiency, and productivity.
 
Powershell steps to finding a SharePoint 2007 Farm ID
 
Running powershell, I followed these commands, Set-ExecutionPolicy RemoteSigned[System.Reflection.Assembly]::LoadWithPartialName(“”Microsoft.SharePoint””)$spFarm = [Microsoft.SharePoint.Administration.SPfarm]::Local$spFarm
Look for the ID field, this GUID is your SharePoint Farm Id.
Remember to exit from the Powershell command prompt once your done.

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