mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
17 lines
531 B
Batchfile
17 lines
531 B
Batchfile
|
@echo off
|
||
|
|
||
|
rem Create a new group for PowerDNS-Admin
|
||
|
net localgroup powerdnsadmin /add
|
||
|
|
||
|
rem Create a user for PowerDNS-Admin
|
||
|
net user powerdnsadmin /add /passwordchg:no /homedir:nul /active:yes /expires:never /passwordreq:no /s
|
||
|
|
||
|
rem Make the new user and group the owners of the PowerDNS-Admin files
|
||
|
icacls "C:\path\to\powerdns-admin" /setowner "powerdnsadmin"
|
||
|
|
||
|
rem Start the PowerDNS-Admin service
|
||
|
net start powerdns-admin
|
||
|
|
||
|
rem Enable the PowerDNS-Admin service to start automatically at boot
|
||
|
sc config powerdns-admin start= auto
|