これは私が現在持っているコードですが、そのユーザーではなく私のためにタスクを作成するだけです。
@echo off
echo Enter Computer Name:
set /p compname=
schtasks.exe /create /sc once /tn defrag /tr "\\compname\C$Windows\system32\defrag.exe c:" /st 14:33:00
pause
これは私が現在持っているコードですが、そのユーザーではなく私のためにタスクを作成するだけです。
@echo off
echo Enter Computer Name:
set /p compname=
schtasks.exe /create /sc once /tn defrag /tr "\\compname\C$Windows\system32\defrag.exe c:" /st 14:33:00
pause