-
Notifications
You must be signed in to change notification settings - Fork 280
/
f8x.ps1
76 lines (64 loc) · 2.85 KB
/
f8x.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# ======================== !! NOTE !! ========================
# ________ ________ ________ ________ ________ ________ ________ ________ ________ ___ ___
# |\ _____\\ _____\\ _____\\ _____\\ _____\\ _____\\ _____\\ _____\\ __ \ |\ \ / /|
# \ \ \__/\ \ \__/\ \ \__/\ \ \__/\ \ \__/\ \ \__/\ \ \__/\ \ \__/\ \ \|\ \ \ \ \/ / /
# \ \ __\\ \ __\\ \ __\\ \ __\\ \ __\\ \ __\\ \ __\\ \ __\\ \ \\\ \ \ \ / /
# \ \ \_| \ \ \_| \ \ \_| \ \ \_| \ \ \_| \ \ \_| \ \ \_| \ \ \_| \ \ \\\ \ / \/
# \ \__\ \ \__\ \ \__\ \ \__\ \ \__\ \ \__\ \ \__\ \ \__\ \ \_______\/ /\ \
# \|__| \|__| \|__| \|__| \|__| \|__| \|__| \|__| \|_______/__/ /\ __\
# |__|/ \|__|
# 注: 该脚本仅用于安装基础软件
# Note: This script is only used to install the base software
# To execute this script:
# 1) Open powershell window as administrator
# 2) Allow script execution by running command "set-ExecutionPolicy Unrestricted"
# 3) running "curl -o f8x.ps1 https://f8x.io/ps1"
# 4) Unblock the install script by running "Unblock-File .\f8x.ps1"
# 5) Execute the script by running ".\f8x.ps1"
param (
[string]$chrome_link = "http://dl.google.com/chrome/install/375.126/chrome_installer.exe"
)
function Banner {
Write-Host " _______ ___ ___ ___ "
Write-Host " | ____| / _ \ \ \ / / "
Write-Host " | |__ | (_) | \ V / "
Write-Host " | __| > _ < > < "
Write-Host " | | | (_) | / . \ "
Write-Host " |__| \___/ /__/ \__\ "
}
function chocolatey-install {
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
function chrome-install {
Write-Host "Installing chrome"
$Path = $env:TEMP; $Installer = "chrome_installer.exe";
Invoke-WebRequest $chrome_link -OutFile $Path\$Installer;
Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait;
Remove-Item $Path\$Installer
Write-Host "Successfully installed chrome"
}
Banner
# chrome-install
chocolatey-install
# proxy
# choco config set proxy <locationandport>
# update
choco outdated
# base_install
# https://community.chocolatey.org/packages
choco install -y notepadplusplus.install
choco install -y 7zip.install
# choco install -y jdk8
choco install -y jdk11
choco install -y python3
# choco install -y git
# choco install -y 010editor.install
choco install -y everything
# choco install -y firefox
choco install -y wireshark
choco install -y go
choco install -y vscode
choco install -y processhacker
choco install -y psexec
choco install -y procexp
choco install -y googlechrome