From 760c8abb53c8f4fd61eaafd9d4f7324e805dd220 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 26 Mar 2013 16:18:17 -0500 Subject: [PATCH] Add template join batch script --- setup/scap_lsa_win7.reg | Bin 0 -> 932 bytes setup/scap_lsa_win8.reg | Bin 0 -> 1038 bytes setup/scap_roaming_profiles.reg | Bin 0 -> 296 bytes setup/setup.bat | 33 ++++++++++++++++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100755 setup/scap_lsa_win7.reg create mode 100755 setup/scap_lsa_win8.reg create mode 100755 setup/scap_roaming_profiles.reg create mode 100755 setup/setup.bat diff --git a/setup/scap_lsa_win7.reg b/setup/scap_lsa_win7.reg new file mode 100755 index 0000000000000000000000000000000000000000..22da050c1bc8ba9c7b52dee45c4188ba3cb9d806 GIT binary patch literal 932 zcmZ{jQA@)>5QM*H!T%8Yq)?<9dr`p$34)?kv7(5TqHV23X`xZnKd;VRNp2&R(qwLS zGCO;h{CwXqVakvh9~2~9GGZ*Q;Eg$7Vh&ZEXf@M1;ac^%suQiJTDRGtrQa$m;eW>w zCwk_VKBt_MbD(>lj_$c?$DFC!qbo(1E8&h-Iq!0v%X_L$dGPlAXS_-^66ZC(W6Ad9 zTJXSq=-LRXL2&U|eeMfY2fXMymP0{cxEB&8O0>{rY#D{cUcF57WcZl4-gUTCli?~pHIuZ7o-to)=CJN|pPZT7 zu~WI*eRA66a*{fZ6FQwusj2tMD&Daz9P=%7j$Na$>gaA0XTinxSYXT7_5Yn_>}B0z YKKp*y_aM_(QqG#1)3>~JjM#rwzoMjUl>h($ literal 0 HcmV?d00001 diff --git a/setup/scap_lsa_win8.reg b/setup/scap_lsa_win8.reg new file mode 100755 index 0000000000000000000000000000000000000000..6297c36fe3e23692fb724f5c71fdd4a13cd42fcf GIT binary patch literal 1038 zcmZ`&QA@)x7`$h}|4{a%Fl1VnsNjPXLDA`OqKK2B+nhsLp;gpBuU=BpT*qXrz1(-b z@4lq{{kg>)3rvvX6D1N{VTu{K67MMRP3D-@IafK?32s;~Sec-f%Ik~{C0aPd3(*%gV6lk$l&WTnQ!)O;$FbP+vczEtK=cikr= za~tf{?z&HgyBsEI;y9t<*#u3qm#uk&UE-Lp(i!ZFLe1^p#gf-5Z@&Pt%BJGkttRsys2D_E^U5`~3syb9RFO literal 0 HcmV?d00001 diff --git a/setup/scap_roaming_profiles.reg b/setup/scap_roaming_profiles.reg new file mode 100755 index 0000000000000000000000000000000000000000..997c5186c0e367c3b930aec4bd3a4d6fd7ca6555 GIT binary patch literal 296 zcmYk1(Mkeg5QV>Mp?6q(fT)XZ0xv`i!%|UGq!lUqiv`=2T}Afgt#AJzWEh5X&diya zpYxK8oDT|4R3uCZe92WDD5+)os+p(|CoI%U)l8g=@3`j1xS|#Fl>tL%R&01;OpmU0 z!?U%g_Q*&zWv2GPoTdCUG7}wl`fknOhSZq`mGYJO=?$si~s-t literal 0 HcmV?d00001 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"