16 lines
765 B
PowerShell
16 lines
765 B
PowerShell
|
$date = Get-Date -Format "yyyy-MM-dd HH:mm"
|
||
|
|
||
|
"$date Start Run" | Out-File 'C:\logs\customize.log' -Append
|
||
|
$date = Get-Date -Format "yyyy-MM-dd HH:mm"
|
||
|
"$date create install dir" | Out-File 'C:\logs\customize.log' -Append
|
||
|
New-Item -Path "c:\" -Name "install" -ItemType "directory"
|
||
|
$date = Get-Date -Format "yyyy-MM-dd HH:mm"
|
||
|
"$date download firefox" | Out-File 'C:\logs\customize.log' -Append
|
||
|
Invoke-WebRequest -Uri "https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=de" -OutFile "c:\install\firefox.exe"
|
||
|
$date = Get-Date -Format "yyyy-MM-dd HH:mm"
|
||
|
"$date install firefox" | Out-File 'C:\logs\customize.log' -Append
|
||
|
c:\install\firefox -ms
|
||
|
|
||
|
$date = Get-Date -Format "yyyy-MM-dd HH:mm"
|
||
|
"$date Finish Run" | Out-File 'C:\logs\customize.log' -Append
|