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…

0

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…

0

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 $ConfigDB.name} 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…

0

SharePoint Performance Monitoring

This is an AS-IS post on how to setup Performance Monitoring for SharePoint Servers.   Ensure that the instructions in http://support.microsoft.com/kb/281884 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…

0

Tactical Performance for SharePoint and SQL – References

SharePoint Configuration References Hardware and software requirements for SharePoint 2013http://technet.microsoft.com/en-us/library/cc262485.aspx SharePoint 2010 Best Practiceshttp://social.technet.microsoft.com/wiki/contents/articles/8666.sharepoint-2010-best-practices.aspx?PageIndex=2 SharePoint 2010: Tips for Dealing with Performance Issueshttp://social.technet.microsoft.com/wiki/contents/articles/7926.sharepoint-2010-tips-for-dealing-with-performance-issues.aspx Whitepaper: Database Maintenance for Microsoft SharePoint Products and Technologieshttp://go.microsoft.com/fwlink/?LinkId=111531&clcid=0x409 How to Disable the 8.3 Name Creation on NTFS Partitionshttp://support.microsoft.com/kb/121007 Enable High Performance power planConfiguring a Power Plan with Group Policy Preferenceshttp://blogs.technet.com/b/grouppolicy/archive/2009/09/30/configuring-a-power-plan-with-group-policy-preferences-by-alan-burchill.aspx SharePoint Cache…

1

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 🙂 

4

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…

3

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…

6