forked from PowerDNS-Admin/PowerDNS-Admin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@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 |