PowerShell

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 # Specify which Log File $EventLogName = “Application” # Specify drive to store event logs $drive= […]

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 […]