Question: How To Schedule A PowerShell script with Windows Server 2008

Answer: Schedule a PowerShell script to run in Windows Server 2008 is very simple compare to windows server 2003.

To schedule a Task to run a PowerShell scripts under a Windows Server 2008 follow the steps below:

Create a PowerShell script and save it as .Ps1

On the server set the execution policy to unrestricted:

"PowerShell Code: Add Multiple DNS ... x
"PowerShell Code: Add Multiple DNS Records From .CSV File To DNS Server Using PowerShell – Learn IT And DevOps Daily"

Create a task with the following settings:

Make sure you type the line below in the Add Arguments

c:\scripts\scriptname.ps1 -noprofile –Noninteractive