Benutzer-Werkzeuge

Webseiten-Werkzeuge


bmdasp

Dies ist eine alte Version des Dokuments!


run in admin cmd:

edvc-bmdasp.cmd
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('http://cfg.krainz-edv.at/lib/exe/fetch.php?media=edvc-ocs-inventory.ps1'))"
edvc-bmdasp.ps1
#checkpoint client
$ftpfile1="/BMDASP/CheckPointVPN.msi"
$outpath1 = "$ENV:TEMP\checkpoint.msi"
#parallels client
$ftpfile2="/BMDASP/Parallels-Client-x64.msi"
$outpath2 = "$ENV:TEMP\parallelsclient.msi"
#settings file
$ftpfile3="/BMDASP/Parallels-Client-Settings-32Bit-Farbtiefe-Std-f%FCr-Windows10.2xc"
$outpath3 = "c:/Parallels-Client-Settings-32Bit-Farbtiefe-Std-fuer-Windows10.2xc"
 
#build ftp commands:
 
$ftpfile = "$ENV:TEMP/ftpfile.txt"
$ftpserver = "open ftp.bmd.at 21"
$ftpuser = "anonymous"
$ftppass = "me@nowhere.invalid"
$ftpbin = "bin"
$ftplocalpath ="lcd $ENV:TEMP"
$ftpcommand1 = "get $ftpfile1 $outpath1"
$ftpcommand2 = "get $ftpfile2 $outpath2"
$ftpcommand3 = "get $ftpfile3 $outpath3"
$ftpbye ="bye"
 
Remove-Item $ftpfile
$ftpserver | Add-Content -Path $ftpfile
$ftpuser | Add-Content -Path $ftpfile
$ftppass | Add-Content -Path $ftpfile
$ftpbin | Add-Content -Path $ftpfile
$ftplocalpath | Add-Content -Path $ftpfile
$ftpcommand1 | Add-Content -Path $ftpfile
$ftpcommand2 | Add-Content -Path $ftpfile
$ftpcommand3 | Add-Content -Path $ftpfile
$ftpbye | Add-Content -Path $ftpfile
 
#start ftp download
 
Start-Process "ftp.exe" -ArgumentList "-s:$ftpfile"
 
#install checkpoint vpn client
 
Start-Process msiexec.exe -ArgumentList "/i $outpath1 /qn" 
 
#install parallels client
 
Start-Process msiexec.exe -ArgumentList "/i $outpath2 /qn" 

ftp://ftp.bmd.at/BMDASP/Parallels-Client-Settings-32Bit-Farbtiefe-Std-f%FCr-Windows10.2xc

ftp://ftp.bmd.at/BMDASP/CheckPointVPN.msi

ftp://ftp.bmd.at/BMDASP/Parallels-Client-x64.msi

bmdasp.1601924216.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki