Enable Claims Based on existing Web Application with Classic Mode (Access denied Error)

Recently i encountered a situation in which i need to enable the claim based authentication for the existing web application which has windows authentication. From the central administration there is no way or option to enable it. This can be achieved only by the powershell script. $WebAppName = "http://yourWebAppUrl"$wa = get-SPWebApplication $WebAppName$wa.UseClaimsAuthentication = $true$wa.Update() The... Continue Reading →

Get Logged In User while Impersonate or Run as Admin

Sometimes when a program is run as Administrator, using the System.Security.Principal.WindowsIdentity.GetCurrent().Name will return always System or NT Authority\System. This happens while running the exe under windows service or by Installer class in the windows application. The below code will solve this issue. Code Snippet public static string GetParentUser(int pid)         {             string parentUserAccount = null;             string... Continue Reading →

How to create Win 7 Themes

Creating themes in Windows 7 is much easier. Earlier version of windows don't have this options. We can even export the theme and send to other people for sharing. In this blog i will explain first how to create a theme from Win 7 and later will explain how to share with other people. Part... Continue Reading →

WMI Provider in Hyper V

Windows 2008 server has a Hyper V to manage the Multiple Virtual Machines. The Hyper V manager helps to create Virtual machine and manage them. We can change the VHD and update the path using the Hyper V Manager. There are situation we need to write a program to do those tasks. Example when we... Continue Reading →

Network Profile for XP

  Currently switching between different Networks in XP is difficult. Unless we buy a thirty party tool it's difficult to switch the profile. Here is the very simple solution to switch the profile in XP machine. Save the Network Profile to a Text File Open a DOS shell with start -> run; then type cmd... Continue Reading →

Create a website or blog at WordPress.com

Up ↑