Search This Blog

Tuesday, July 30, 2013

Powershell to monitor for SharePoint logs based on correlation ID

Apart from ULS, you can use powershell to search for a correlation and browse it in notepad, example:

SharePoint User Code Host starts then stops

SharePoint User Code Host starts then stops with ULS errors:

Performance Counter OS (pdh) call failed with error code PDH_CSTATUS_NO_MACHINE.
- Process perf counters are disabled. Sandboxed code monitoring cannot continue
from SPUCHostService.exe

EventViewer reports:

Log Name:      System
Source:        Service Control Manager
Date:          7/30/2013 12:00:10 PM
Event ID:      7034
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
The SharePoint User Code Host service terminated unexpectedly.  It has done this 18 time(s).

The solution is described in

add windows service account of SharePoint User Code Host to local server groups 'Performance Monitor Users' and 'Performance Log Users'

Monday, July 29, 2013

SharePoint 2013 search access denied to People data sps3:// (Event 1314)

The error:

Log Name:      Application
Source:        Microsoft-SharePoint Products-SharePoint Server Search
Date:          7/29/2013 10:53:09 PM
Event ID:      1314
Task Category: Crawler:Gatherer Plugin
Level:         Warning
User:          CONTOSO\sp_crawl
The start address sps3://sp2013:81 cannot be crawled.

Context: Application 'Search_Service_Application', Catalog 'Portal_Content'

Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled.   (0x80041205)

The suggestion above is great, but does not help as it has been a case already.

The solution is to add crawler account to User Profile Service Admins with right to get data from People Data:

Sunday, July 28, 2013

SharePoint 2013 organisation browser empty in non-mysites

To fix the issues please refer to
You need to place the script under Organisational browser webpart on the same page.

However, the script is better to be placed in embeded HTML, rather than in Content Webpart.

Saturday, July 27, 2013

SharePoint 2013 Add-SPProfileLeader cmdlet gives "ProfilePropertyCache does not have" error

if you have an error trying to specify your CEO in the User profiles -

"Add-SPProfileLeader : UserProfileApplicationNotAvailableException_Logging ::
UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does
not have "

or if you use Update-SpProfilePhotoStore

Update-SPProfilePhotoStore -CreateThumbnailsForImportedPh
otos $true -MySiteHostLocation http://xxxxxxxxxx
Update-SPProfilePhotoStore :
UserProfileApplicationNotAvailableException_Logging ::
UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does
not have ...

try to repeat this powershell command under farm account.

Or provide permission to your account in Central Admin - highlight User Profile Service Application and then click Permissions and add account that you use for PowerShell with Full permission

Sometime if it still does not work, check rather administrator.  Note also Service Account running Distributed Cache - AppFabric Caching  service ....

Microsoft supporting startups

Friday, July 26, 2013

SharePoint 2013 Event ID:7362 portalsuperuseraccount

If you get this eventlog message in SharePoint 2013:

Log Name:      Application
Source:        Microsoft-SharePoint Products-Web Content Management
Date:          7/26/2013 3:05:44 PM
Event ID:      7362
Task Category: Publishing Cache
Level:         Information
Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unneccesary system resources.
 To configure the account use the following command 'stsadm -o setproperty -propertyname portalsuperuseraccount -propertyvalue account -url webappurl'. The account should be any account that has Full Control access to the SharePoint databases but is not an application pool account.
 Additional Data:
 Current default super user account: SHAREPOINT\system

make sure you read this articles  and

before you actually run stsadm, as you may break SP for all users.

Log viewer for SharePoint 2013

For troubleshooting and for correlation of errors, you might still need good old ULS viewer from Microsoft PSS. It helps to highlight correlated entires if you enable Smart Highlight.

Thursday, July 25, 2013

SAML claims authentication in Sharepoint over AD FS

Following a lab on configuring SAML authentication in Sharepoint over AD FS
based on

I released that there are few typos in the scripts, also not clear the mapping of LDAP attributes to outgoing Claims, I had to modify to make it work from SAM-account-name to Email address from LDAP side

Free MS e-book - a guide to claims-based identity and access control

Although based on earlier versions of SharePoint and Windows, this book provides very detailed explanation on all concepts of Microsoft implementation of claims-based authentication and access controls.

A paper version is available on Amazon:

Wednesday, July 24, 2013

Bruce Schneier talks about power

Human society runs on trust. We all trust millions of people, organizations, and systems every day -- and we do it so easily that we barely notice. But in any system of trust, there is an alternative, parasitic, strategy that involves abusing that trust. Making sure those defectors don't destroy the cooperative systems they're abusing is an age-old problem, one that we've solved through morals and ethics, laws, and all sort of security technologies. Understanding how these all work -- and fail -- is essential to understanding the problems we face in today's increasingly technological and interconnected world.

Tuesday, July 23, 2013

How to change Sharepoint 2013 top left SuitBar to a custom text or image using masterpage

The first thing any branding is looking at is this famous "SharePoint" word in the top left corner of OOB Sharepoint 2013. There are many methods to change it - by creating Visual Studio project or App, by twicking in powershell, etc. Here is very simple method using masterpages and javascript. In Sharepoint Designer 2013 locate a source masterpage, make a copy to your custom name. Then locate the place where you can modify an object called "ms-core-brandingText" - quote from source fully rendered client HTML

In case of seatle masterpage locate
and just above it add

This is an example, you can add a logo image or link instead. Check-in the new master page with major version and then set this master page for the site.

The result would be something like this:

Note that to modify My Sites master page you need to open My Sites in SharePoint Designer (in my case URL and modify directly the masterpage called mysite15.master with the same method.

User Profile Synchronization is not running on SharePoint 2013

When you configure user profile synchronization settings in Central Administration of SharePoint 2013, you may receive the error message:

“Cannot navigate to the requested page because User Profile Synchronization service is not running. Please start User Profile Synchronization service”.

To start it you need to select “Manage services on server” and provide credentials:

If you do not have this menu on your screen, probably you are not running IE10 as administrator.

Monday, July 22, 2013

How to enable Design Manager in SharePoint 2013 site

Design Manager is new feature of SP2013, but it is not enabled by default. To enable it you would need Publishing feature.

Go to “Site Settings” of the collection root site and select “Site collection features”:

Then Activate Publishing infrastructure:

Then in the “Site Setting” of the root site or any target subsite select “Manage site features”:

And Activate “SharePoint Server Publishing”:

Now you should be able to see new menu in under Settings Icon called “Design Manager”:

SharePoint 2013 resource

Articles contain an overview of product features, product comparison information, system requirements, product evaluation kit, news and reviews, case studies, videos, virtual labs, and product roadmap.

This Post contains a bunch of Free Step by Step SharePoint Server 2013 Lab Guides that Microsoft gives for free on its Download Center. Usually I post them together with the other free resources that Microsoft offers, however this is a Test Lab Guide (TLG) only post, and the rest of the resources will come later in the month.

Sunday, July 21, 2013

SAML suppose to be secure!

using SAML standard does not mean that your SAML implementation is automatically secure. Here is attacks examples on XML signature (simple order change in XML might open a door)

Wednesday, July 17, 2013

Bruce Schneier Answers Your Questions Video

A lot of fun and serious thoughts

HP Storage vulnerability

HP security bulletin  report an issue in HP Storage powered by LeftHand OS.

It would be interesting to know if earlier products close to EOL such as EVA 4400 have the same vulnerability. HP has the similar support access method to earlier versions of enterprise storage, but it is not powered by LeftHand OS.

Tuesday, July 16, 2013

CentOS cluster

Detailed video walkthrough of creation of  a cluster on CentOS (RedHat) nodes

note that you can not use cluster fencing on hyper-v guests, so for your lab use KVM or VMWare or Xen - read more at

The Four Pillars of Identity

Four pillars:

Administration (provisioning, change control, automation)
Authentication (is user really who he claims to be)
Authorization (role, risk, policy, claims based)
Audit (alerts, reporting, governance)

Saturday, July 13, 2013

DVD drive is not recognized in Windows 8

Suddenly I realised that my CDROM/DVDROM is missing in Windows 8. BIOS does detect it as usual.

The issues is inside Windows. The registry trick helped to solve it:

reg.exe add "HKLM\System\CurrentControlSet\Services\atapi\Controller0" /f /v EnumDevice1 /t REG_DWORD /d 0x00000001


Little bit annoying, I do not understand why I should use registry for a very standard feature on my PC.

Thursday, July 11, 2013

MCSE Private Cloud 2012

passed the last exam today!

Microsoft Thursday - this time is a tough one - all platforms affected, including Windows Kernel, etc.

Code for exploits probability is high, patch ASAP: 

1- Exploit code likely

CentOS switching to Oracle Linux

According to Oracle by switching from CentOS to Oracle Linux you shorten delays on RHEL sources recompilation which sometimes can be vital in critical enterprise environments. Oracle Linux claims 100% compatibility with CentOS. Another advantage is that Enterprise customers can optionally buy a support from Oracle. Otherwise it is as free as CentOS.

to switch use command:

curl -O 

Monday, July 8, 2013

Create System Center Service Manager Service Offering based on new SCVMM service with runbook automation

Assuming you have created a working runbook that creates automatically a service instance in SCVMM (refer to runbook example then you can proceed and use this runnbook in in Service manager –
Create template with class set to “Runbook Automation Activity”
In the template form select a runbook and fill the initial data

Create template with class set to “Service Request”, it is required to appear later in the droplist

In the template forms activities tab click plus icon
And the select the activity you want to add to the request workflow
Define at what stage of workflow this activity will execute.
Now you can define a request offering (Library - Service Catalog – Request offering - Create) by selecting a template we just created above
We may want to ask user to provide new VM ServiceName
And map it to runbook initial data variable ServiceName
Set publish status to Published.

Now you can create Service Offering and link it to this request offering

Set status of service offering to published and you now can start requesting it from Self-service portal or directly in the SM console.

Service request is in progress:
Service Manager -
Orchestrator -
Virtual Machine Manager -

Sunday, July 7, 2013

Audit Collection Services in System Center Operations Manager

How to create service automation in System Center

a lab scenario from MS virtual lab, provides a scenario on how to create templates, requests, automation tasks, runbooks.

System Center 2012 SP1 Orchestrator runbook to deploy a SCVMM service from a template

Here is an example of System Center 2012 SP1 Orchestrator’s runbook to deploy a SCVMM service from a defined template.

Service Template Name   equals {TemplateName from “Initialize Data”}
Service Template Release   equals {TemplateRelease from “Initialize Data”}

Service Template Name {Service Template Name from “Get Service Template”}

Note that deployment did not work from the beginning with error:
“The following errors occurred when invoking PowerShell script:Could not find service template    Exception: InvalidOperationException Target site: PSRunspaceInvoker.HandleInvokeErrors Stack trace:    at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.HandleInvokeErrors(IList invokeErrors)    at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.Invoke(RunspaceInvoke runspace, String script, ILogger logger)    at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSScriptRunner.Execute(String script)    at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.ActivityBase.DoWork(IActivityRequest request, IActivityResponse response)    at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.VMMBase.Execute(IActivityRequest request, IActivityResponse response)”
The solution was to add optional parameter Cloud Name as shown in the screen above.

Service Configuration Name {Service Configuration Name from “Configure Service Deployment”}

Saturday, July 6, 2013

Windows Server 2012 Task Manager does not show disk

You probably noticed that by default Windows 2012 server does not show disk performance in Task Manager. Microsoft argues that it has high overhead and was disabled in Server. In Windows 8 it is enabled by default. Microsoft suggests to use Resource Monitor instead.  Anyway to enable it disk in Task Manager run:

diskperf -y

and try to open Task manager again.

To disable:

diskperf -n

Friday, July 5, 2013

Smart and dumb objectives

For those who like abbreviations like:

objectives must be S.M.A.R.T - Specific, Measurable, Actionable, Realistic, Time based.

Here is one more:

Objectives must be D.U.M.B. :)  - Doable, Understandable, Measurable, Beneficial.

Thursday, July 4, 2013

One more to MCSE

Exam 70-247 - passed! The next is 70-246 the last between me and MCSE Private cloud.

Tuesday, July 2, 2013

How to fetch VM IP address from SCVMM using powershell

$VM = Get-SCVirtualMachine -Name "VMname"
$ValuesMap = @{}
$ValuesMap.Add("NetworkAddressIPv4", $null)
$map=Read-SCGuestInfo -VM $VM -KvpMap $ValuesMap

UPD: another cmdlet that give IP specific info is Get-SCIPAddress, but KVP is more flexible if you also need other VM information from Integration services channel.

SCVMM compliance job stuck

There is a compliance scan job stuck in SCVMM,no way to stop via GUI and powershell complains that
"stop-SCJob : The Start compliance scan job cannot be canceled. (Error ID: 1709)". Is there a way to remove it from being displayed and run?

For Apple it is again all about design - new Mac Pro

Nginx on Cloud Flare

CloudFlare: more traffic than Amazon, Wikipedia, Twitter, Instagram, and Apple combined

Read more at 

The core technology of CloudFlare is Nginx...

NetApp data ONTAP storage simulator

If you are a customer of NetApp, you can download storage simulator for your lab of SCOM to test out storage management packs without a physical SAN:

SCOM 2012 Management pack from MIB

To monitor a device in SC Operation Manager you may use generic tools or import management pack specific for a device. MP can be done from MIB:

A nice example of niche market business model ...