Shared Points

items of some interest

Browse by Tags

Related Posts
  • Blog Post: SharePoint warmup script

    # trivial sample: # for every site I can find, try to load it. # this reloads caches and loads any DLL's etc. # so that everything is ready for the first user # [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") function warmup-farm { $SPfarm = [Microsoft.SharePoint.Administration...
  • Blog Post: SharePoint - adding list items with Powershell

    # I was asked the question 'how can I automatically add items to a List on a # Sharepoint box I cannot access locally? No, not possible to use direct # sharepoint cmdlets and do not know if it is 2007 or 2010.' $SITE = "MYSERVERNAMEHERE/Lists" $URI = " http://$SITE/_vti_bin/lists.asmx " $listname...
  • Blog Post: SharePoint - Powershell replacement for the old STSadm RepairContentDatabase

    Powershell replacements are extremely useful. Test-SPContentDatabase gives you much of interest. However the key item you were looking for is the .REPAIR method. Get-SPContentDatabase | ForEach-Object { $_.Repair ($true)} or use $false to just report and not repair. This is the same function...
  • Blog Post: SharePoint - import a picture from AD for the user profile

    Consider the following scenario. You have JPG pictures in AD, stored with the users thumbnailPhoto attribute. You try to import pictures for a user profile from the Active Directory thumbnailPhoto attribute, to store within the Picture attribute in Microsoft SharePoint Server 2010. You have set up...
  • Blog Post: SharePoint farm config - via powershell

    "Can't I just use Powershell to dump this info? - So let's see!" # run this from a front-end as Farm Administrator # tell powershell to load Sharepoint DLL's [void] [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [void] [System.Reflection.Assembly]::LoadWithPartialName...
  • Blog Post: SharePoint - Search PerformanceLevel

    # you use Central Admin and click. But I was asked 'how do you do that with PowerShell'? #SP2010 Add-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue Get-SPEnterpriseSearchService | Set-SPEnterpriseSearchService –PerformanceLevel “Maximum” #SP2007 ...
  • Blog Post: SharePoint - PreUpgradeCheck for 2010?

    what would be similar to the old PreUpgradeCheck? Get-SPContentDatabase | ForEach-Object { Test-SPContentDatabase $_.ID } now what do you do to resolve anything found? some good pointers here: http://blogs.msdn.com/b/subbu/archive/2012/05/20/fixing-test-spcontentdatabase-warnings.aspx