You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to run the vCheck script manually and i get the report but not able to schedule in windows scheduler, below are parameter I configured with task scheduler.
Action : Start a program
Program/Script : C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
Add argument : ExecutionPolicy Bypass -File “E:\Rachappa\OMSR_A1_App\Test\vCheck-vSphere-master\vCheck.ps1"
Can somebody help me configure this vCheck with task scheduler or batch file ?
The text was updated successfully, but these errors were encountered:
I solved the problem with a batch file. Here's what I have done:
Created a batch file named "Start-vCheck.bat". In this file I have the following commands:
cd "%~dp0"
start powershell -noexit -Command "cd 'C:\vCheck'"
start powerShell -NoExit -Command ".\vCheck.ps1"
In task scheduler:
I used a service account (this user does not exists on vcenter, my vcenter is not ad integrated)
Task runs with highest priviledge of course
In Action Page:
Program/Script: C:\vCheck\Start-vCheck.bat
Start in (optional): C:\vCheck (it says optional but if I dont enter the path it does not work)
If someone needs, try the way I did, it works great.
Hi Experts,
need your help....
I am able to run the vCheck script manually and i get the report but not able to schedule in windows scheduler, below are parameter I configured with task scheduler.
Action : Start a program
Program/Script : C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
Add argument : ExecutionPolicy Bypass -File “E:\Rachappa\OMSR_A1_App\Test\vCheck-vSphere-master\vCheck.ps1"
Can somebody help me configure this vCheck with task scheduler or batch file ?
The text was updated successfully, but these errors were encountered: