summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-26 16:18:17 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-26 16:18:17 -0500
commit760c8abb53c8f4fd61eaafd9d4f7324e805dd220 (patch)
tree9d04dafefb3fd4ddd113a168bd8e8d0fa41cee62
parent89682db9a2259e15a88423b87e33b6dd504206d9 (diff)
downloadwindows-ldap-integration-760c8abb53c8f4fd61eaafd9d4f7324e805dd220.tar.gz
windows-ldap-integration-760c8abb53c8f4fd61eaafd9d4f7324e805dd220.zip
Add template join batch script
-rwxr-xr-xsetup/scap_lsa_win7.regbin0 -> 932 bytes
-rwxr-xr-xsetup/scap_lsa_win8.regbin0 -> 1038 bytes
-rwxr-xr-xsetup/scap_roaming_profiles.regbin0 -> 296 bytes
-rwxr-xr-xsetup/setup.bat33
4 files changed, 33 insertions, 0 deletions
diff --git a/setup/scap_lsa_win7.reg b/setup/scap_lsa_win7.reg
new file mode 100755
index 0000000..22da050
--- /dev/null
+++ b/setup/scap_lsa_win7.reg
Binary files differ
diff --git a/setup/scap_lsa_win8.reg b/setup/scap_lsa_win8.reg
new file mode 100755
index 0000000..6297c36
--- /dev/null
+++ b/setup/scap_lsa_win8.reg
Binary files differ
diff --git a/setup/scap_roaming_profiles.reg b/setup/scap_roaming_profiles.reg
new file mode 100755
index 0000000..997c518
--- /dev/null
+++ b/setup/scap_roaming_profiles.reg
Binary files differ
diff --git a/setup/setup.bat b/setup/setup.bat
new file mode 100755
index 0000000..99077c9
--- /dev/null
+++ b/setup/setup.bat
@@ -0,0 +1,33 @@
+set REALM=realm.test
+set LDAPSERVER=server.realm.test
+set FILESERVER=fileserver.realm.test
+set MACHINEPASSWORD=password
+
+ksetup /setdomain %REALM%
+ksetup /addkdc %REALM% %LDAPSERVER%
+ksetup /setcomputerpassword %MACHINEPASSWORD%
+ksetup /mapuser * *
+
+copy sspap3.dll C:\Windows\System32\
+mkdir C:\logon
+copy \\%FILESERVER%\common\localstartup.bat C:\logon\
+
+regedit /S scap_base.reg
+regedit /S scap_lsa_win8
+regedit /S scap_roaming_profiles
+regedit /S scap_winlogon
+
+net share netlogon=C:\logon
+
+REM Install LDAP certificate
+REM This is not needed for most users and workstations
+REM copy \\%FILESERVER%\common\%LDAPSERVER%.ldap.crt C:\logon\ldap.crt
+REM certmgr.exe -add -c "C:\logon\ldap.crt" -s -r localMachine root
+
+REM Install print server certificate
+copy \\%FILESERVER%\common\%PRINTSERVER%.cups.crt C:\logon\print.crt
+certmgr.exe -add -c "C:\logon\print.crt" -s -r localMachine root
+
+REM Install printer(s)
+REM This is apparently broken on Windows 7 and up!
+REM rundll32 printui.dll,PrintUIEntry /b "PrinterName" /x /n "part of the n switch" /if /f %windir%\inf\ntprint.inf /r "https://%PRINTSERVER%:631/printers/printername" /m "Printer Description"