[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 232 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
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\\$adminnameecho password=$passadmin) X-Ref |
No description |
uploadGPO({mkgpopasswd $3smbclient mkdir \System32\GroupPolicymkdir \System32\GroupPolicy\Machinemkdir \System32\GroupPolicy\Machine\Scriptsmkdir \System32\GroupPolicy\Machine\Scripts\Startupmkdir \System32\GroupPolicy\Machine\Scripts\Shutdownput $logondir/shutdown.cmd \System32\GroupPolicy\Machine\Scripts\Shutdown\shutdown.cmdput $domscripts/startup.cmd \System32\GroupPolicy\Machine\Scripts\Startup\startup.cmdput $logondir/registry.pol \System32\GroupPolicy\Machine\registry.polput $logondir/gpt.ini \System32\GroupPolicy\gpt.iniput /home/netlogon/scriptsC.ini \System32\GroupPolicy\Machine\Scripts\scripts.iniprompt OFFrm \tasks\wpkg.job EOFreturn $?}function setADM{smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls smbcacls }function uploadDom {mkgpopasswd $3smbclient mkdir Netinstmkdir Netinst\logsput /home/netlogon/machine/$2/action.bat Netinst\action.batput /home/netlogon/CPAU.exe Netinst\CPAU.execd Netinstlcd $domscriptsprompt OFFmput -y *EOFreturn $?}function setACL{smbcacls smbcacls smbcacls smbcacls smbcacls }function tryuploadgpo { uploadGPO $1 $ip $2 >/dev/null 2>&1 if [ "$?" == "0" ]thensetADM $1 $ipsetACL $1 $ipuploadDom $1 $ip $2 >/dev/null 2>&1cp $logondir/action.bat /home/netlogon/machine/$oldnamerm -rf $logondirif [ "action" == "clone" ]; thenecho "clonage : la machine est prete<br>"else/usr/share/se3/shares/shares.avail/connexion.sh adminse3 $name $ip $macfi/usr/bin/net rpc shutdown -t 30 -r -C "$action : Le poste $oldname ($ip) X-Ref |
No description |
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |