Shared Points

items of some interest

Shared Points

  • SharePoint - distributed cache

    A colleague found the other day that: If distributed cache on dedicated servers is not working, with error is ERRCA0017, make sure app-pool account(s) are in WSS_ADMIN_WPG on the dedicated distributed cache servers.
  • SharePoint: CSS - text at bottom of DIV

    A seemingly simple request recently had me spinning around for a day, wrestling with CSS. A set of simple boxes, with text at the BOTTOM of the box. Thrown up by a Content Editor web-part. Easy? Heh! I futzed around for a day, before a colleague took...
  • SharePoint - pre-requisites they left out..

    KB 2554876 - The SharePoint parsing process crashes in Windows Server 2008 R2 http://support.microsoft.com/kb/2554876/en-au KB 2708075 - FIX: IIS 7.5 configurations are not updated when you use the ServerManager class to commit configuration changes...
  • 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...
  • Ebooks! SharePoint! SQL! Windows! Azure!

    http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx
  • Windows - what version of PS is on the machines?

    function GET-PSVERSIONINFO ([string[]] $TargetComputers) { $HKLM = [Microsoft.Win32.RegistryHive]::LocalMachine $PowerShellRegistry="SOFTWARE\Microsoft\PowerShell" $KeyItem = "\PowerShellEngine" $Version = "PowerShellVersion" $OldErrorActionPreference...
  • SharePoint - Microsoft SharePoint Store

    I was deeply puzzled this afternoon, when I configured my App Catalogue and all was fine - except I was unable to access the SharePoint Store. "Sorry we can't seem to connect to the SharePoint store" hmm.. checked network, DNS, proxy, certificates...
  • SharePoint - FBA config tool

    If you have ever wrestled with the insanity of Forms Based Auth you WILL love this: http://blogs.technet.com/b/speschka/archive/2012/07/28/fba-configuration-manager-for-sharepoint-2013.aspx
  • SharePoint - Excel web services failure

    Office Web Services on SP2010+SP1. Using Kerberos. We see PPT and Word rendering fine. Excel gives 503 errors. Cache cleared, services checked, bounced, etc. Nothing showing up in the ULS logs. Apparently this has never worked. Hmm... After an hour...
  • SharePoint - copy MySiteDB to a standby farm

    This week I encountered a puzzling issue when copying MySiteDB to a standby farm. Everything and everybody says it is simple. Well, not today. Set up standby farm userprofiles and all is well. Copy MysiteDB over, ask user to login and then access his...
  • SharePoint - content types changes not being pushed out.

    This week I encountered where your content type is being pushed from hub to Site Collections, but is not getting pushed down to various lists and libraries in the site. After extensive testing and fiddling and renaming, we got it sorted. Some of the sleeper...
  • SharePoint Web Services GUIDs - named

    I'm always forgetting this command to translate those silly GUID services into text which is understandable. So here it is, where we can all find it. Get-SPServiceApplication | sort Id | FT -property Id, DisplayName -AutoSize
  • SharePoint - SPmonitoredScope - Dashboard

    In order for custom code to show up in the dev dashboard you need to make use of the SpMonitoredScope: using ( new SPMonitoredScope(“My Scope Name”)) { doSomeWork(); } http://msdn.microsoft.com/en-us/library/ff512758.aspx We have...
  • Windows - BeatUp-Windows - stress memory and cpu's

    # BeatUp-Windows.ps1 # $psProcess = gps -id $PID $psInstances = (gps -Name $psProcess.name).count if ($psInstances -gt 1) { $psName = "{0}#{1}" -f $psProcess.name,$($psInstances - 1) } else { $psName = $psProcess.name } # RAM in box $box=get-WMIobject...
  • SharePoint - AV scanning SharePoint.

    Make sure you tell it to ignore your search indexes and other SharePoint areas! See: http://support.microsoft.com/kb/952167 To be sure it is not hitting your index location, you can check where that is currently set by: Central Admin -> Application...
  • Windows - Get-WindowsUpdateLog

    # Get-WindowsUpdateLog.ps1 # walk the WindowsUpdate.log to list the # Security Updates that have been installed. # [anything][PatchDate][anything][matchtext][PatchText] $PATTERN = "([^\n]+\}\t)" $PATTERN += "(?<PatchDate>[0-9]{4}-[0-9]{2}-[0...
  • 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...
  • PowerShell - add a JPG into AD for the user photo

    # Update-AD-Picture.ps1 # # copy a .jpg into a byte array, then push that into # the "thumbnailPhoto" property of the specified user in AD function UpDate-AD-Picture { param ([STRING] $UserName, [STRING] $JPEGfilePath) if ( ($JPEGfilePath) -and...
  • PowerShell - Get User Profile Service info

    # Get_UserProfileServices.ps1 # Dump out any info I can glean from the User Profile Synch for SharePoint. # # LukeB # http://technet.microsoft.com/en-us/library/ee721049.aspx # if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue...
  • PowerShell - sorting files by datestamp for SQL backup/restore

    # Do-SPSQLbackupRestore.ps1 # usage: # DO-SQLBackupRestore <Backup|Restore> [<SQL instance>] [<XMLfilename]> # [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null [System.Reflection.Assembly]::LoadWithPartialName...
  • PowerShell - decode an F5 BIG-IP cookie

    # Decode-BigIPCookie.ps1 # usage: # Decode-BigIPCookie "375537930.544.0000" function Decode-Cookie { param ([string] $ByteArrayCookie) ### F5 itself for the formula: http://support.f5.com/kb/en-us/solutions/public/6000/900/sol6917.html ### $poolcookie...
  • SharePoint - is WinRM configured for remotePS?

    # WinRMcheck.ps1 # check the registry keys on the target server to see if WinRM has been configured. Set-StrictMode -Version latest #Requires -RunAsAdministrator # WinRM get winrm/config/client # WinRM get winrm/config/service # Server side requirements...
  • 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...
  • SharePoint - remoting PS

    (not available for Win2003) you can configure for double-hop auth – do not know yet if we will need this. client: WinRM QuickConfig Enable-WSManCredSSP -Role Client -DelegateComputer TARGETMACHINE.DOMAIN.COM or Enable-WSManCredSSP -Role Client...
  • SharePoint - Search Admin

    In the event of a server death, you may need to move your Search Admin to another server. This is actually fairly easy: $searchapp = Get-SPEnterpriseSearchServiceApplication "Sample Search Service Application" $admin = Get-SPEnterpriseSearchAdministrationComponent...