Setting super user / super reader account

This is the resolution to some tedious event log errors, which should be resolved.

add-pssnapin microsoft.sharepoint.powershell -erroraction silentlycontinue
function SetSuperCacheUsers()
param (
    [string] $webApp,
    [string] $prefix,
    [string] $superuser,
    [string] $superreader
    $wa = Get-SPWebapplication -identity $webApp
    $wa.Properties["portalsuperuseraccount"] = ($prefix + $superuser)
    $wa.Properties["portalsuperreaderaccount"] = ($prefix + $superreader)
SetSuperCacheUsers  -webApp "" `
                    -prefix "i:0#.w`|" `
                    -superuser "escape\SPObjCacheSuper" `
                    -superreader "escape\SPObjCacheRead"
write-host "Now you should ensure that the accounts you set here have appropriate access in web App User Policy"
write-host "in central admin, Full control for the Super user and Full Read for the super reader"

Screen recorder

I had to create a small video of some software I have been asked to write. Usually I would ask the client to come along and walk through the software with me. During that process I would take notes and feedback.

Back in the office I would implement the feedback and notes and this typically results in getting much nearer to the clients requirements than waiting till the software is complete before she sees the end result.

On this occasion I could not be in the same office as the client, I decided a small video of me demonstrating the software would be ideal and more or less replicate us being at the same desk.
I usualy use Snagit 9 for my screen capture requirements, turns out for some reason it fails to work properly on my windows 7 install, functions as you would expect but during capture the window you are capturing does not accept mose clicks. This makes it a bit tricky to capture any video.

I looked around for a recorder and came accross this
Total screen recorder website

Nice, small neat product, it does exactly what it says on the can. It costs less than £25.00. You cant go wrong with this package.

Here is the video I made, literally two clicks after installing the product. Video

You can see from this copy from their website how easy it is;
Total Screen Recorder is an easy-to-use video recording application with clean interface.
*Easy – Just two steps to start recording!
First, click the ‘Start’ button (The red button) to prepare for recording;
Second, drag your mouse to choose the area of your desktop to be recorded;
That’s All…
Recording video on your computer has never been so easy!
*Light – Low CPU & memory usage when recording

Total Screen Recorder uses low CPU and memory when recording so that it will guarantee a high quality recording video without affecting the running of other applications at the same.

– Support 5 recording types: random region, specified window, full screen, fixed size, fixed region.
– Support recording audio sync from computer and microphone.
– Video/Audio codec parameter adjustable.
– Support hotkeys to start or stop recording.
– Support setting timer to start/stop recording automatically.
– Support customizing video file names.
– Support sneak recording mode.

Total Screen Recorder has met Microsoft testing requirements for compatibility with 32-bit and 64-bit Windows 7/Vista.

Update all SharePoint 2010 service account passwords from one script

Nice to do this in one script, take note of additional steps after the script has run.

You must of course set the values between ### YOU NEED TO SET THESE and
### STOP SETTING NOW to those appropriate to your farm.

You will note that this script allows for a typical set of farm accounts
as required by a Least Privilege Service Accounts setup. You may add modify
or remove accounts as you require.

add-pssnapin microsoft.sharepoint.powershell -erroraction silentlycontinue
function Set-AdUserPwd
    write-host "Change AD passwords for system accounts"
    $users | % {
        $thisAccount = $_
        write-host "`tChange password for" $thisAccount
        $oUser = [adsi]"LDAP://$thisAccount" 
    write-host "All done."
function ChangePasswordForManagedAccounts()
    [string] $newPassword,
    [bool] $UseExisting
    $newPw = ConvertTo-SecureString $newPassword -asPlainText -Force
    write-host "Change Managed account passwords"
    $accounts | % {
        $thisAccount = $_
        write-host "`tChange password for managed account" $thisAccount
            Set-SPManagedAccount    -identity $thisAccount `
                                    -ExistingPassword $newPw `
                                    -UseExistingPassword:$true `
                                    -Confirm:$false `
            Set-SPManagedAccount    -identity $thisAccount `
                                    -Confirmpassword  $newPw `
                                    -Newpassword  $newPw `
                                    -Confirm:$false `
    write-host "All done."
function DefaultContentAccessAccountPassword()
    [string] $searchAppName,
    [string] $account,
    [string] $password
    write-host "Change Default content access account password for" $account
    $searchapp = Get-SPEnterpriseSearchServiceApplication -Identity $searchAppName
    $c = New-Object Microsoft.Office.Server.Search.Administration.Content($searchapp)
        (ConvertTo-SecureString $password -AsPlainText -force))
$systemAccounts = @(
$managedAccounts = @(
$searchAppName = "Search Service Application"
$farmAccount = "YOUR_NETBIOS_DOMAIN\SPFarm"
$defaultSearchContentAccount = "YOUR_NETBIOS_DOMAIN\SPContent"
$theNewPassword = "L3tM31n"   
# Change system account passwords in AD
set-AdUserPwd -users $systemAccounts -password $theNewPassword
# Managed account passwords
ChangePasswordForManagedAccounts -newPassword $theNewPassword -accounts $managedAccounts -UseExisting $true
# Default content access account
DefaultContentAccessAccountPassword -SearchAppName $searchAppName -account $defaultSearchContentAccount -password $theNewPassword
# Farm account
write-host "Change farm account password" $farmAccount
stsadm -o updatefarmcredentials -userlogin $farmAccount -password $theNewPassword
# its all over now
write-host "Remember to edit SQL service startup account password in `"Services`""
write-host "Remember to Restart profile sync service on central admin in `"Services on a server`""
write-host "Check out if SharePoint tracing service is running as a system account in `"Services`" make it local system"
write-host "All done."