parent
45a4e6f876
commit
16042ec8b4
5 changed files with 39 additions and 2 deletions
@ -0,0 +1,34 @@ |
|||||||
|
{ |
||||||
|
|
||||||
|
my $ip = $InternalInterface{'IPAddress'}; |
||||||
|
my $nt = $smb{'Workgrpup'}; |
||||||
|
my $pass = $wpkg{'UserPassword'}; |
||||||
|
|
||||||
|
my $out .=<<"EOF"; |
||||||
|
|
||||||
|
@echo off |
||||||
|
cls |
||||||
|
echo. |
||||||
|
echo. _________________________________________________________ |
||||||
|
echo i\ _______________________________________________________\ |
||||||
|
echo. i i i |
||||||
|
echo i i Mises a jour en cours. N'eteignez pas l'ordinateur i |
||||||
|
echo. i i i |
||||||
|
echo i i Il s'eteindra lui-meme a la fin des operations i |
||||||
|
echo. i i i |
||||||
|
echo \i________________________________________________________i |
||||||
|
echo. |
||||||
|
echo. |
||||||
|
net use \\\\$ip\\wpkg /user:$nt\\deploiement $pass >NUL |
||||||
|
net use \\\\$ip\\wpkglogs /user:$nt\deploiement $pass >NUL |
||||||
|
set SOFTWARE=\\\\$ip\\wpkg\\softwares |
||||||
|
set SETTINGS=\\\\$ip\\wpkg\\settings |
||||||
|
set WPKGLOGS=\\\\$ip\\wpkglogs |
||||||
|
cscript //Nologo \\\\$ip\\wpkg\\wpkg.js /synchronize /nonotify /quiet |
||||||
|
|
||||||
|
EOF |
||||||
|
|
||||||
|
$out =~ s/\n/\r\n/g; |
||||||
|
$OUT = $out; |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue