David's technobabble Rotating Header Image

PowerShell

OCR’ing all of the PDF files in a SharePoint Document Library using PowerShell and Solid PDF Tools

A recent review of the PDF Documents in our Document Control Library, revealed that most were “image only” PDF’s. We’ve run our document control system on different versions of SharePoint technologies since SharePoint Portal Server 2001. We are currently running SharePoint 2007. I’m surprised that someone did not previously notice that most of our PDF files were not showing up in the searches.

The question is:“How can we get all of these PDFs reprocessed to be searchable for a reasonable cost?” continue reading » »

Using Powershell to stop and start dependent services with error notification

A few days ago I received a request to restart a set of dependent Hyperion services every Sunday. This had to be done because; “That’s what Oracle support said is the fix to one of our TAR’s”. Although this server has 3.75 GB of RAM and had never used more than 1.2 GB of RAM. Oracle claims that memory issues are causing a service to fail. This failure causes logons to fail. There are no events in the eventlogs or error information in any Hyperion logs that we can find. However, If you restart the services, then the problem goes away. So that is Oracle support’s answer, restart the services; “case closed”.

I do not call this a solution, but a kludge. Our Hyperion activity is relatively light. I guess Oracle’s answer to their very large and active customers must be to restart these services every 15 minutes. Hmmm, no let me think a second, the Hyperion product is financial planning software, with support answers like this, should I be concerned that this software might be calculating the wrong results? I wonder if I need to restart the other services frequently, just to be sure they calculate correctly?

Ok, my sarcasm and diatribe aside, I decided to create a PowerShell script and run it as a scheduled task.
continue reading » »

Using PowerShell to activate a feature across all Sharepoint 2007/WSS 3.0 sites and subsites

Recently, I was deploying a new feature to a WSS 3.0 site and needed to activate the feature on roughly 100 subsites. I did not want to do this manually with the web interface. I knew that I could write a C# program to do this, but I’d read a lot about the capabilities of PowerShell and decided to see how this could be done with PowerShell.
continue reading » »

Bad Behavior has blocked 525 access attempts in the last 7 days.