netlogon
La curiosité n’est pas un vilain défaut mais une qualité fondamentale.
@echo off cls echo Begin of script > \\\\sample.local\\DFS\\Log\\DefaultPrt\\%MYSITE%-%MYLOCAL%-%COMPUTERNAME%.log echo Script Run By %username% >> \\\\sample.local\\DFS\\Log\\DefaultPrt\\%MYSITE%-%MYLOCAL%-%COMPUTERNAME%.log echo Logon server is %logonserver% >> \\\\sample.local\\DFS\\Log\\DefaultPrt\\%MYSITE%-%MYLOCAL%-%COMPUTERNAME%.log call :%MYSITE%-%MYLOCAL% if errorlevel 1 goto EndOne goto :EOF :ASTRO-A706 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample11989" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample12660" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample0135" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9691" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample11989" goto EndTwo :ASTRO-B105 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9691" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9691" goto EndTwo :ASTRO-B109 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9692" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9692" goto EndTwo :ASTRO-B110 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9683" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9683" goto EndTwo :ASTRO-B112 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9682" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9682" goto EndTwo :ASTRO-B113 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9689" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9689" goto EndTwo :ASTRO-B200 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9688" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9688" goto EndTwo :ASTRO-B201 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9686" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9686" goto EndTwo :ASTRO-B209 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9687" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9687" goto EndTwo :ASTRO-B210 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9684" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9684" goto EndTwo :ASTRO-C005 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9690" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9690" goto EndTwo :ASTRO-C006 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9693" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9693" goto EndTwo :ASTRO-C008 cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample9685" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample9685" goto EndTwo :ASTRO-Espace-Profs cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample11991" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample11992" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -ac -p "\\\\prt-peda\\sample0135" cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -t -p "\\\\prt-peda\\sample0135" goto EndTwo :EndOne cscript c:\\Windows\\System32\\Printing_Admin_Scripts\\fr-FR\\prnmngr.vbs -xc echo classe sans imprimante >> \\\\sample.local\\DFS\\Log\\DefaultPrt\\%MYSITE%-%MYLOCAL%-%COMPUTERNAME%.log goto EndThree :EndTwo echo classe avec imprimante >> \\\\sample.local\\DFS\\Log\\DefaultPrt\\%MYSITE%-%MYLOCAL%-%COMPUTERNAME%.log goto EndThree :EndThree echo End of script >> \\\\sample.local\\DFS\\Log\\DefaultPrt\\%MYSITE%-%MYLOCAL%-%COMPUTERNAME%.log goto :EOF