First post for 2012 – Updated Setting the Machine Powerplan using PowerShell

Happy 2012 everyone! Here is an updated Powershell script for setting the powerplan on a server in a much more efficient manner.   A big shout out to Amir Rothschild – PFE Extraordinaire & Shay Levy – PowerShell MVP – Thanks guys! Here is the updated PowerShell script:   1: ############################################################################################################## 2: # 3: #…


Optimising Office Web Apps rendering performance

  I was recently working with one of our large enterprise customers and they were experiencing rendering and performance related issues with Office Web apps in SharePoint 2010, specifically the word and PowerPoint viewing services. I did a bit of digging and changed some of the worker process/CPU core allocation settings and we found rendering…


Useful SQL PowerShell scripts – (Fixed download link)

  Here are some useful PowerShell scripts that I use to evaluate customer’s SQL environments. They make no changes to anything but are useful for reporting and verification purposes and write the output to a file in a nice and clean tabular format. Enjoy! The scripts are as follows: GetMAXDOP.ps1 – Reports on the current…


Disabling SharePoint 2010 MySite creation through PowerShell

  A colleague of mine and I were mucking about with PowerShell recently and came up with the following script to disable MySite creation for all Authenticated users. This setting is on by default as well as most of the other social features and in a large organisation you would want to turn this setting…


Setting your machine power plan via Powershell –repost

  I was recently at a customer site and we found by changing the power plan on a Windows Server 2008 R2 server to High performance really gave SQL server a nice boost, I recommend making the power change on physical servers only as virtual servers can have mixed if not catastrophic results.. We measured…


Simple way to obtain SharePoint 2010 Farm patch level

  The following PowerShell script will get the patch level of your farm: 1: #gets the build string for a SP2010 FARM 2: Set-ExecutionPolicy Unrestricted 3: Add-pssnapin microsoft.sharepoint.powershell -EA silentlycontinue 4:  5: $farm = Get-SPFarm 6: $version = $farm.buildversion 7: $version


SharePoint 2010 Solution Deployer–V1.1

I have made updates to my very useful PowerShell solution deployer and though it would be useful to others, so here it is. I got tired of typing all the PowerShell deployment commands each time for a .WSP, so I bundled them up into a simple cmdlet that does all the work for you including…

1

Updating Content Hub Subscribers using PowerShell

While testing some functionality for a client recently I found something interesting when publishing shared content types through the content type hub. After initial creation of the content types and adding subscribers all seemed to work well. That is all content types were ‘pushed’ down to all the subscribers and each subscriber site could make…


Windows explorer – PowerShell shortcut

I wanted the ability to be right click within windows explorer to enable me to run powershell from where I was in Windows explorer. The following registry change enabled me to do just that: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\PowerShell Here\command] @="\"C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoExit -Command Set-Location -LiteralPath ‘%L’"   This also works with Windows Server 2008…