powershell

SharePoint / Script to locate documents encrypted with passwords

Summary A customer asked if there was a method to identity documents stored in SharePoint online that were encrypted with passwords. Since nothing like this existed, it was created using PowerShell. I’m sharing this because the logic in the script may be useful for others. The Code Takeaways This scripts loops though a specified document […]

Summary It’s a best practice to test the compatibility of a migrated content database against the new target Farm before attaching the database and allowing users to access the migrated sites. This compatibly test is achieved by running Test-SPContentDatabase. Sounds too easy, right? Well, I recently worked on a case where “Test-SPContentDatabase” was reporting missing […]

Script to check if a reg key is set on multiple servers

Summary If your servers require a reg key and unsure if its properly configured. You can use this script to check if the key is present or is set to the correct value across multiple servers. The Script

What the Script Does In the sample above it will check the “DisableLoopBackCheck” key across a […]

Summary Need to copy a set of IIS logs from multiple servers for data analysis? Are you doing it manually?  If so, please check out this script as it will help expedite the process. The Script:

What the Script Does You only need to modify the inputs and create a server list. Then the […]

Script to backup event logs using a server list

Summary Have you ever needed to back up event logs for root cause analysis or auditing? Did you access each server and manually export the requested log file? If yes, I hope you find this script handy. The script

What does it the script do? This script will read a list of servers and […]

SharePoint Site Population Script for Testing

Summary The following script will create and populate data in a SharePoint Farm for testing. What does the Script do? Create a new web application, with a new web application pool. Create new database and associate it with the new web application. Update the local HOSTS file to make the new site accessible from the […]

Summary The blog referenced in the resource section below does a great job at demonstrating how to create a new SharePoint Web Application Pool and associate it with the Web App using PowerShell. However, as mentioned in the blog the process is a little different for Service Applications. The following information is just a quick […]

Summary: The following PowerShell script was written for my post on configuring TLS between SharePoint and Exchange. However, since it was buried in process, I wanted to create a separate post just sharing the script, because it will be easier to maintain and use separately when needed. Why use a script anyway? I find this script […]