SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


win2008tasks
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
win2008tasks [2013/05/01 15:29]
sjoerd [Troubleshooting]
win2008tasks [2013/05/01 15:29] (current)
sjoerd [Creating a Task]
Line 24: Line 24:
 * On the Action tab create a new action: * On the Action tab create a new action:
 ** Program/​Script:​ C:​\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ** Program/​Script:​ C:​\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-** Arguments: -PSConsoleFile "​C:​\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1"​ "& '​C:​\Users\Public\Documents\dailycheck.ps1'"​ vcenter+** Arguments: ​{{{-PSConsoleFile "​C:​\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1"​ "& '​C:​\Users\Public\Documents\dailycheck.ps1'"​ vcenter ​}}}
 * On the Settings tab set the task to stop if it runs longer than 1 hour.  * On the Settings tab set the task to stop if it runs longer than 1 hour. 
  
 Note: On a Windows Server 2008 R2 server and a script which loads the VMware modules itself I had to create the following action: Note: On a Windows Server 2008 R2 server and a script which loads the VMware modules itself I had to create the following action:
 * Program/​Script:​ C:​\Windows\System32\WindowsPowerShell\v1.0\powershell.exe * Program/​Script:​ C:​\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-* Arguments: -nologo -noninteractive -command "&​{D:​\Scripts\SRM-Reports\srmreports.ps1}"​+* Arguments: ​{{{-nologo -noninteractive -command "&​{D:​\Scripts\SRM-Reports\srmreports.ps1}"​}}}
  
 When you click OK the task will ask you for the password of the service account you provided in the General tab.  When you click OK the task will ask you for the password of the service account you provided in the General tab. 
win2008tasks.txt ยท Last modified: 2013/05/01 15:29 by sjoerd