dimanche 18 octobre 2009

Bill Baer : PowerShell and SharePoint Automation Examples Part 3

PowerShell and SharePoint Automation Examples Part 3

Automating your Microsoft SharePoint Products and Technologies installations can provide both consistency and efficiency while reducing the potential for human error.  This is the third post on the subject of leveraging PowerShell to provide configuration logic for your environment(s).  In this example we cover the configuration of Diagnostic Logging through PowerShell and a source Xml manifest.  For previous examples see http://blogs.technet.com/wbaer/archive/tags/Powershell/default.aspx.

Instructions

  1. Copy the source below into somefile.ps1.
  2. Copy the Xml source in DiagnosticsLogging.xml.
  3. In the Windows Powershell console call ./somefile.ps1

Source

#-------------------------------------------------------------------------------
# Function: Main
#
# Description: Main entry point for the script.  Loads the configuration source
#  Xml and initializes the foreach loop to iterate over a
#   collection of Xml nodes.
#
# Parameters: None
#-------------------------------------------------------------------------------

Bill Baer : PowerShell and SharePoint Automation Examples Part 3

CLUB MOSS FRANCE - http://www.clubmoss2007.org/

Pierre Erol GIRAUDY - MVP MOSS

EROLMVPMOSSMINI   MVP_RealWord

Aucun commentaire: