- **** Efficient way to add a new item to a SharePoint list
- **** Controlling Single Web Parts with CSS
- **** 25 Common Design Questions
- SharePoint: Writing messages to ULS (Unified Logging System)
- What Are The Biggest SharePoint API Mistakes?
- Easy Way To Add Role Assignments
- Getting A Specific SPListTemplateType Icon
- Get SPGroup, If Not Available, Create!
- Understanding SharePoint: Event Receivers
- Create a simple hello world custom Application Page in SharePoint.
- Virtual Earth + SharePoint = Business (Location) Intelligence
- Integrating a Custom ASP.NET Application into SharePoint (Part 2)
- Programmatically Apply Theme to a site
- AJAX enable Zone Tabs Web part in SharePoint
- Best Practices disposing SharePoint objects – Reference Guide
- Using SharePoint instead of email attachments
- Options for taking SharePoint files offline
- Creating a Custom Web Service in SharePoint for Uploading Document
- Submit InfoPath form to SharePoint list
- Regular Expression Validated Custom SPField
- jQuery: the SharePoint Band Aid
- InfoPath and Visual Studio Workflows – 3 Great Tricks (3 of 3)
- Notes Field Not Getting Populated by SPUserCollection.Add Method
- February Cumulative Update for WSS V3 and MOSS 2007
- Anonymous access and SPContext
- Integrating Reporting Services 2008 with SharePoint 2007 Step 6 – Report Creation and Deployment
- When saving data into Web Part Properties, remember [Serializable]
- Rolling up Content Across Site Collections
- Workflow SPListItem modified by SHAREPOINT\system
- SharePoint: Access denied error when adding new page to page library
- Improve you SharePoint code with Red Gate ANTS
- Handling State Machine Workflow – Part 1
- Disabling Enterprise Feature Buttons
- The Content Query Web Part, and Working With Lookup Fields in a Custom Web Part
- PowerShell and Office Open XML Format Document Generation Sample
- More Samples Added to the SharePoint and Silverlight Blueprints
- Trick on how to get a Content Editor Web Part’s width to 100% when it is in a horizontally aligned Web Part Zone
Archive for February, 2009
Posted by Steve Pietrek on February 26, 2009
I am in the process of putting together a demo VM. I have 8 users which I use from time to time; however, I always want to log on as the Administrator account. To save an extra click, I want to only allow the Administrator to display on the Welcome screen. A quick search on Google points you to posts on changing the Registry. Here is an example post listing the steps to modify the Registry.
Although modifying the Registry is an acceptable solution, I wanted an easier way. Below are steps to accomplish this request:
- Select Local Security Policy from Administrative Tools.
- Expand Local Policies.
- Select User Rights Assignment.
- Double-click Deny log on locally to display dialog.
- Add users or groups.
- Click OK to save.
From the help:
This security setting determines which users are prevented from logging on at the computer. This policy setting supersedes the Allow log on locally policy setting if an account is subject to both policies.
Important: If you apply this security policy to the Everyone group, no one will be able to log on locally.
Update #1. It appears the same option is available for Windows Server 2003.
Posted by Steve Pietrek on February 19, 2009
I was working with a coworker yesterday. He was having an issue deploying a solution. Reviewing the STSADM command, things looked correct; however, when he hit Enter to run the command, all the STSADM commands would display. Similar to what happens when you run STSADM.EXE -help. Scrolling to the top of the list of commands was the “Command Line Error”. Turns out he was copying the command from a blog post of mine and WordPress must do something with the dashes (similar issue with quotes).
Long story short, instead of copying/pasting STSADM commands, type the command manually. Problem solved.
Posted by Steve Pietrek on February 2, 2009
Last week, the Microsoft SharePoint team released SPDisposeCheck. SPDisposeCheck is a tool which will check your code and alert you when SharePoint objects are not being disposed of properly. Keith Dahlby has a good post where he warns people that SPDisposeCheck is not 100% perfect and should not be the end all. After the SPDisposeCheck tool was released to the public last week, I ran it against my source code for a decent size project I finished up with a few weeks ago. Fortunately, there were no issues reported. I am not posting to gloat; rather list things I did and resources I used to improve my code to avoid leaks.