Sample Browser Visual Studio Extension allows developers to search and download 4500+ code samples from within Visual Studio 2012 and Visual Studio 2010. It is provided by Microsoft All-In-One Code Framework in partnership with...
Blog covering various SharePoint and K2 topics and development
With the PowerShell to “enable PDF Previews in search results” script provided by Max Melcher (see Install Office Web Apps 2013 for SharePoint 2013 – with PDF Preview) you can create the Result Types...
Assuming you have multiple SharePoint (Farm) Solutions to install and to deploy based on a time schedule. In SharePoint Central Admin Site – Solution Management, you could schedule the deployment, but you would rather...
SharePoint Migration form SharePoint 2010 to SharePoint 2013. SharePoint 2010 Site Templates have been migrated and deployed to the SharePoint 2013 environment. CompatibilityLevel is 15 (SharePoint 2013). ContentDBs have been migrated. During Visual Upgrade...
When accessing SharePoint, users would get an error message, saying that the page cannot be displayed.
I was trying to activate an Active Directory user account, which obviously was deactivated in the first place. Unfortunately I got the LDAP Message LDAP_UNWILLING_TO_PERFORM 10702 An error occurred in the Account Management Service...
The following SQL script sample forces K2 blackpearl to refresh all K2 identities in the identity table by changing the exiration date to now and setting the resolved status to “0”.
SET [ExpireOn] = GETDATE()
,[Resolved] = 0
,[ContainersResolved] = 0
,[ContainersExpireOn] = GETDATE()
,[MembersResolved] = 0
,[MembersExpireOn] = GETDATE()
The following SQL script sample queries for all identities in the K2 identity table and displays the resolved status.
When creating a new user in c# based on a referenced user (which can be done in Active Directory Users and Computers mmc via “copy”), one of the things to do is to copy...
The following code sample creates a new folder on a network share and gives the user full control on the new folder, subfolders and files. Userful for creating user home folders.
static void Main(string args)
private static void createFolder(string share, string folderName)
string newPath = System.IO.Path.Combine(share, folderName);
public static void AddFileSecurity(string folder, string account)
DirectoryInfo dirInfo = new DirectoryInfo(folder);
DirectorySecurity dirSecurity = dirInfo.GetAccessControl();
InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit,