Thursday, December 11, 2014

SharePoint 2013: Host-named site collections

With SharePoint 2013 it is possible to use host-named site collections. It's pretty cool and might shorten a lot of domains companies use internally for their business units. In SharePoint 2010 the feature was only available for web applications.

To create a host-named site collection (HNSC) you have to use PowerShell:
New-SPSite "" –OwnerAlias “contoso\OWNER" –HostHeaderWebApplication "" –Name "Example" -Description "Exampleportal" -Template “STS#0” -language 1033

With this you create the site collection "Exampleportal" within the web application "". Of course you have to create a DNS entry for this new HNSC.

You might want to use this with a managed path. First we need a new managed path
New-SPManagedPath 'businessunits' -HostHeader

Now you can create your site collection:
New-SPSite "" –OwnerAlias “contoso\OWNER" –HostHeaderWebApplication "" –Name "Example" -Description "Exampleportal" -Template “STS#0” -language 1033

If you want to move existing site collections from path-based site collections to HNSC you will have to backup your site collections and restore it at a new collection.

Sunday, December 7, 2014

Windows Server 2012: How to create a scheduled PowerShell task?

Sometimes you just need to have a task firing at certain times. In my case I had to run a PowerShell script every night. Of course I didn't want to get up every time so I created a scheduled task.

1) Use "Win + Q" or open the search and enter "Task Scheduler"

2) Right click and and look for "Create New Task" in the menu.

3) To add a PowerShell script, first click on "Actions"

4) Under "Program/script:" enter "PowerShell". Next to "Add arguments (optional):" add the path to the script. It won't work if you just enter the path to the script under "Program/script" as far as I know.

And that's it! Now your PowerShell script will run depending on the schedule you implemented.

Thursday, December 4, 2014

Microsoft Sway: What? How?

Microsoft started a Preview of some sorts of Microsoft Sway. At first I was a bit confused in what I should actually do with it. But after using it for a couple of minutes I already knew: I love it.
It's a really easy way to crate presentations of some sorts and works pretty cool so far. Somethings are missing, but will get added later on. Here's a little "How To" on Sway.
If you get a change to take a look at it or want to try it, head over to

Login and select "New". Now all the Sway-Magic can flow!

You can click on "Background Image" to select a back ground image. It doesn't have to be on your computer but practically all over the web.
I decided to use the Microsoft logo which will automatically be displayed in the background as soon as I place it there.
You can add new elements by clicking on the "+", just choose what you need next.
After you clicked on one of the modules it will be added to your "stream". I don't know if there is a name for that thing. The only thing you have to do now is add your text.
Alle the design elements will be automatically handled by Sway.

If you are anything like me, you might love this thing: You just add information to your Sway and won't get bothered by the design. Every styling element is handled by Sway.

Tuesday, December 2, 2014

Office 365: Configure IRM

Configuring IRM in Office 365 is really easy and works really good. So here is what you have to do: 1) Login into Office 365 as an administrator and got to the Office 365 settings page:

2) You can find the "Rights Management" settings under "Service Settings"

3) Click on "Manage"

4) Click on "activate". Office 365 will now create an Azure AD RMS, which is needed to get IRM running on Office 365.

5) Office 365 displays a short message explaining what you are going to activate now.

6) After a couple of seconds rights management will be activated.

7) Now you just have to select a SharePoint Online library and click on "library settings"

8) You will find the listing for "Information Rights Management" under "Permission and Management"

9) There you can find a lot of options to choose from. As always you first have to click on "Show Options" so see everything.