Line 57: |
Line 57: |
| #echo "Votre classe : $Groupe" > /home/e-smith/files/users/$1/home/info.txt | | #echo "Votre classe : $Groupe" > /home/e-smith/files/users/$1/home/info.txt |
| #done | | #done |
| + | |
| + | |
| + | @echo off |
| + | |
| + | rem net use i: /delete |
| + | rem net use j: /delete |
| + | rem net use k: /delete |
| + | rem net use l: /delete |
| + | rem net use m: /delete |
| + | rem net use o: /delete |
| + | rem net use p: /delete |
| + | rem net use r: /delete |
| + | rem net use u: /delete |
| + | rem net use v: /delete |
| + | rem net use x: /delete |
| + | rem net use w: /delete |
| + | rem net use z: /delete |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg personnel |
| + | rem on monte les lecteurs reseaux |
| + | net use i: \\buzz\autoformation |
| + | net use k: \\buzz\temporaire |
| + | net use l: \\buzz\logiciels |
| + | net use r: \\buzz\reco_vegetaux |
| + | net use p: \\buzz\partage_prof |
| + | net use u: \\buzz\classes |
| + | net use z: \\buzz\photos |
| + | rem Configurer Wallpaper (image en bmp obligatoire) |
| + | REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "\\buzz\netlogon\wallpaper\lonerock.bmp" |
| + | REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2 |
| + | REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0 |
| + | rem Actualiser bureau (pour le wallpaper) |
| + | %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters |
| + | \\buzz\netlogon\Bginfo.exe /NOLICPROMPT "\\buzz\netlogon\infopersonnel.bgi" /timer:0 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** Le formateur est membre du groupe personnel, mais on lui monte un lecteur distant supplementaire |
| + | #ifg formateurs |
| + | net use y: \\buzz\partage_form |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg eleves |
| + | rem on monte les lecteurs reseaux |
| + | net use l: \\buzz\logiciels |
| + | net use r: \\buzz\reco_vegetaux |
| + | rem Configurer Wallpaper (image en bmp obligatoire) |
| + | REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "\\buzz\netlogon\wallpaper\mail2.bmp" |
| + | REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2 |
| + | REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0 |
| + | rem Actualiser bureau (pour le wallpaper) |
| + | %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters |
| + | \\buzz\netlogon\Bginfo.exe /NOLICPROMPT "\\buzz\netlogon\infoeleves.bgi" /timer:0 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** on monte le lecteur "classes" pour chaque classe |
| + | rem ******************************** |
| + | #ifg bacgen_eatdd_2nde |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bacgen_eatdd_2nde |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | rem ******************************** |
| + | #ifg bacpro_ap_1ere_a, bacpro_ap_1ere_b |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bacpro_ap_1ere |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bacpro_ap_term |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bacpro_ap_term |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bacpro_njpf_2nde |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bacpro_njpf_2nde |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bacpro_sapat_2nde_a, bacpro_sapat_2nde_b |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bacpro_sapat_2nde |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bacpro_sapat_1ere_a, bacpro_sapat_1ere_b |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bacpro_sapat_1ere |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bacpro_sapat_term_a, bacpro_sapat_term_b |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bacpro_sapat_term |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bactech_stav_1ere |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bactech_stav_1ere |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bactech_stav_term |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bactech_stav_term |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bp_ap_adultes |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bp_ap_adultes |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bp_ap_appr_1 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bp_ap_appr_1 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | rem ******************************** |
| + | #ifg bp_ap_appr_2 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bp_ap_appr_2 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bpa_tap_adultes |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bpa_tap_adultes |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bpa_tap_appr_1 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bpa_tap_appr_1 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bpa_tap_appr_2 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bpa_tap_appr_2 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bpa_tap_appr_en_1an |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bpa_tap_appr_en_1an |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bts_ap_1 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bts_ap_1 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bts_ap_2 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bts_ap_2 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bts_gpn_1 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bts_gpn_1 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg bts_gpn_2 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\bts_gpn_2 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cap_smr_1 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cap_smr_1 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cap_smr_2 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cap_smr_2 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cap_tp_sco_1 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cap_tp_sco_1 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cap_tp_sco_2 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cap_tp_sco_2 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg capa_tp_appr_1 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\capa_tp_appr_1 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg capa_tp_appr_2 |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\capa_tp_appr_2 |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cqp_hpa |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cqp_hpa |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cqp_macon |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cqp_macon |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cqp_vegetal_a |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cqp_vegetal |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg cqp_vegetal_b |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\cqp_vegetal |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg ime |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\ime |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg quatrieme_jaune |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\quatrieme |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg quatrieme_rouge |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\quatrieme |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg troisieme_bleu |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\troisieme |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg troisieme_jaune |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\troisieme |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg troisieme_rouge |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\troisieme |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg troisieme_vert_dima |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\troisieme_vert_dima |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg ulis |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes\ulis |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifu assr |
| + | rem on monte les lecteurs reseaux |
| + | net use u: \\buzz\classes |
| + | #endif |
| + | rem ******************************* |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifu admin |
| + | rem on monte les lecteurs reseaux |
| + | net use i: \\buzz\autoformation |
| + | net use k: \\buzz\temporaire |
| + | net use l: \\buzz\logiciels |
| + | net use p: \\buzz\partage_prof |
| + | net use r: \\buzz\reco_vegetaux |
| + | net use u: \\buzz\classes |
| + | net use y: \\buzz\partage_form |
| + | net use z: \\buzz\photos |
| + | rem Configurer Wallpaper (image en bmp obligatoire) |
| + | REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "\\buzz\netlogon\wallpaper\personnel.bmp" |
| + | REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2 |
| + | REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0 |
| + | rem Actualiser bureau (pour le wallpaper) |
| + | %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters |
| + | \\buzz\netlogon\Bginfo.exe /NOLICPROMPT "\\buzz\netlogon\infoadmin.bgi" /timer:0 |
| + | #endif |
| + | rem ******************************* |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifu lementecr |
| + | net use o: \\10.56.141.4\partage_commun$\FC\gestion_stagescourts |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** monte un lecteur reseau V pour aplon selon la machine |
| + | #ifm jm, nb, jmy, clt, viescolaire1, viescolaire2, internat, woody, ps, jr, ym |
| + | net use v: \\10.56.141.4\aplon$ /user:administration\UserAplon aplon |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifm pccouleur |
| + | rem Configurer Wallpaper (image en bmp obligatoire) |
| + | REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "\\buzz\netlogon\wallpaper\pccouleur.bmp" |
| + | REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2 |
| + | REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0 |
| + | rem Actualiser bureau (pour le wallpaper) |
| + | %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifm pc-amphi |
| + | rem Configurer Wallpaper (image en bmp obligatoire) |
| + | REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "\\buzz\netlogon\wallpaper\pcamphi.bmp" |
| + | REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2 |
| + | REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0 |
| + | rem Actualiser bureau (pour le wallpaper) |
| + | %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters |
| + | #endif |
| + | rem ******************************** |
| + | |
| + | |
| + | |
| + | |
| + | rem on execute un script autoit qui necessite les droits administrateur |
| + | \\buzz\netlogon\droits_admin.exe |
| + | |
| + | |
| + | |
| + | rem ******************************** |
| + | #ifg divers |
| + | rem on monte les lecteurs reseaux |
| + | net use l: \\buzz\logiciels |
| + | net use u: \\buzz\classes |
| + | rem Configurer Wallpaper (image en bmp obligatoire) |
| + | REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "\\buzz\netlogon\wallpaper\red.bmp" |
| + | REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2 |
| + | REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0 |
| + | rem Actualiser bureau (pour le wallpaper) |
| + | %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters |
| + | \\buzz\netlogon\Bginfo.exe /NOLICPROMPT "\\buzz\netlogon\infodivers.bgi" /timer:0 |
| + | rem on execute un script autoit qui necessite les droits administrateur |
| + | \\buzz\netlogon\logonvierge.exe |
| + | #endif |
| + | rem ******************************* |
| + | |
| + | |
| + | |
| + | |
| + | rem start \\buzz\netlogon\anims\pioupiou.exe |
| + | |
| + | rem start /min \\buzz\netlogon\rav.exe |
| + | |
| + | |
| + | rem mettre firefox par defaut |
| + | regedit.exe /s \\buzz\netlogon\registre\firefoxdefaut.reg |
| + | |
| + | |
| + | rem supprimer le fichier info.txt dans le /home |
| + | del t:\info.txt |
| + | |
| + | rem supprimer le netlogon.bat cree dans le /home |
| + | del t:\netlogon.bat |