[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 296 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
deleteREG({rm -f /home/netlogon/machine/$1/user.reg}function createREG{echo -e "REGEDIT4\r\n"> /home/netlogon/machine/$2/user.regflag=0for pathreg in /home/netlogon/*.ref; doreg=$pathregif [ -f "/home/netlogon/$reg" ]; then sed -e "/^REGEDIT/d;/^Windows Registry Editor Version 5.00/d;s/HKEY_CURRENT_USER/HKEY_USERS\\\\$sid/g" /home/netlogon/$reg >> /home/netlogon/machine/$2/user.regflag=1echo "on force $reg"fidonefor pathreg in /home/netlogon/*.reg; doreg=$pathregif [ ! -f /home/profiles/$profile/.$reg.lck -o -f /home/netlogon/forcereg.txt ]; thensed -e "/^REGEDIT/d;/^Windows Registry Editor Version 5.00/d;s/HKEY_CURRENT_USER/HKEY_USERS\\\\$sid/g" /home/netlogon/$reg >> /home/netlogon/machine/$2/user.regtouch /home/profiles/$profile/.$reg.lckflag=1echo "on ajoute $reg"fidoneif [ "$flag" == "0" ]; thendeleteREG $2fi}function uploadGPO{smbclient mkdir System32\GroupPolicymkdir System32\GroupPolicy\Usermkdir System32\GroupPolicy\User\Scriptsmkdir System32\GroupPolicy\User\Scripts\Logonmkdir System32\GroupPolicy\User\Scripts\Logoffmkdir System32\GroupPolicy\Machinemkdir System32\GroupPolicy\Machine\Scriptsmkdir System32\GroupPolicy\Machine\Scripts\Startupmkdir System32\GroupPolicy\Machine\Scripts\Shutdownput /home/netlogon/machine/$2/user.pol System32\GroupPolicy\User\registry.polput /home/netlogon/machine/$2/logon.cmd System32\GroupPolicy\User\Scripts\Logon\logon.cmdput /home/netlogon/machine/$2/logoff.cmd System32\GroupPolicy\User\Scripts\Logoff\logoff.cmdput /home/netlogon/machine/$2/machine.pol System32\GroupPolicy\Machine\registry.polput /home/netlogon/machine/$2/startup.cmd System32\GroupPolicy\Machine\Scripts\Startup\startup.cmdput /home/netlogon/machine/$2/shutdown.cmd System32\GroupPolicy\Machine\Scripts\Shutdown\shutdown.cmdput /home/netlogon/machine/$2/gpt.ini System32\GroupPolicy\gpt.iniput /home/netlogon/scriptsU.ini System32\GroupPolicy\User\Scripts\scripts.iniput /home/netlogon/scriptsC.ini System32\GroupPolicy\Machine\Scripts\scripts.iniput /home/netlogon/machine/$2/printers.vbs printers.vbsEOFreturn $?}function setGPOversion{smbclient get System32\GroupPolicy\gpt.ini /home/netlogon/machine/$2/gpt.iniEOFif [ "$?" != "0" ]; thenreturn $? fi if [ ! -f /home/netlogon/machine/$machine/gpt.ini ]; thencp -f /home/netlogon/gpt.ini /home/netlogon/machine/$machine/gpt.inielseGPO_VERS="$(grep Version /home/netlogon/machine/$machine/gpt.ini|cut -d '=' -f2|sed -e 's/\r) X-Ref |
No description |
uploadWallpaper({if [ -f "/var/se3/Docs/media/fonds_ecran/$1.$ext" ]; thensmbclient put /var/se3/Docs/media/fonds_ecran/$1.$ext Web\Wallpaper\\$1_se3.$extEOFreturn $?fireturn 0}function setADM{smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls }function setACL{smbcacls smbcacls smbcacls smbcacls smbcacls rm -f /home/netlogon/machine/$2/fallback.batrm -f /home/netlogon/machine/$2/EnableGPO.batreturn 0}function EnableGPO {if [ "$2" == "Vista" ]||[ "$2" == "Seven" ]thenSHARECMD="net share C\$=C: /GRANT:adminse3,FULL\r\nnet share ADMIN\$ /GRANT:adminse3,FULL\r\n"elseSHARECMD="net share C\$=C:\r\nnet share ADMIN\$=%SystemRoot%\r\n"fised -e "s!%se3ip%!$se3ip!g;s!%machine%!$1!g;s!%sharecmd%!$SHARECMD!g;s!%user%!$user!g;s!%domain%!$se3_domain!g" /home/netlogon/EnableGPO.bat > /home/netlogon/machine/$1/EnableGPO.batecho -e "start /wait \\\\\\\\$se3ip\\\\netlogon\\\\cpau.exe -wait -lwop -hide -dec -file \\\\\\\\$se3ip\\\\netlogon\\\\machine\\\\gpo_helper.job\r\n" > /home/netlogon/machine/$1/fallback.batecho -e "call \\\\\\\\$se3ip\\\\netlogon\\\\machine\\\\$1\\\\logon.cmd\r\n" >>/home/netlogon/machine/$1/fallback.batchown adminse3:admins /home/netlogon/machine/$1/*.batchmod 664 /home/netlogon/machine/$1/*.bat}function mkgpopasswd {[ -f /home/netlogon/machine/$1 ] && rm -f /home/netlogon/machine/$1[ ! -d /home/netlogon/machine/$1 ] && mkdir -p /home/netlogon/machine/$1echo username=$1\\adminse3echo password=$xppass) X-Ref |
No description |
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |