Search This Blog

Friday, December 27, 2013

Get synopsis of all Lync powershell cmdlets in text file

oneliner to dump all synopsis of Lynv cmdlets to text file

gcm -mo *Lync* | % {get-help $}| fl Name, Synopsis >c:\source\lync.txt

Monday, December 23, 2013

Thursday, December 19, 2013

Interop SIP UDP with Lync

Lync does not support SIP on UDP (port 5060), it only supports TCP or TLS (again TLS over TCP).

If you have a PBX or something that can work only on UDP, you would need a gateway like SBC or else that does support UDP.

Microsoft defend it's UDP rejection here

Monday, December 16, 2013

Force to add Lync contact in Skype

if Skype users can not find Lync used by sip, it may be that federation is not yet established or have some other issue.

To force skype client to add a lync contact even if it's is not discoverable by seach, in IE type

No connectivity with any of Web Conferencing Edge Servers. External Lync clients cannot use Web Conferencing modality.

if you see below error on Lync 2013 frontend, try to disable IP6 on the NIC interface, disable in registry refer to and reboot FE server. If not used the same procedure on Edge.

On FE you can change IIS Web sites bindings to IPv4 IP address instead of all unassigned.
Ensure that there are no deep packet application inspection or antivirus scan on the Firewall in between these servers.

Verify if you have session timeout in your firewall. In case of Palo Alto firewall you needs to set timeout to 4800 seconds, because PA will consider WebConf MTLS as ssl and due to offloading of ssl traffic only every 16th packet will be counted for session time to live. Refer to

WebConf will send keepalives every 300 seconds (5 minutes), 16x300 will be you a timeout setiing required for Palo Alto.

Log Name:      Lync Server
Source:        LS Data MCU
Date:          12/16/2013 5:20:16 PM
Event ID:      41026
Task Category: (1018)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      xxx
No connectivity with any of Web Conferencing Edge Servers. External Lync clients cannot use Web Conferencing modality.
Cause: Service may be unavailable or Network connectivity may have been compromised.
Verify all Web Conferencing Edge Services in the topology are running, and network connectivity is available.

Errors on the FrontEnd 41024 41025 41026 every 20-30 minutes


External lync user can not start audio with internal user

Recently I was troubleshooting a case where externally connected internal Lync user could not establish audio call with internal client. From client log we see

INVITE (message shows 5 candidates, we also see that hotspot firewall blocks UDP, so this client will have only limited choise of TCP to establish media flow. Number of IP4 candidates should be 6+ in ideal situation),

SIP Trying

SIP OK (we get SIP responce from another end and list of candidates from the other side), we can now exchange IM chats

SIP ACK and then suddenly SIP BYE. No audio call is esablished.

IN SIP BYE we observe an error:

ms-client-diagnostics: 23; reason="Call failed to establish due to a media connectivity failure when one endpoint is internal and the other is remote";CalleeMediaDebug="audio:ICEWarn=0x4000322,LocalSite=,LocalMR=xxx:50452,RemoteSite=,RemoteMR=yyy:50175,PortRange=49152:49191,LocalMRTCPPort=50452,RemoteMRTCPPort=50175,LocalLocation=1,RemoteLocation=2,FederationType=0,NetworkName=test,Interfaces=0x14,BaseInterface=0x4,BaseAddress="

if we lookup ICEWarn=0x4000000 in the resource kit:

we could see that problem is coming from egde firewall:

TCP-TCP connectivity checks failed over the TURN Server.
This is indicating that TURN TCP-TCP connectivity check was tried and it failed. The failure indicates that port 443 was not opened on the firewall. If one of the TURN servers was 2007 A/V Edge Server. The administrator needs to open ports from 50,000 through 59,999 TCP to all external Audio/Video Edge services in the environment. This flag isn’t expected and may result in an ICE protocol failure.

Then I have to check if 443 is open, but since I have no access to the Cisco ASA, I use telnet to test the port. The problem with windows telnet is that I can not change IP source address. On the edge if you run telnet 443 you will use address of first IP address (Access). That was ok. But to test thirst IP (AV) i had to download ncat
and then run from edge cmd  (
ncat -s IP_ADDR_AV_EDGE 443
and it was immediately rejected meaning that this direction the port is closed.

When escalated incident was solved by ASA admin, audio calls started flowing.

For more detailed information on connection scenarios refer to

UPDATE: it may happen that firewall is ok, but the VM was migrated to a ESX host that has different VLAN setup and this may prevent traffic also.

Wednesday, December 4, 2013

Bug in Microsoft Lync 2013 client?

Many users report the issue:

This is the error that appears in EventLog when using Lync 2013 mobile.

Log Name:      Lync Server

Source:        LS Storage Service

Date:          12/4/2013 10:18:02 AM

Event ID:      32054

Task Category: (4006)

Level:         Error

Keywords:      Classic

User:          N/A

Computer:      xxx


Storage Service had an EWS Autodiscovery failure.

UnsupportedStoreException: code=ErrorIncorrectExchangeServerVersion, reason=GetUserSettings failed, smtpAddress=xxx@xxxxx, Autodiscover Uri=https://autodiscover.xxxx/autodiscover/autodiscover.svc, Autodiscover WebProxy= ---> Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. The remote server returned an error: (401) Unauthorized. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

   at System.Net.HttpWebRequest.GetResponse()

   at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse()

   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverRequest.InternalExecute()

   --- End of inner exception stack trace ---

   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverRequest.InternalExecute()

   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetUserSettings(List`1 smtpAddresses, List`1 settings, Nullable`1 requestedVersion, Uri& autodiscoverUrl)

   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetSettings[TGetSettingsResponseCollection,TSettingName](List`1 identities, List`1 settings, Nullable`1 requestedVersion, GetSettingsMethod`2 getSettingsMethod, Func`1 getDomainMethod)

   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(List`1 smtpAddresses, List`1 settings)

   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetSoapUserSettings(String smtpAddress, List`1 requestedSettings)

   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(String userSmtpAddress, UserSettingName[] userSettingNames)

   at Microsoft.Rtc.Internal.Storage.Exchange.ExchangeContext.SendGetUserSettingsRequest(StoreContext ctx, String smtpAddress)

   --- End of inner exception stack trace ---

   at Microsoft.Rtc.Internal.Storage.Exchange.ExchangeContext.SendGetUserSettingsRequest(StoreContext ctx, String smtpAddress)

   at Microsoft.Rtc.Internal.Storage.Exchange.ExchangeContext.GetUserEwsSettings(StoreContext ctx, String smtpAddress, CacheMode cacheMode)

Cause: Autodiscovery Uri was not correctly configured or unreachable, that there is a problem with the Proxy, or other errors.


Check event details.  Check autodiscovery Uri is properly configured and reachable. Check that proxy setting is properly configured and reachable.  Validate Lync to Exchange Autodiscovery configuration by following the trouble shooting guide. If problem persists, notify your organization's support team with the event details.


 UPDATE2: KB is not available from MS.

Lync edge media flow explained

Note the link to TechNet session at the end of article.

Tuesday, November 19, 2013

Modified BAT Script to use for CLS - originally from R. Brynteson

REM By Richard Brynteson
REM Avtex
REM 2012
REM some modifications Lambert Consulting
REM run as admin to avoid snooper crach, if it is still crashing - reinstall Lync debug tools

CD "C:\Program Files\Common Files\Microsoft Lync Server 2013\ClsAgent"
goto menu
echo What would you like to trace?
echo 1 Incoming and Outgoing Calls
echo 2 Address Book
echo 3 Application Sharing
echo 4 Audio Video Conferencing Issue
echo 5 Conferencing Auto Attendant
echo 6 Call Park
echo 7 CLS Logging
echo 8 Device Update
echo 9 Hosted Migration
echo 10 Hybrid Voice
echo 11 Instant Messaging and Presence
echo 13 LILR Legacy
echo 14 LILR Lyss
echo 15 Lyss and UCS
echo 16 Media Connectivity
echo 17 Meeting Join
echo 18 Monitoring and Archiving
echo 19 Response Group
echo 20 SP
echo 21 User Replication
echo 22 Voice Mail
echo 23 WAC
echo 24 XMPP
echo 25 Always On
echo 26 Quit
set /P C=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]?
if "%C%"=="26" goto quit
if "%C%"=="25" goto alwayson
if "%C%"=="24" goto xmpp
if "%C%"=="23" goto wac
if "%C%"=="22" goto voicemail
if "%C%"=="21" goto user
if "%C%"=="20" goto sp
if "%C%"=="19" goto rgs
if "%C%"=="18" goto monarc
if "%C%"=="17" goto meeting
if "%C%"=="16" goto media
if "%C%"=="15" goto lyssanducs
if "%C%"=="14" goto lilrlyss
if "%C%"=="13" goto lilrlegacy
if "%C%"=="12" goto im
if "%C%"=="10" goto hybrid
if "%C%"=="9" goto hosted
if "%C%"=="8" goto device
if "%C%"=="7" goto clslog
if "%C%"=="6" goto callpark
if "%C%"=="5" goto conf
if "%C%"=="4" goto av
if "%C%"=="3" goto appsharing
if "%C%"=="2" goto addressbook
if "%C%"=="1" goto inoutcalls
goto choice
set log=AlwaysOn
goto trace
set log=XMPP
goto trace
set log=WAC
goto trace
set log=VoiceMail
goto trace
set log=UserReplicator
goto trace
set log=sp
goto trace
set log=RGS
goto trace
set log=MonitoringAndArchiving
goto trace
set log=MeetingJoin
goto trace
set log=MediaConnectivity
goto trace
set log=HostedMigration
goto trace
set log=LYSSAndUCS
goto trace
set log=LILRLYSS
goto trace
set log=LILRLegacy
goto trace
set log=IMandPresence
goto trace
set log=HybridVoice
goto trace
set log=DeviceUpdate
goto trace
set log=cls
goto trace
set log=CPS
goto trace
set log=CAA
goto trace
set log=IncomingAndOutgoingCall
goto trace
set log=ApplicationSharing
goto trace
set log=AudioVideoConferencingIssue
goto trace
set log=AddressBook
goto trace
ClsController.exe -start -scenario %log%
ECHO Logging has been enabled.  Reproduce your issue now.
ClsController.exe -stop -scenario %log%
ClsController.exe -flush
ECHO Logging has been disabled.
Set TDate=CLS_%date:~4,2%-%date:~7,2%-%date:~10,4%_%time:~0,2%%time:~3,2%_%time:~6,5%.txt
ClsController.exe -search -loglevel verbose > %userprofile%\desktop\%Tdate%
"C:\Program Files\Microsoft Lync Server 2013\Debugging Tools\Snooper.exe" %userprofile%\desktop\%Tdate%
@rem ===== BATCH SCRIPT END =====

Monday, November 18, 2013

Microsoft Lync Connectivity Analyzer on Windows 7 has stopped working

If you have Lync Connectivity Analyzer crashing in Windows 7 (32bit) try to remove KB2840642V2 update.

Saturday, November 16, 2013

Lync to Skype federation requires provisioning from Microsoft side

Some other notes that I can add:

Skype may not like SHA256 (SHA-2) signature on the endge certificate. Check if you can reissue your public certificate with SHA1 (less secure).

Note that egde must trust  "Baltimore CyberTrust Root" as this is what Skype uses.

It may take another 2 weeks after you get email from Microsofdt that provisioning is finished.

Do not forget to enable

Set-CsMediaConfiguration -EncryptionLevel SupportEncryption
Set-CsExternalAccessPolicy Global -EnablePublicCloudAccess $true -EnablePublicCloudAudioVideoAccess $true

as exaplained at

Saturday, November 9, 2013

Lync clients logs path

Lync 2013 Desktop 


Lync 2010 Desktop  


AppStore Lync Client

C:\Users\\AppData\Local\Packages\Microsoft.LyncMX_8wekyb3d8bbwe\ LocalState\Tracing\LyncImm-Lync-0.Lynclog

LWA plug-in 


Friday, November 8, 2013

Troubleshooting lync voice routing

Several links that helped me to create voice routes in Lync 2013

Special note for slide 20:
Multiple routes in the same usage
• Gateway selected based on matching pattern.If multiple routes match, do not rely on route ordering for enforcing preference.
So even if Voice route test in Lync Contorl panel indicates that route works, you may see that FrontEnd may decide differently. When you trace SIP session you may observe that PhoneRoute is not exactly what you expected:

TL_INFO(TF_PROTOCOL) [pool\fe6]1830.044C::11/08/2013-21:40:09.582.00000175 (SIPStack,SIPAdminLog::ProtocolRecord::Flush:ProtocolRecord.cpp(265)) [758279003]
Trace-Correlation-Id: 758279003
Instance-Id: 19D8
Direction: outgoing;source="local"
Peer: pool.corp:59325
Message-Type: response
Start-Line: SIP/2.0 101 Progress Report
From: "testlync13";tag=d9096ad6cd;epid=586928041f
Call-ID: d58bfea8e1c34bed887ce915bfc89be5
Via: SIP/2.0/TLS yyy:59325;branch=z9hG4bK69EC0823.DE3BF7E7D064C968;branched=FALSE;ms-received-port=59325;ms-received-cid=2E200
Via: SIP/2.0/TLS zzz:57226;branch=z9hG4bK2C19BD82.033C499B38802969;branched=FALSE;ms-received-port=57226;ms-received-cid=141A100
Via: SIP/2.0/TLS;received=xxx;ms-received-port=58378;ms-received-cid=3449B00
Content-Length: 0
ms-diagnostics: 12006;reason="Trying next hop";source="";PhoneUsage="National numbers (0xx xxx xx xx)";PhoneRoute="National numbers (0xx xxx xx xx) (Pool UX1)";Gateway="gw1.corp";appName="OutboundRouting"

The solution is to make sure there is one route for a pattern in a PSTNUsage. For that you may need to create another voice policy + PSTNUsage for users and map to the correct route.

Here is another linc that talk about troubleshooting in general:

And banch of tools that help:


Friday, November 1, 2013

Lync 2013 client address book sycnronisation

Newly enabled Lync 2013 client have a random delay 1-59 minutes to start downloading GAL. While it is not ready you may see the message "Address book is syncronising". You can force update as explained here.

Monday, October 28, 2013

Friday, October 4, 2013

Lync 2010 attendant and Polycom CX600

Please note that Lync 2010 attendant is not compatible with Polycom cx600 IP phone in the sense that attendant does not pair with this phone (no login credential are provided for usb tethering), you need to use standard Lync 2010 or 2013 client with this phone or in standalone mode.

Tuesday, October 1, 2013

Exchange 2010 UM auto attendant does not answer

if you have issue with newly created AA and you have eventlog entry with ID 1021(The Unified Messaging server rejected an incoming call with the ID <>. Reason: "The Unified Messaging server can’t find a valid UM hunt group for <> associated with UM IP gateway"), then make sure you have created an account with no spaces in the name. Otherwise delete and create new AA.

Office 2013, Lync 2013 MAK autoactivation

Wednesday, September 25, 2013

Certificate request error "Certificate not issued (Incomplete)"

When I tried to obtain Exchange 2010 certificate I bumped into the error. If you get the error similar to this one: Active Directory Enrollment Policy {04D0DAAD-B09E-4083-AF37-4D6131C40066} ldap: Certificate not issued (Incomplete) when you try to get certificate from Microsoft CA, check if your req file is encoded in Unicode. Open req file in notepad and save with encoding ANSI. Resubmit your request and see if error disappears.

Monday, September 23, 2013

Lync 2013 cumulative updates explained

Tuesday, September 10, 2013

Google blogger posts to google+

Google Now Automatically Shares Blogger Posts to Google+

Monday, August 26, 2013

Microsoft Technet - last days to order

Effective September 1, 2013, TechNet Subscriptions are no longer available for purchase through the TechNet Subscriptions website. Hurry up to order it now!

Saturday, August 17, 2013

dd-wrt NAT with several subnets behind

If you have a complex lab at home and you would like to setup dd-wrt routing do not forget to enable nat for all subnets, as by default dd-wrt will only take care of the one directly connected.
Here is example of my script that adds subnet to the internet nat, script also contains openvpn related commands:
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -t nat -I POSTROUTING -o `get_wanface` --source -j SNAT --to `nvram get wan_ipaddr`

Friday, August 16, 2013

OpenVPN key generation issue

If you see an error during openvpn (my version was OpenVPN 2.3.2 -- released on 2013.06.03 under Windows 7 32bit) key generation
"failed to update database
TXT_DB error number 2"
then remember to re-type unique choices like CN, Email, etc. that are given in square brackets [] - example below:
Country Name (2 letter code) [CH]:CH
State or Province Name (full name) [VD]:VD
Locality Name (eg, city) [Lausanne]:Lausanne
Organization Name (eg, company) [org]:org
Organizational Unit Name (eg, section) [VPN]:VPN
Common Name (eg, your name or your server's hostname) [server]:server
Name [Dan]:Dan
Email Address []

Wednesday, August 14, 2013

SharePoint Connections Amsterdam 2013

SharePoint Connections Amsterdam 2013 will take place at the Meervaart Theatre in Amsterdam on the 19th & 20th November 2013.

Friday, August 2, 2013

eDiscovery in SharePoint 2013

SharePoint 2013 is capable to perform eDiscovery on sources limited to file shares, Exchange and SharePoint. The data can be hold in-place or exported out. If you have other types of data sources, like SAP, Documentum, etc., you may want to compare with other solutions.

SharePoint 2013 apps authentication with OAuth

SharePoint 2013 provides a new method for application authentication. Despite the term authentication, it is based on OAuth 2.0 (Open Authorization). The idea is that an app can access other parts of SharePoint without asking users credentials, but using user's permissions in a frame of selected authorization that user accepts during initial app installation. The apps access requirements are build in apps manifest by the developer. Refer to technet article and this video.

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”}