Re: schtask to run task now or in 2 minutes
From: Clay Calvert (ccalvert_at_Wanguru.com)
Date: 12/23/04
- Previous message: Corné Bogaarts: "Re: Last Password Changed.."
- In reply to: Greg: "Re: schtask to run task now or in 2 minutes"
- Next in thread: Al Dunbar [MS-MVP]: "Re: schtask to run task now or in 2 minutes"
- Reply: Al Dunbar [MS-MVP]: "Re: schtask to run task now or in 2 minutes"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Dec 2004 19:29:12 -0500
On Wed, 22 Dec 2004 07:13:02 -0800, "Greg"
<Greg@discussions.microsoft.com> wrote:
>Any one have any thoughts/suggestions regarding the below question?
The first thing that popped in my head was are there any 'special'
characters in the password, such as <>|*%?&.
What error did it give? You may have to put a pause at the end of the
batch file.
>"Dave Patrick" wrote:
>
>> You might want to ask this one in server.scripting
>>
>> forwarding to microsoft.public.windows.server.scripting
>>
>> --
>> Regards,
>>
>> Dave Patrick ....Please no email replies - reply in newsgroup.
>> Microsoft Certified Professional
>> Microsoft MVP [Windows]
>> http://www.microsoft.com/protect
>>
>> "Greg" wrote:
>> | Ok I got my task to schedule and to run using the following format...
>> |
>> | schtasks /create /tn prog-install /s %1 /u username /p password /tr
>> | "\\%1\C$\Temp\progin.BAT" /sc once /st 23:00:00
>> | schtasks /run /tn prog-install /s %1 /u username /p password
>> |
>> | As you can see above I had to imbed my username and password into each
>> line.
>> | Below I tried to use a set veriable for my password but this did not work
>> | even though I did set the veriables at the begining of the script. I have
>> | multiple sections of the batch file and don't want to have to put my
>> username
>> | and password all over the place. I'd like to just set two vaialbles in
>> the
>> | begining and "read" them when needed. Any ideas here?
>> |
>> | schtasks /create /tn prog-install /s %1 /u %UNAME /p %UNPW /tr
>> | "\\%1\C$\Temp\progin.BAT" /sc once /st 23:00:00
>> | schtasks /run /tn prog-install /s %1 /u %UNAME /p %UNPW
>> | ===========================================
Clay Calvert
CCalvert@Wanguru.com
Replace "W" with "L"
- Previous message: Corné Bogaarts: "Re: Last Password Changed.."
- In reply to: Greg: "Re: schtask to run task now or in 2 minutes"
- Next in thread: Al Dunbar [MS-MVP]: "Re: schtask to run task now or in 2 minutes"
- Reply: Al Dunbar [MS-MVP]: "Re: schtask to run task now or in 2 minutes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|