The goal of this manual is to assign a user to necessary privilege(s) to do the purpose. For instance, you can refer to this page when create an account for file copy, local script execution as well as ftp user.
1. Create a user as local account
- GUI: lusrmgr.msc
- CLI:
- net user /ADD [username] [password] /PASSWORDCHG:no
- WMIC USERACCOUNT WHERE “Name='[username]'” SET PasswordExpires=FALSE

2. The user is only included Users group
The user created just before is automatically a member of Users group. So we need to exclude the user in Users group. After that, add the user into a new group, which will be authorized to execute as a bactjob only.
- GUI: lusrmgr.msc
- CLI:
- net localgroup Users [username] /delete
- net localgroup CLIUsers /add
- net localgroup CLIUsers [username] /add
3. The user is not allowed to logon both locally and remotely
The new created group, CLIUsers, should not be allowed to log on both locally and remotely. Here is a way to check out.

3.1 Locally
Check if the ‘CLIUsers’ group is allowed to log on locally. The ‘CLIUsers’ group should not be included in “Allow log on locally” policy.
- GUI: secpol.msc / gpedit.msc
[Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> User Rights Assignment –> Allow log on locally(로컬 로그온 허용)]
3.2 Remotely
Check if the ‘CLIUsers’ group is allowed on to log on through remote desktop services.
- GUI: gpedit.msc
The CLIUsers group should not be included in the remote logon right at [Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> User Rights Assignment –> Allow log on through Remote Desktop Services(원격 테스크톱 서비스를 통한 로그온 허용)]

When you’re trying to logon on local console after the configuration as above, you can see the error message as below.
3.3 Allow “Log on as a batch job”
- GUI: gpedit.msc
Add “CLIUsers” group into “Log on as a batch job(일괄 작업으로 로그온)” at [Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> User Rights Assignment]
Now you can use the new account for a local service, such as task scheduler, in accordance with Principle of least privilege.