SharePoint Blog - René Hézser

Anmelden  RSS Feed RSS Feed
Startet die Suche

Archive

Kategorien

Links

Andere Blogs




ITaCS GmbH

Nov 152011

Use Powershell ISE for SharePoint 2010

To be able to use the ISE for SharePoint, you can configure it to load the SharePoint cmdlets automatically.

Scot Hillier wrote a great article about it. Read “Setting up PowerShell ISE for SharePoint 2010”.

If you only want to use the SharePoint cmdlets once, you can register them with this two lines:

If ((Get-PSSnapIn -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
{ Add-PSSnapIn -Name Microsoft.SharePoint.PowerShell }

Published: 11/15/2011  2:45 PM | 1  Comment | 0  Links to this post
Tagged as: Powershell, SharePoint

Aug 312011

Mastering your Hyper-V R2 Core Server

If you like – and use – Hyper-V is out of scope of this post. So let’s assume you have a Hyper-V core installation, as it is free and works great Smile

Microsoft® Hyper-V™ Server 2008 R2 is a stand-alone hyper-visor based virtualization product which includes Live migration.

Download: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3512 (about 1GB)

OK. That was the marketing part.

Many people have great respect for a server, which has no GUI. At least not the way we know “Windows Servers”.

Well, at least for managing your VMs, there are some tools out there. One of them is the PowerShell Management Library for Hyper-V, available on CodePlex. It will give you great control over VMs on your server. And… it has a GUI (kind of):

image

Starting, Stopping and changing the configuration is now possible, without using the Hyper-V Management Console.

The module for PowerShell can be installed by calling a batch file. It works smooth, and does what is needed to manage Hyper-V via PowerShell.

get-command -module HyperV will show all available commandlets. As always (with PowerShell), a get-help commandname shows some help for the commandlet.


Published: 8/31/2011  8:43 PM | 0  Comments | 0  Links to this post
Tagged as: Powershell, CodePlex

Jul 142010

How To install SharePoint 2010 prerequisites automatically

Don’t leave if you read “Powershell” and think “Oh my. Why does it take Powershell to do this?”. Powershell is easy to use and a great tool for this task.

This post is about installing all required components that are needed for a SharePoint 2010 installation (Hardware and software requirements (SharePoint Server 2010)).

So what are we going to to?

  1. Download required software
  2. Create a Powershell script to install the requirements
  3. Install required software

Download required software

The advantage of downloading the required components prior installing SharePoint is, that we can use the downloaded bits on many servers. The size of all these components is about 387 MB. So even if you have a fast internet connection, it might be worth downloading them.

A Powershell script for downloading all required software can be downloaded here: http://autospinstaller.codeplex.com/releases/view/44442

When you start the script, it will ask where you want the downloaded files to be saved.

 image

I’ve copied the content of the SharePoint 2010 Installation bits to a local folder. e.g. C:\Install\SP2010Bits

Then the folder for would be c:\Install\SP2010Bits\PrerequisiteInstallerFiles

Create a Powershell script to install the requirements

A Powershell script in the Rootfolder of the SharePoint bits will install the required software. Create a new file “c:\Install\SP2010Bits\InstallPrerequisites.ps1”. The content of the file would be

# get current folder
$folder = Get-Location
# install requirements
Start-Process "$folder\PrerequisiteInstaller.exe" -Wait -ArgumentList "/unattended `
	/SQLNCli:`"$folder\PrerequisiteInstallerFiles\sqlncli.msi`" `
	/ChartControl:`"$folder\PrerequisiteInstallerFiles\MSChart.exe`" `
	/NETFX35SP1:`"$folder\PrerequisiteInstallerFiles\dotnetfx35.exe`" `
	/PowerShell:`"$folder\PrerequisiteInstallerFiles\Windows6.0-KB968930-x64.msu`" `
	/KB976394:`"$folder\PrerequisiteInstallerFiles\Windows6.0-KB976394-x64.msu`" `
	/KB976462:`"$folder\PrerequisiteInstallerFiles\Windows6.1-KB976462-v2-x64.msu`" `
	/IDFX:`"$folder\PrerequisiteInstallerFiles\Windows6.0-KB974405-x64.msu`" `
	/IDFXR2:`"$folder\PrerequisiteInstallerFiles\Windows6.1-KB974405-x64.msu`" `
	/Sync:`"$folder\PrerequisiteInstallerFiles\Synchronization.msi`" `
	/FilterPack:`"$folder\PrerequisiteInstallerFiles\FilterPack\FilterPack.msi`" `
	/ADOMD:`"$folder\PrerequisiteInstallerFiles\SQLSERVER2008_ASADOMD10.msi`" `
	/ReportingServices:`"$folder\PrerequisiteInstallerFiles\rsSharePoint.msi`" `
	/Speech:`"$folder\PrerequisiteInstallerFiles\SpeechPlatformRuntime.msi`" `
	/SpeechLPK:`"$folder\PrerequisiteInstallerFiles\MSSpeech_SR_en-US_TELE.msi`""

So you have the SharePoint 2010 Bits in a folder. In the same folder is the install script, and in a subfolder “PrerequisiteInstallerFiles” all requirements.

image

Install required software

Just run the script from within Powershell :-)

image

Now you are ready to install SharePoint 2010.

If you get an exception like this, set the execution policy “Set-ExecutionPolicy RemoteSigned“ in a Powershell window.

File C:\install\SP2010Bits\InstallPrerequisites.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At line:1 char:27
+ .\InstallPrerequisites.ps1 <<<<
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException


Published: 7/14/2010  8:26 AM | 1  Comment | 2  Links to this post
Tagged as: SharePoint, Powershell