Running powershell script schedule while logged off

PowerShell script exchange

Running powershell script schedule while logged off

Veeam Logoby tfloor » Mon Mar 19, 2012 2:02 pm

Hello,

OS: Windows 2008 R2.
Powershell
Veeam 6 p3

I've create my first powershell backup script that will launch veeam backups and starts some backup exec jobs.
I've place the ps1 script in a batch file, and scheduled that .bat file with the windows scheduler.

Following this article:
http://blog.pointbeyond.com/2010/04/23/ ... scheduler/

But when i logged off and waiting for something happened.... There is nothing happened

Any idea why nothing of the script is running?

Thanks

Tristan.
tfloor
Expert
 
Posts: 270
Liked: 14 times
Joined: Tue Jan 03, 2012 2:02 pm
Full Name: Tristan Floor

Re: Running powershell script schedule while logged off

Veeam Logoby tfloor » Mon Mar 19, 2012 3:16 pm

Problem fixed,

There must be a problem with the schedules task.
Recreating it and it is working perfect.

For the people who also need this, the article in my first post is great to use!
tfloor
Expert
 
Posts: 270
Liked: 14 times
Joined: Tue Jan 03, 2012 2:02 pm
Full Name: Tristan Floor

Re: Running powershell script schedule while logged off

Veeam Logoby crichardson » Tue Mar 20, 2012 11:24 am

There is also a setting to run the script while the user is logged off. And there is also a checkbox to run with highest privledges - you might need this depending on what the script does.
crichardson
Enthusiast
 
Posts: 39
Liked: never
Joined: Thu Dec 09, 2010 1:25 pm
Full Name: Corey

Re: Running powershell script schedule while logged off

Veeam Logoby tfloor » Tue Mar 20, 2012 9:01 pm

crichardson wrote:There is also a setting to run the script while the user is logged off. And there is also a checkbox to run with highest privledges - you might need this depending on what the script does.


Correct. That is also what the howto described in my first post
tfloor
Expert
 
Posts: 270
Liked: 14 times
Joined: Tue Jan 03, 2012 2:02 pm
Full Name: Tristan Floor


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests