Archive

Archive for November, 2011

Installing Cumulative updates – current best practice

November 17, 2011 Leave a comment

This is not brand new info, but I think it is important enough to mention again. Huge improvement!

Just a repeat on the current(August 31, 2011) best practice:

Updates for SharePoint 2010 Products
http://technet.microsoft.com/en-us/sharepoint/ff800847

Best practice

The packaging of cumulative updates changed as of August 31, 2011. The following packages are provided for cumulative updates:

  • SharePoint Foundation 2010
  • SharePoint Foundation 2010 + SharePoint Server 2010
  • SharePoint Foundation 2010 + SharePoint Server 2010 + Project Server 2010

As a result of the new packaging, it is no longer necessary to install the SharePoint Foundation cumulative update and then install the SharePoint Server cumulative update.

Previously, the recommendation was to install first foundation, then server, then project if you had project server installed. What this means is that you no longer have to do all of them, just the package that contains all of your updates. If you are running server, install the server package only. (these packages have before been called Überpackages, they are now ‘reinstated’)

Happy patching

Powershell – Getting started really really quick!

November 7, 2011 Leave a comment

This is supposed to be the first introduction you get to Powershell. Start with these few steps and get further on your own.

Start a Windows Powershell Shell

Click on icon in Taskbar or, go to Start/All Programs/Accessories/Windows-PowerShell/Windows PowerShell.

Run commands

Try the following so that you will get the idea:
Use Get-Command to get a list of all available CmdLest, Functions, Aliases and Applications.
Use Get-Command *-Computer* and do a wildcard search for CmdLets where the object begins with Computer.

Run Scripts

First set the Execution Policy for the server ‘Set-ExecutionPolicy RemoteSigned‘.
Using the Tab key. Type ‘Get-Ex‘ then press Tab once. This will give you ‘Get-ExecutionPolicy‘.

Calling scripts. In order to execute a powershell scriptfile, either type the path to the file, or use tab, or drag and drop.
(Drag the file InstallMyProduct.ps1 from its location in a file explorer, drop the file in your Powershell shell window)

Write your own Scripts

 

 

param(
[Parameter(Mandatory = $true, position = 1)]
[String]$Command
)
Get-Help $Command

Paste this into a textfile, save it in C:\Scripts\ as GetHelpOn.ps1 – Execute by:
C:\sc‘ tab ‘GetH‘ Tab ‘–‘ Tab type any PS command, ex. ‘Get-ExecutionPolicy’ (Get-exe Tab)
The final command line will look like:
C:\Scripts\GetHelpOn.ps1 –Command Get-ExecutionPolicy’

What this simple script does is this: It asks for one parameter: $Command
Then it executes the Command Get-Help and adds the parameter $Command as a parameter to Get-Help, the result is the help text of the command ’Get-ExecutionPolicy’.

To add conditions to your script, use if or case:

if (condition) {code block}
elseif (condition) {code block}
else (condition) {code block}

Example (Append at the bottom of your script GetHelpOn.ps1):

if ($Command –eq “Get-ExecutionPolicy”)
{Write-host “You selected to get help on Get-ExecutionPolicy”}
elseif ($Command –eq “Get-Help”)
{Write-host “:-) You selected to get help on Get-Help!”}
else {Write-host “You selected something else…”}

More info

www.powershell.nu   http://www.powershell.se  (In Swedish)  http://technet.microsoft.com/en-us/powershell

Thats it, good luck getting started.

I have a site called SITE_2 in IIS, whats this…?

November 2, 2011 Leave a comment

This is just a really short instruction and explaination on the SITE_2 phenomenon.

This site is created for some reason in IIS after you have uninstalled SharePoint from a server.

Delete it by selecting the ‘Sites’ container and then right-clicking in the right pane on SITE_2, Remove.

If you click on it in the leftpane you will get an error…’The application / does not exist’

‘Til next time.

_________________________________________________________

Enjoy!

Regards

Twitter | Technet Profile | LinkedIn