Posted in
Windows Server |
1 Comment | 7,200 views | 23/03/2009 10:56
Real nightmare! But I did it. After 6 hours, I finally did a deployment script for ISC Bind 9.6.0 release. As you know, bind has a setup.exe but you can’t use it with silent switch. So what should we do? Making MSI patch is a solution but be sure It isn’t working for Bind :) My deployment script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| mkdir "C:\Windows\System32\dns"
xcopy /E "R:\Bind" "C:\Windows\System32\dns\"
CACLS C:\Windows\System32\dns /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\etc /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\etc\* /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\bin /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\bin\* /G "NETWORK SERVICE":F /E
reg import "R:\Registry\bind.reg"
xcopy "R:\Registry\bind.msi" "C:\"
"C:\bind.msi" /quiet /passive
del "C:\bind.msi"
sc create "ISC BIND" binpath= c:\Windows\System32\dns\bin\named.exe start= auto obj= "NT AUTHORITY\NETWORK SERVICE"
net start "ISC BIND" /Y
exit |
mkdir "C:\Windows\System32\dns"
xcopy /E "R:\Bind" "C:\Windows\System32\dns\"
CACLS C:\Windows\System32\dns /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\etc /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\etc\* /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\bin /G "NETWORK SERVICE":F /E
CACLS C:\Windows\System32\dns\bin\* /G "NETWORK SERVICE":F /E
reg import "R:\Registry\bind.reg"
xcopy "R:\Registry\bind.msi" "C:\"
"C:\bind.msi" /quiet /passive
del "C:\bind.msi"
sc create "ISC BIND" binpath= c:\Windows\System32\dns\bin\named.exe start= auto obj= "NT AUTHORITY\NETWORK SERVICE"
net start "ISC BIND" /Y
exit
In this scenario, Bind works with Network Service account. It’s better than named, i think. I won’t share bind.msi and bind.reg files but maybe you can see that files at Radore Telecom NOC Blog page. Our blog page is not online but you can follow here: http://www.rh.com.tr