I've been trying to change settings in Task Scheduler following this post (Conclusively stop wake timers from waking Windows 10 desktop) but on making my setting Windows asks me for a password for one of these accounts. To be honest I recognize none of the accounts (I do recognize my mail but I actually use an offline account and pin to log in. What are these and are there default passwords I can try?
Windows – Multiple odd accounts in Windows 10 Task Scheduler
scheduled-taskswindows 10
Related Solutions
Run a task once a day at log on
I am trying to set up a schedule task to run an exe exactly once a day.
I am considering writing a batch script that will write out to a file and be able to detect if it's been called before.
Okay, so the below is an example with very basic and simple batch script logic as you stated in the comment may be useful in your case per issues you're facing.
I also will reference another post (at the bottom of this answer) on Task Scheduler with gotcha's, etc. just in case you have further issues with Task Scheduler not working as expected when executing the batch script. Even though the options you pick specifically in the configuration may be different as well as the OS, the gotcha's at this level are likely the same still so take a quick look at that post too if you have trouble with the batch scheduling with Task Scheduler not working as expected.
Basic Script Breakdown
The
FOR /F
loop creates theYYYYMMDD
variable to use for the current date.The
CheckDir
is a local drive path or even a UNC path of\\servername\sharename\folder
that you will put this small check file with theYYYYMMDD
part of it's file name each day.- Just change the
C:\Path
or plug in the UNC path to where that needs to point to in your environment
- Just change the
The
checkfile
is ONLY the name of the file with the%CheckDir%\
in front of it and the%DT%
appended to the end of it before the .txt extension. It'll for example give you a final result ofC:\Path\VersionBackup_20130202.txt
for today as in my example.- This will essentially check if the file exists for today, if so, end the script, if it does not exist, create it and then run the VersionBackup.exe of whatever it's EXE name is called. This way this thing could be scheduled with Task Scheduler to once once an hour pointing to the batch script and per the batch script logic, it'll only be allowed to run once per day.
The
START "" "C:\Path\VersionBackup.exe"
just needs to point to full path where the EXE name exist that does the version backup operation.
Batch Script Example
@ECHO ON
:::: SET YYYYMMDD format for date
FOR /F "TOKENS=2-4 DELIMS=/ " %%A IN ("%DATE%") DO SET "DT=%%C%%B%%A"
:SetCheckFile
SET CheckDir=C:\Path
SET checkfile=%CheckDir%\VersionBackup_%DT%.txt
IF NOT EXIST "%CheckDir%" MD "%CheckDir%"
IF EXIST "%checkfile%" GOTO EOF
ECHO Creating the check file for date %DT% to ensure only one Version Backup run for the day>>"%checkfile%"
:StartApp
START "" "C:\Path\VersionBackup.exe"
GOTO EOF
I figured this out myself. In the above, although it displays the account name of my original local user name, I need to log on with my new Microsoft account password.
Best Answer
You won't be able to provide any password there as the user S-1-5-18 is a system account. The PSExec tool from SysInternals can work around this issue by launching Task Scheduler as SYSTEM. Run this command in an elevated (admin)
cmd
prompt to launch Task Scheduler:psexec -i -d -s mmc taskschd.msc
Then proceed to modify the task as needed.