Scheduling a Task

  • Thread starter Thread starter Willy
  • Start date Start date
W

Willy

In WIN ME I had a task to Automatically log my PC on to my ISP using the
following commend:
 
Hi Bill,

Microsoft Windows XP - Rasdial: (I'm not sure if this is available in
Windows XP Home Edition)
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rasdial.mspx

Windows XP Professional has the RASDIAL utility. You can automate the
connection process for any Microsoft client by using a simple batch file and
the rasdial command. The rasdial command starts a network connection by
using a specified entry.

Usage: Open a Command Prompt window and type:

Rasdial <connectoid name> "username" "password" (beware! it's in clear-text)
Example: Rasdial <DishNet> "Roberts" "Roberts000"

This would initiate a dial-up/PPPOE connection to your ISP. You can create a
batch file with the above parameters and place it in your Startup folder, so
that XP dials to your ISP automatically at every startup. If you don't
prefer to enter the password in the batch file, use the following
command-line (XP will prompt you for a password - secure)

Rasdial <connectoid name> "username" *
Example: Rasdial <DishNet> "Roberts" *

NOTE: Type Rasdial.exe /? in the Command Prompt to learn more about this
command, it's other parameters.


Additional Information:
While RASDIAL has a /disconnect parameter, you can also run the following
command-line to terminate all the RAS/PPPOE connections:

Click Start, Run and type: rundll32 iedkcs32.dll,CloseRASConnections

--
Ramesh, Microsoft MVP
Window XP Shell/User
http://www.mvps.org/sramesh2k


In WIN ME I had a task to Automatically log my PC on to my ISP using the
following commend:
 
Ramesh,
Thank you so much for the info & help. I have XP Pro. But is there any way
I can have this in Task Scheduler so I can specify the time it dials my ISP
instead of at Windows startup?
 
Bill,

Type the rasdial command-line in a notepad and save it as a Batch file. Then
try creating a scheduled task for the batch file.

--
Ramesh, Microsoft MVP
Window XP Shell/User
http://www.mvps.org/sramesh2k


Ramesh,
Thank you so much for the info & help. I have XP Pro. But is there any way
I can have this in Task Scheduler so I can specify the time it dials my ISP
instead of at Windows startup?
 
Ramesh,
Okay I did this:
I opened Notepad,
Inserted this; Rasdial MISNET1 "wcg-djg" "xxxxx" (xxxxx is not real PW),
Saved as dialup.bat, In Notepad, it has a 3rd block below file type about
encoding, I left it as ANSI,
Made a scheduled task,
Would not run
 
What's the error seen in the Task scheduler log?

--
Ramesh, Microsoft MVP
Window XP Shell/User
http://www.mvps.org/sramesh2k


Ramesh,
Okay I did this:
I opened Notepad,
Inserted this; Rasdial MISNET1 "wcg-djg" "xxxxx" (xxxxx is not real PW),
Saved as dialup.bat, In Notepad, it has a 3rd block below file type about
encoding, I left it as ANSI,
Made a scheduled task,
Would not run
 
From Google search:
http://www.google.com/search?hl=en&lr=&ie=UTF-8&c2coff=1&q=task+scheduler+log+xp

First hit:
308558 - How To Troubleshoot Scheduled Tasks in Windows XP:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q308558#2

Checking the Scheduled Tasks Log:
Scheduled tasks maintains a log file (Schedlgu.txt), in the c:\Windows
folder. You can view the log from the Scheduled Tasks window by clicking
View Log on the Advanced menu.

The log file size is 32 kilobytes (KB), and when the file reaches its
maximum size, it automatically starts to record new information at the
beginning of the log file and writes over the old log file information.

--
Ramesh, Microsoft MVP
Window XP Shell/User
http://www.mvps.org/sramesh2k


Ramesh,
Where can I find the log? Not as easy as it was to view in Win ME.
 
Ramesh,
Being fairly new to XP, I could not find log like I was used to in 98 or ME.
But thanks for the links you provided, I now know how to find it. Anyway,
the Task Scheduler is running and I got to open the log and this is the
error I get for that Task I'm trying to set-up:
---------------------------------------------------------------------------------------------------
"Auto Dialup MISNET!.job" (dialup.bat) 9/6/2004 12:25:00 PM ** ERROR **
The attempt to retrieve account information for the specified task failed;
therefore, the task did not run. Either an error occurred, or no account
information existed for the task.
The specific error is:
0x8004130f: No account information could be found in the Task Scheduler
security database for the task indicated.
 
See if you can run the task under Administrator (built-in) credentials. If
that does not help. see:

Scheduled tasks do not run after you install Windows XP Service Pack 1:
http://support.microsoft.com/?kbid=832585

--
Ramesh, Microsoft MVP
Window XP Shell/User
http://www.mvps.org/sramesh2k


Ramesh,
Being fairly new to XP, I could not find log like I was used to in 98 or ME.
But thanks for the links you provided, I now know how to find it. Anyway,
the Task Scheduler is running and I got to open the log and this is the
error I get for that Task I'm trying to set-up:
---------------------------------------------------------------------------------------------------
"Auto Dialup MISNET!.job" (dialup.bat) 9/6/2004 12:25:00 PM ** ERROR **
The attempt to retrieve account information for the specified task failed;
therefore, the task did not run. Either an error occurred, or no account
information existed for the task.
The specific error is:
0x8004130f: No account information could be found in the Task Scheduler
security database for the task indicated.
-------------------------------------------------------------------------------------------------------
 
Ramesh,
All other Tasks run great. I'm only user so what/how do I run as
Administrator? Remember, I'm an XP newbie plus I've applied SP2.
 
Back
Top