26 de septiembre de 2008

Powershell – Que Versión de SharePoint?

Interesante Script de PowerShell de Aaron Saikovski para determinar que versión de SharePoint tenemos instalada, los créditos del mismo están al inicio :

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

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.

No hay comentarios.: