Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148

Warning: Invalid argument supplied for foreach() in /var/www/web1034/html/wordpress/wp-content/plugins/unyson/framework/includes/option-types/typography-v2/class-fw-option-type-typography-v2.php on line 148
Windows Server 2012R2 PowerShell with Parameters Scheduled Task – ZM's Information Technology & Life Blog

Windows Server 2012R2 PowerShell with Parameters Scheduled Task

More and more PowerSell script are being used for routine task. However, when it come to use the Windows task scheduler it is not obvious how to set up a task running a PowerShell script, particular if that script requires parameters as an input.

To make this work you have to specify PowerShell under the action settings and the parameters are past in with a -command prefix via the Argument input box. Below shows an example. This essentially puts together the command line that will be execute.

ps_scheduled

 

  • Share:

Leave a Comment

Send a Message