diff options
author | Rich Megginson <rmeggins@redhat.com> | 2012-07-25 20:34:56 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2012-07-25 20:37:00 -0600 |
commit | 14748057b040ce3c7073de0088a3fe8b75fd6a89 (patch) | |
tree | fe075fd35166de0926c63e96034380eb8d66a3a6 /setupscript4.cmd.in | |
parent | 792e1312636cbcd78be3a12953b0ea009f116364 (diff) | |
download | auto-win-vm-ad-14748057b040ce3c7073de0088a3fe8b75fd6a89.tar.gz auto-win-vm-ad-14748057b040ce3c7073de0088a3fe8b75fd6a89.tar.xz auto-win-vm-ad-14748057b040ce3c7073de0088a3fe8b75fd6a89.zip |
use cdrom instead of floppy
first pass at passsync installer
split out AD installer from postinstall
fixes for nextscript
parameterize SETUP_PATH in all cmd files
Diffstat (limited to 'setupscript4.cmd.in')
-rw-r--r-- | setupscript4.cmd.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/setupscript4.cmd.in b/setupscript4.cmd.in new file mode 100644 index 0000000..3f89aa4 --- /dev/null +++ b/setupscript4.cmd.in @@ -0,0 +1,15 @@ +call @SETUP_PATH@\passsync-vars.cmd +for %%i in (@SETUP_PATH@\*PassSync*.msi) do msiexec /i %%i /quiet /passive /log c:\passsync-msi.log +reg add HKLM\Software\PasswordSync /f /v "Host Name" /t REG_SZ /d %DS_FQDN% +reg add HKLM\Software\PasswordSync /f /v "Password" /t REG_SZ /d "%PASSSYNC_PW%" +reg add HKLM\Software\PasswordSync /f /v "Port Number" /t REG_SZ /d %DS_PORT% +reg add HKLM\Software\PasswordSync /f /v "Search Base" /t REG_SZ /d "%DS_SUFFIX%" +reg add HKLM\Software\PasswordSync /f /v "User Name" /t REG_SZ /d "%PASSSYNC_DN%" + +setlocal ENABLEEXTENSIONS +for /f "skip=2 tokens=1-3*" %%a in ('reg query HKLM\Software\PasswordSync /v "Install Path"') do set instpath=%%d +cd "%instpath%" +certutil.exe -d . -A -n "DS CA cert" -t CT,, -a -i @SETUP_PATH@\ds-ca-cert.cer +certutil.exe -d . -L -n "DS CA cert" + +@SETUP_PATH@\nextscript.cmd 5 "Reboot to complete PassSync installation" |