[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 141
  • Last Modified:

I created a program that creates scheduled tasks, but they do not run.

After running my batch file, it creates the scheduled tasks that I wanted but they will not run. I open up the properties and set the password and the confirm the password and they will run. I think my problem is that the passwork is not getting comfirmed by the batch file. here is my batch file....

schtasks /create /RU DECODE-PC1/Engineering /RP sicksick /sc daily /tn Bmpcleanup /tr C:\Vitronic\scripts\BmpCleanup.bat /st 10:00:00

main problem****sicksick is the password and I need to repeat the sicksick to confirm********
side problem****I also need to add a comparison as part of the tr but it will not let me.
0
Rsears32
Asked:
Rsears32
1 Solution
 
ddepastinoCommented:
You were close...
the forwardslash between DECODE-PC1 and Engineering needs to be a backslash:

schtasks /create /RU DECODE-PC1\Engineering /RP sicksick /sc daily /tn Bmpcleanup /tr C:\Vitronic\scripts\BmpCleanup.bat /st 10:00:00

the convention for specifying users is:

DomainName\Username (for domain accounts)
<or>
ComputerName\Username (for local computer accounts)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now