powershell script

Schedule Powershell Script to run on a windows server using Task Scheduler

Here are the steps to Schedule Powershell Script to run on a schedule in any windows Server. 1. Open Windows Task scheduler from Administrative tools. 2. Right click on Task Scheduler Library and Select Create a task. 3. Under General tab, Enter the name of the task and update Security options. 4. Click on Change User […]

Read More

PowerShell script to perform IISRESET on all servers in SharePoint Farm

This is a handy PowerShell script to have for every SharePoint admin. I’m sure, most of you have already had something like this. This script is used to Reset all the Servers in SharePoint farm one after other without logging into each and every server. This comes handy during maintenance or in your Development environment […]

Read More

SharePoint 2013 Search components & topology info

If you are looking to find details about already configured SharePoint 2013 Search components like information about what component is running in what server, topology id, log file location etc., we can use the following PowerShell script to find that. $ssa = Get-SPServiceApplication –Name “Search Service Application” $active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active Get-SPEnterpriseSearchComponent -SearchTopology […]

Read More

Cannot find scheduled task in Task Scheduler – Windows Server 2008

You have a PowerShell script which needs to be run once everyday. After all the testing, you decide you schedule it as a task in ‘Task Scheduler’ in Windows server. Task is scheduled, everything is setup. You come back next day and couldn’t find scheduled task. You find Task Status, Active Tasks and Overview of Task […]

Read More