Sleepy Time for SharePoint 2010 PowerShell

Sleepy Time for SharePoint 2010 PowerShell

There are times when you'll want SharePoint to wait and perform an action later.  In my case I wanted someone to start a script when it was at the end of their shift while a file copy was still running on my side with an hour left before it would complete.

Start-Sleep -s 60  (sleeps for 60 seconds)
Start-Sleep -s 5400 (sleeps for 90 minutes)

There's an option for miliseconds, but no minutes or hours setting.

Comments

Popular posts from this blog

Updating a single field in a SharePoint List using Power Automate Flows

How to set up a SQL Alias for MS SQL Server 2008 R2 (for use with SharePoint 2010)

Setting SharePoint announcements to auto delete after expiration