rem This line add new local user. Remove rem at beginning if you need this line.
rem net user /add [username] [password]
rem Lines 4 and 5 will add user to local administrators group. Use your own domain name and user name. domain user line 4, local user line 5. Remove rem at beginning your line.
rem net localgroup administrators domain\user /add
rem new localgroup administrators [username] /add
rem This command will grant ownership of the Veeam Endpoint Backup folder, and all files and subfolders in the folder, to local administrator group.
takeown /F "C:\Program Files\Veeam\Endpoint Backup" /A /R /D Y
rem This command will reset ntfs acl to default
icacls "C:\Program Files\Veeam\Endpoint Backup\*" /t /reset
rem This two commands command will set ntfs ACL. All files and subfolders in specified path will be processed. Inheritance is removed and full rights is set to administrator group and local system account. Specify your own domain name and/or user name.
Icacls "C:\Program Files\Veeam\Endpoint Backup" /inheritance:r
Icacls "C:\Program Files\Veeam\Endpoint Backup" /grant:r "domain\endpoint":(OI)(CI)F /T /grant:r "SYSTEM":(OI)(CI)F /T
rem This command hide C:\Program Files\Veeam folder and make it fake "system" folder. If user try to delete it windows will open warning window which can scare some "naughty" users.
attrib +h -r +s "C:\Program Files\Veeam\Endpoint Backup" /S /D
rem This line will create new scheduled task if you need to run VEB more than once per day. You can create almost continuous data protection. Run as system account.
schtasks.exe /create /ru SYSTEM /sc DAILY /tn Veeam_Endpoint_Backup /tr "\"C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe\" /backup" /ST 12:00:00 /SD 10/10/2016
rem This line will open Scheduled Task window for tweaking above task. Folder "Task Scheduler Library".
Users browsing this forum: No registered users and 1 guest