Using Colors in PowerShell Forms

I have been playing around with PowerShell forms lately and wanted to use colors for buttons and backgrounds. There are a bunch of predefined colors that you can use, but the names are not associated with a color chart to help you decide. With that in mind I wrote this little form with a dropdown…


Run a PowerShell script multi-threaded. I mean in parallel!

Have you ever wanted to run a PowerShell script in parallel? Here is a functions that I created to run a script in parallel or multi-threaded. Invoke-ScriptMultiThreaded.ps1 has been uploaded to the TechNet Script Repository here: I want to give a shout out to the SCOO‘er at Ramstein AB Germany for their outstanding dedication and…


Clearing the SharePoint configuration cache using PowerShell

Here is a simple function that will automatically detect your SharePoint configuration, disable the SharePoint Timer service, clear the configuration cache, and restart the SharePoint Timer service. Function Clear-SPConfigCache{$ConfigDB = Get-SPFarm$Config = Get-SPDatabase | Where{$_.Name -eq $} Write-Host "Configuration database Id: " $Config.Id.Guid -foregroundcolor Green $ConfigPath = "C:\ProgramData\Microsoft\SharePoint\Config\"$ConfigCache =$ConfigPath+$Config.Id.Guid Write-Host "Disabling and stopping SharePoint Timer…


SharePoint Performance Monitoring

This is an AS-IS post on how to setup Performance Monitoring for SharePoint Servers.   Ensure that the instructions in are followed. This will allow for the Process ID value to be included as part of the process monitor data that is being captured To enable or to disable PIDs in process names, follow…


Tactical Performance for SharePoint and SQL – References

SharePoint Configuration References Hardware and software requirements for SharePoint 2013 SharePoint 2010 Best Practices SharePoint 2010: Tips for Dealing with Performance Issues Whitepaper: Database Maintenance for Microsoft SharePoint Products and Technologies How to Disable the 8.3 Name Creation on NTFS Partitions Enable High Performance power planConfiguring a Power Plan with Group Policy Preferences SharePoint Cache…


Activating Windows with PowerShell

You want to activate Windows using PowerShell?  Here you go: $computer = gc env:computername $key = “XXXXX-XXXXX-XXXXX-XXXXX-XXXXX” $service = get-wmiObject -query “select * from SoftwareLicensingService” -computername $computer $service.InstallProductKey($key) $service.RefreshLicenseStatus()   Note: $key will be followed by your legally obtained product key 🙂 


Renaming SharePoint 2013 Search databases

If you have had trouble moving your SharePoint 2013 Search Databases using the TechNet article below.    Move the Search service application databases in SharePoint 2013 This article may help. First: The original databases need to be online with their original names for these PowerShell scripts to work. The only way to get this to…


MinimaList SharePoint WarmUp Script

In the spirit of Minimalism I have decided to create the simplest SharePoint warm up script that I could.  There are plenty of warm up scripts on the web.  Many of them are convoluted and difficult to manage.  This shouldn’t be that difficult.  All you need to do is enumerate your web applications and site…


SharePoint People Picker shows old domain account during Active Directory migration

  You may have experienced a problem with SharePoint PeoplePicker during Active Directory migration of users.  The scenario looks something like this:  EnvironmentYou have 2 domains DomainA [the Source Domain] and DomainB [the Target Domain].  Users are in DomainA and are being migrated to DomainB.   The SharePoint farm is in DomainB.  There is a two-way…