3 comments

Redirecting to settings.aspx on button click

I was wondering how to redirect back to the settings.aspx page.

Here is what worked like a charm for me.
/// 
/// Event that is raised when the user clicks on OK Button
/// 
/// Sender of the event
/// Arguments of the event
private void BtnOk_Click(object sender, EventArgs e)
{
  // To nasty stuf here
  // ...

  // Redirect to settings page if data is valid
  if (IsValid)
  {
    SPUtility.Redirect("settings.aspx", SPRedirectFlags.Static | SPRedirectFlags.RelativeToLayoutsPage, HttpContext.Current);
  }
}
No comment yet

Find SharePoint Feature by Name

Here is an example of how you can filter the Get-SPFeature Powershell Cmdlet in order to get only those feature you know a part of the feature name.

This snippet will list all features, where "Content" is contained in the Display Name of a Feature :
Get-SPFeature | where { $_.DisplayName -like "*Content*" }
If you want to List a sandboxed feature by name try this:
Get-SPUserSolution -Site "" | where { $_.Name -like "*Content*" }
No comment yet

Bought my first kite equipment

Finally everything becomes good!

I bought my first kite equipment!

Hence we live in a place where no water is around i needed an equipment for kiting on land.

This is what i looks like:
Mystic Warrior II

OZONE FRENZY 2011 RTF

Next Pink Pepperoni


I bought it at http://www.drachenstore.de/.

Now there only has to be wind!
No comment yet

Difference between SharePoint Foundation,Standard and Enterprise

Here is the Link that describes all that on http://sharepoint.microsoft.com/en-us/buy/Pages/Editions-Comparison.aspx
No comment yet

Find out version number of SharePoint Online

Pretty simple, just open SharePoint Designer and open a siteCollection you have access to.

In my case, this looks like:

Version Number displayed in SharePoint Designer

No comment yet

SharePoint ribbons very small in Internet Explorer 8

I just had the Problem that my ribbons look like this:
Small ribbons

Luckily there is a solution from microsoft telling that this is a Problem with zooming. In deed, when you change zoomin back to 100% the ribbons look nice as they did before.
Normal ribbons after changing zoom to 100%

Link to Microsoft: KB2062185 describing the Problem.
No comment yet

Assign Group to SubWeb except for one List with PowerShell on SharePoint

I needed to add a group on all subwebsites within a sitecollection but on one library within those subwebs this group should have no access.

This is how my structure looks like:

SiteCollection
- Web1 (Special Permission)
-- Library 1 (Inherits from Web1)
-- Library 2 (Inherits from Web1)
- Web2 (Special Permission)
-- Library 1 (Inherits from Web2)
-- Library 2 (Inherits from Web1)

And this is how it should look like after the execution of the script:

SiteCollection
- Web1 (Special Permission)
-- Library 1 (Inherits from Web1)
-- Library 2 (Special Permissions)
- Web2 (Special Permission)
-- Library 1 (Inherits from Web2)
-- Library 2 (Special Permissions)

This PowerShell Script solves this task:
<#   
.SYNOPSIS       
    add a group on all subwebsites within a sitecollection but on one library within those subwebs this group should have no access
.DESCRIPTION       
    add a group on all subwebsites within a sitecollection but on one library within those subwebs this group should have no access 
.NOTES       
    Author     : Daniel Sirz 
.LINK       
    http://www.enterprisebugs.com   
#> 
$siteCollection = Get-SPSite 
# Loop over all subwebs
foreach ($spWeb in $siteCollection.AllWebs)
{
  if (!$spWeb.IsRootWeb)
  {
    # Assumption: The group is already present in sitecollection
    $groupName = "Special Group"
    $account = $spWeb.SiteGroups[$groupName]
    $assignment = New-Object Microsoft.SharePoint.SPRoleAssignment($account)
    $role = $spWeb.RoleDefinitions["Mitwirken"]
    $assignment.RoleDefinitionBindings.Add($role);
    # Assign the role to the complete web
    $spWeb.RoleAssignments.Add($assignment) 

    # Get the List
    $Library2 = $spWeb.Lists["Library2"]
    # Break Role Inheritance to have unique permissions for this list
    $Library2.BreakRoleInheritance($true)
    # Remove the role from this special list
    $Library2.RoleAssignments.Remove($account) 

    $Library2.Update()
  }
  $spWeb.Dispose()
}
$siteCollection.Dispose()