Posts filed under ‘SharePoint 2010’

Problem deleting a corrupt SharePoint 2010 List

Recently I encounted a problem in deleting a list which had apparently become corrupt.  I was unable to access the list through Central Admin, Site Settings or SharePoint designer.  Attempting to use the forcedeletelist in STSADM was also unsuccessful.

I found this useful reference:

http://blog.falchionconsulting.com/index.php/2007/11/delete-list-forget-about-forcedeletelist/

March 22, 2011 at 9:58 am 2 comments

SharePoint 2010 Dev references

This is a collection of links that I am finding useful as I research and work with SharePoint 2010:

Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008

http://msdn.microsoft.com/en-us/library/ee554869.aspx

Site Templates and their IDs

With the SharePoint PowerShell management console (all one one line):

Get-SPWebTemplate |
select Title,Name,Description | ConvertTo-HTML | Out-File
c:\data\SPTemplates.html

http://technet.microsoft.com/en-us/library/ff607979.aspx

http://www.toddbaginski.com/blog/archive/2009/11/20/which-sharepoint-2010-site-template-is-right-for-me.aspx

List reference IDs

http://techtrainingnotes.blogspot.com/2008/01/sharepoint-registrationid-list-template.html

MSDN References

Schema description

http://msdn.microsoft.com/en-us/library/ms462947.aspx

SPListTemplateType Enumeration

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx

SPMetal

http://msdn.microsoft.com/en-us/library/ee538255(office.14).aspx

http://fabiangwilliams.wordpress.com/2010/01/03/how-to-using-spmetal-utility-in-sharepoint-2010-to-presumably-manipulate-data-on-a-bcs-external-list/

Sandbox Solutions

Namespaces and Types in Sandboxed Solutions

http://msdn.microsoft.com/en-us/library/ee537860(office.14).aspx

Client Side Object Model

http://msdn.microsoft.com/en-us/library/ee857094(office.14).aspx

http://channel9.msdn.com/Learn/Courses/SharePoint2010Developer/ClientObjectModel

Workflow with Visio 2010

http://office.microsoft.com/en-us/visio-help/create-import-and-export-sharepoint-workflows-in-visio-HA101888007.aspx

http://blogs.msdn.com/b/visio/archive/2010/01/19/sharepoint-workflow-authoring-in-visio-premium-2010-part-2.aspx

March 17, 2011 at 8:46 am Leave a comment

Warming up a SharePoint 2010 Server with PowerShell

In looking for an updated way to warm up SharePoint 2010 sites to improve the user experience I cam across a PowerShell script at the following site:

http://nearbaseline.com.au/blog/2010/02/powershell-warmup-script-2/

############################################################################
#WarmUp2.ps1 – Enumerates all web sites in web applications in a 2010
# SharePoint farm and opens each in a browser.
#Notes:
#-“get-webpage” function borrowed from:
# http://kirkhofer.wordpress.com/2008/10/18/sharepoint-warm-up-script/
#
#Assumptions:
#-Running on machine with WSS/MOSS 2010 installed
############################################################################

Add-PsSnapin Microsoft.SharePoint.PowerShell
$extrasitelistfile = ‘c:\Tools\Warmup\warmup-extrasites.txt’

function get-webpage([string]$url,[System.Net.NetworkCredential]$cred=$null)
{
$wc = new-object net.webclient
if($cred -eq $null)
{
$cred = [System.Net.CredentialCache]::DefaultCredentials;
}
$wc.credentials = $cred;
return $wc.DownloadString($url);
}

#This passes in the default credentials needed. If you need specific
#stuff you can use something else to elevate basically the permissions.
#Or run this task as a user that has a Policy above all the Web
#Applications with the correct permissions

$cred = [System.Net.CredentialCache]::DefaultCredentials;
#$cred = new-object System.Net.NetworkCredential(“username”,”password”,”machinename”)

$apps = get-spwebapplication -includecentraladministration
foreach ($app in $apps) {
$sites = get-spsite -webapplication $app.url
foreach ($site in $sites) {
write-host $site.Url;
$html=get-webpage -url $site.Url -cred $cred;
}
}
# Warm up other sites specified in warmup-extrasites.txt file (such as SSRS)

if (test-path $extrasitelistfile) {
$extrasites = get-content $extrasitelistfile
foreach ($site in $extrasites) {
write-host $site;
$html=get-webpage -url $site -cred $cred;
}
}

February 17, 2011 at 12:34 pm Leave a comment


Calendar

August 2017
M T W T F S S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031  

Posts by Month

Posts by Category