Thursday, July 22, 2010

SP2010 PowerShell - Create a wiki library and set the default welcome page

SP2010 PowerShell - Create a wiki library and set the default welcome page

$web = get-spweb(http://myserver/sites/mysite)
$listTemplate = "WebPageLibrary"
$listDescription = "My Wiki"
$listName = "MyWiki"
$list_template = [System.Enum]::Parse([Microsoft.SharePoint.SPListTemplateType], $listTemplate)
$lists = $web.Lists
$lists.Add($listName, $listDescription, $list_Template)
$wiki = $web.GetList("/sites/mysite/" + $listName);
$rootFolder = $wiki.RootFolder
$rootFolder.WelcomePage = "MyHome.aspx"
$rootFolder.Update()

Wednesday, June 23, 2010

Windows Server 2008 - User Account Control

Start > Control Panel > User Accounts > User Accounts > Change User Account Control settings > Never notify > OK.

Thursday, June 17, 2010

Windows Server 2008 - Show thumbnails instead of icons

Start > Run > SystemPropertiesPerformance > Show thumbnails instead of icons > OK.

Wednesday, June 16, 2010

VS2010 - How to use the 'Go To Find Combo' to find a file in your Visual Studio Solution

How to add the Go To Find Combo if it is missing from the Standard Toolbar:

Visual Studio > Standard Toolbar > Standard Toolbar Options > Add or Remove Buttons > Customize... > Commands (tab) > Toolbars: Standard > Add Commands... > Categories: Edit, Go To Find Combo > OK > Move Down (Optional) > Close.

How to use the Go To Find Combo to find a file in your Visual Studio Solution:

Use the following pattern (Without single quotes):
'>of sampleFileName'

Wednesday, June 2, 2010

SP2007 - DisableLoopbackCheck

Win+R > regedit > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters > Edit > New > DWORD Value > DisableStrictNameChecking > Modify > 1 > OK > Alt+F4 > Restart

Win+R > regedit > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 > Edit > New > Multi-String Value > BackConnectionHostNames > Modify > (Enter each host header on a separate line. Examples include connect.contoso.com or devvm) > OK > Alt+F4 > Restart (Despite claims that you may simply restart IISAdmin Service)

Resources:
DisableLoopbackCheck & SharePoint: What every admin and developer should know.
Groundhog Day: Configuring Back Connection Host Names using Group Policy
DisableLoopbackCheck? Let's do it the right way
http://support.microsoft.com/kb/896861

Wednesday, March 17, 2010

SP2007 - Shared Services Access Denied

Shared Services Admin Site > Personalization services permissions > Add Users/Groups > check appropriate

Wednesday, March 3, 2010

VS2008 - Get SN Token

Tools > External Tools > Add > Title: Get SN Token, Command: c:\program files\microsoft sdks\windows\v6.0a\bin\sn.exe, Arguments: -T $(TargetPath), Use output window: yes

Resources:
http://blogs.msdn.com/miah/archive/2008/02/19/visual-studio-tip-get-public-key-token-for-a-stong-named-assembly.aspx