472,992 Members | 3,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,992 software developers and data experts.

How do I remotely access Scheduled Tasks from Windows XP to Windows Server 2003?

How can I access and manipulate Scheduled Tasks in Windows using
Python?

I have a Windows XP workstation running Python 2.4.4 using the
win32all modules to control the windows services on multiple Windows
2003 servers. It works great.

However, I also need to remotely collect the settings for the
scheduled tasks (on those same Windows 2003 servers) and then
manipulate those task settings.

At the very least, I need to find out which ones are enabled and then
be able to disable and re-enable those tasks at will. It would be
better to be able to also detect the account each task runs as so that
I could only disable selected tasks, but I'll any help I can get.

Thanks,

Jun 29 '07 #1
3 3392

"kj7ny" wrote:
How can I access and manipulate Scheduled Tasks in Windows using
Python?

I have a Windows XP workstation running Python 2.4.4 using the
win32all modules to control the windows services on multiple Windows
2003 servers. It works great.

However, I also need to remotely collect the settings for the
scheduled tasks (on those same Windows 2003 servers) and then
manipulate those task settings.

At the very least, I need to find out which ones are enabled and then
be able to disable and re-enable those tasks at will. It would be
better to be able to also detect the account each task runs as so that
I could only disable selected tasks, but I'll any help I can get.

Thanks,
Pywin32 comes with a module that lets you do this, win32com.taskscheduler.
You can use PyITaskScheduler.SetTargetComputer to access tasks on remote
machines.

Roger


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jun 30 '07 #2
On Jun 30, 10:55 am, "Roger Upole" <rup...@hotmail.comwrote:
"kj7ny" wrote:
How can I access and manipulateScheduledTasksin Windows using
Python?
I have a Windows XP workstation running Python 2.4.4 using the
win32all modules to control the windows services on multiple Windows
2003 servers. It works great.
However, I also need to remotely collect the settings for the
scheduledtasks(on those same Windows 2003 servers) and then
manipulate those task settings.
At the very least, I need to find out which ones are enabled and then
be able to disable and re-enable thosetasksat will. It would be
better to be able to also detect the account each task runs as so that
I could only disable selectedtasks, but I'll any help I can get.
Thanks,

Pywin32 comes with a module that lets you do this, win32com.taskscheduler.
You can use PyITaskScheduler.SetTargetComputer to accesstaskson remote
machines.

Roger

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
I FINALLY found taskscheduler (with the help of your post). I found
it under

...\Python243\Lib\site-packages\win32comext\taskscheduler

.... and, there seems to be a /test/ directory with some examples.
Haven't tried them yet, but they should get me started.

Thanks,

Jul 10 '07 #3
On Jul 10, 4:51 am, kj7ny <k...@nakore.comwrote:
On Jun 30, 10:55 am, "Roger Upole" <rup...@hotmail.comwrote:


"kj7ny" wrote:
How can I access and manipulateScheduledTasksin Windows using
Python?
I have a Windows XP workstation running Python 2.4.4 using the
win32all modules to control the windows services on multiple Windows
2003 servers. It works great.
However, I also need to remotely collect the settings for the
>scheduledtasks(on those same Windows 2003 servers) and then
manipulate those task settings.
At the very least, I need to find out which ones are enabled and then
be able to disable and re-enable thosetasksat will. It would be
better to be able to also detect the account each task runs as so that
I could only disable selectedtasks, but I'll any help I can get.
Thanks,
Pywin32 comes with a module that lets you do this, win32com.taskscheduler.
You can use PyITaskScheduler.SetTargetComputer to accesstaskson remote
machines.
Roger
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe#1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---

I FINALLY found taskscheduler (with the help of your post). I found
it under

...\Python243\Lib\site-packages\win32comext\taskscheduler

... and, there seems to be a /test/ directory with some examples.
Haven't tried them yet, but they should get me started.

Thanks,- Hide quoted text -

- Show quoted text -
kj7ny, could you post back here to learn from?

Thanks.

s|a fynali

Jul 10 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
3
by: Mike | last post by:
Hi all, In my recent project (using ASP.NET 2.0 and MSSQL), I need to scheduled a certain operation to be executed, for example, on beginning of a month. Is there anyway to do this on...
0
by: Satish | last post by:
Scheduled Tasks (.Net ) does not run when server is logged off (Windows 2003): I have a .net executable (command line exe) which performs certain business operations. I can run the program...
2
by: mscurto | last post by:
Is there a way to set up access to open and run a query in a particular database at a particular time each day? This would be run from a Windows 2000 desktop.
2
by: Tatter | last post by:
I have a simple .NET 1.1 console application, written with Visual Studio .NET 2003, that needs to be run on a Windows XP system as a scheduled task. When run on its own, the program executes with no...
1
by: porsch55 | last post by:
m_oProc = new Process(); ProcessStartInfo oInfo; oInfo = new ProcessStartInfo("\\\\" + sSourceServer + "\\" + Environment.SystemDirectory.Replace("C:", "C$") + "\\psexec.exe", " \...
3
by: Steve | last post by:
Here is what I want to do. Currently I have to log into 30 servers every morning and see if all the jobs under 'scheduled tasks' ran. Is there a way from .NET to read that directory for the selected...
3
by: White Horse | last post by:
I want to nightly run a VBS Script in Scheduled tasks to open an Access 2003 database and execute a macro. The problem is that the database opens to a switchboard screen. I need to open this...
2
by: thj | last post by:
Hi, Is it possible to start an scheduled task on a server from ASP.NET? Thanks in advance. Tommy.
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.