Welcome to MSDN Blogs Sign in | Join | Help

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:\

Published Thursday, September 25, 2008 2:47 PM by ASaikov

Comments

# Powershell script to obtain the current MOSS 2007 version : EasyCoded

Friday, September 26, 2008 3:50 AM by Mirrored Blogs

# Powershell – Que Versión de SharePoint?

Interesante Script de PowerShell de Aaron Saikovski para determinar que versión de SharePoint tenemos

Anonymous comments are disabled
 
Page view tracker