Feature Delegation in Internet Information Services (IIS) 8.5 by scripting

Preface

This article would like to show the possibilities of Feature Delegation that is part of the Internet Information Services (IIS) 8.5 that is available on Windows Server 2008 R2.

For those who has never heard about the IIS 8.5 I suggest that visit the following URL: http://www.iis.net/learn

What is Feature Delegation?

Per definiton: „Use the Feature Delegation page to configure the delegation state of IIS Manager features for sites and applications on your web server. When you configure the delegation state of a feature from IIS Manager, you specify whether the feature’s related configuration section is locked or unlocked in the server-level configuration files (ApplicationHost.config and root Web.config) for IIS 8.5. When you lock a feature, configuration can only be read and written in the server-level configuration file for that feature. However, you can unlock a feature when you want configuration to be read and written in lower-level configuration files, such as a Web.config file in your site or application.”

Continue reading “Feature Delegation in Internet Information Services (IIS) 8.5 by scripting”

Advertisements

Sharepoint integrated reporting services with SQL Always on availability group

It happened once that i needed to provision a Sharepoint 2013 farm including MS SQL Server Reporting Services (SRSS). I had some issues – maybe you found this post ‘cos of that – which i would also share and give a hint on the solution.

Continue reading “Sharepoint integrated reporting services with SQL Always on availability group”

Create Active Directory users with Powershell

Scope

In my test environments I always have to create a couple of users to be able to do performance or functionality tests. Powershell really helps me with this task and I just want to archive this for later.

In the next few paragraphs I show you my method to create hundreds of test users on Windows Server 2012 with Powershell.

Continue reading “Create Active Directory users with Powershell”

Cannot install .NET Framework 3.5 features on Windows Server 2012

Symptom

On a default installation of Windows Server 2012 sometimes you experience problems with the .NET Framework 3.5 features while trying to enable it.

It fails if you try to install it using the Add Roles and Features Wizard, using Powershell or dism.

.NET Framework 3.5 features installation failure
.NET Framework 3.5 features installation failure

The same happens during an SQL Server installation with the following error message:

The following error has occurred:

Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling Windows feature: NetFx3 from Windows management tools and then run setup again.

Error while enabling Windows feature: NetFx3
Error while enabling Windows feature: NetFx3

Continue reading “Cannot install .NET Framework 3.5 features on Windows Server 2012”

Roles, features and the WinSxS folder in Windows Server 2012

Back in time when I had to install additional Windows Components on a 2003 Server the Windows Comopnents Wizard asked me to insert the install disk or point to a folder which contains the install files. In Windows Server 2008 this was changed and all files were copied to the C:\Windows\WinSxS folder so when I decided to install a feature or a role all files were already on the machine. Unfortunately these files cannot be removed but in Windows Server 2012 you have this option to save space, have smaller server footprint, and even satisfy your security officer: this is called features on demand.

Continue reading “Roles, features and the WinSxS folder in Windows Server 2012”

Check OCS/Lync enabled AD user with PowerShell

The security is important; working for a huge company sometimes causes problems. You get less right, because of the security. If you a normal user, and you would like to check if one of the user enabled for OCS without Admin rights or Universal Server Administrator right. A normal domain user can check it, because the AD readable for all AD users.

Continue reading “Check OCS/Lync enabled AD user with PowerShell”

Annoying apostrophe issue in Powershell

Of course it is not annoying if someone can accept this escape character and as matter as the fact it is bit better that the divide sign (/) but even I say I am always suffering about this.

Let’s see what I am talking about:

$var = Get-ChildItem -Name C:\

foreach ($work in $var) {Write-Host “<a href=”http://site/list/$work”>$work</a>&#8221;}

The result is not exactly what I really waited. It is not working because of the quotation mark around the http:// tag.

Continue reading “Annoying apostrophe issue in Powershell”