forked from cloudbase/unattended-setup-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeployTools.ps1
31 lines (25 loc) · 1.75 KB
/
DeployTools.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$toolsdir = "C:\Tools"
mkdir $toolsdir
cd $toolsdir
$filename = "7z922-x64.msi"
Invoke-WebRequest -uri "http://freefr.dl.sourceforge.net/project/sevenzip/7-Zip/9.22/7z922-x64.msi" -outFile $filename
Start-Process -Wait msiexec.exe -ArgumentList "/i $filename /qn"
#del $filename
$filename="Win32OpenSSL_Light-1_0_1L.exe"
Invoke-WebRequest -Uri "http://slproweb.com/download/$filename" -OutFile $filename
Start-Process -Wait -FilePath $filename -ArgumentList "/silent /verysilent /sp- /suppressmsgboxes"
#del $filename
$filename = "npp.6.4.5.Installer.exe"
Invoke-WebRequest -uri "http://download.tuxfamily.org/notepadplus/6.4.5/npp.6.4.5.Installer.exe" -outFile $filename
Start-Process -Wait -FilePath $filename -ArgumentList "/S"
#del $filename
setx /m PATH "$ENV:PATH;$ENV:ProgramFiles (x86)\Notepad++"
Invoke-WebRequest -uri "https://dl.dropboxusercontent.com/u/9060190/wget.exe" -OutFile "wget.exe"
Invoke-WebRequest -uri "http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe" -OutFile "putty.exe"
Invoke-WebRequest -uri "http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe" -OutFile "pscp.exe"
$filename = "PSWindowsUpdate.zip"
Invoke-WebRequest -Uri "http://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc/file/41459/25/PSWindowsUpdate.zip" -OutFile $filename
& "C:\Program Files\7-Zip\7z.exe" x -oC:\Windows\System32\WindowsPowerShell\v1.0\Modules $filename
#del $filename
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/lospringliu/unattended-setup-scripts/master/UpdateAndSysprep.ps1" -OutFile "$ENV:SYSTEMROOT\Temp\UpdateAndSysprep.ps1"
Invoke-WebRequest -uri "https://raw.githubusercontent.com/lospringliu/unattended-setup-scripts/master/Unattend.xml" -OutFile "$ENV:SYSTEMROOT\Temp\Unattend.xml"