Powershell script to obtain the current MOSS 2007 version


Here is a very simple Powershell script that I put together to workout the current build/patch level of MOSS 2007.

I make no warranties etc about the quality of the code but it works quite well. Feel free to use and modify as you see fit.

#######################################################################################################
#
#    Author: Aaron Saikovski - Aaron.Saikovski@microsoft.com
#    Version: 1.0 - Built using CTP V2 build of powershell
#    Date: 25th Sept 2008
#    Description: Returns the current build version of MOSS 2007 you are running - Runs locally only. Obtains the version of MOSS 2007 from the local registry
#    Usage: Get-MOSS2007-Version.ps1
#
#######################################################################################################

cls
set-location HKLM:
$a = get-itemproperty -path "\Software\Microsoft\shared tools\web server extensions\12.0" -name Version
Write-Host "MOSS 2007 Version: " $a -foregroundcolor white -backgroundcolor blue
$Input = Read-Host "Press any key to continue"
set-location c:\


Comments (3)
  1. Interesante Script de PowerShell de Aaron Saikovski para determinar que versión de SharePoint tenemos

  2. Praveen Kumar says:

    How can I get the list of failed and aborted timer JOB STATUS in Sharepoint Server 2007 using powershell. Can anyone please help??

Comments are closed.

Skip to main content