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

Setting SharePoint announcements to auto delete after expiration

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

SharePoint driven rich text dashboard using jqueryui. (JQuery file)