This repository was archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_Install_Productivity_Applications.ps1
More file actions
96 lines (85 loc) · 2.69 KB
/
Copy path2_Install_Productivity_Applications.ps1
File metadata and controls
96 lines (85 loc) · 2.69 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#############################################
# 2. Install Productivity Applications
# by Josh Cooper
#############################################
Write-Host "Installing Productivity Applications..." -ForegroundColor Black -BackgroundColor Yellow
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator and continue."
$length = 5
for ($i = 1; $i -le $length; $i++) {
$j = $length - $i
Write-Host "Elevating in $j seconds..." -ForegroundColor white -BackgroundColor darkred
Start-Sleep 1
}
Write-Host #ends the line after loop
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs;
exit
}
#no errors throughout
$ErrorActionPreference = 'silentlycontinue'
$LogFolder = "C:\Temp\SetupScripts\ProdApps"
If (Test-Path $LogFolder) {
Write-Output "$LogFolder exists. Skipping."
}
Else {
Write-Output "The folder '$LogFolder' doesn't exist. This folder will be used for storing logs created after the script runs. Creating now."
Start-Sleep 1
New-Item -Path "$LogFolder" -ItemType Directory
Write-Output "The folder $LogFolder was successfully created."
}
Start-Transcript -OutputDirectory "$LogFolder"
Function InstallAppsWithChoco {
Write-Host "Installing Applications..."
$Apps = @(
"7zip.install",
"git",
"git-lfs",
"hashtab",
"googlechrome", ,
"firefox",
"vlc",
"ffmpeg",
"wget",
"openssl.light",
"sysinternals",
"notepadplusplus.install",
"winscp.install",
"sharex",
"powertoys",
"malwarebytes",
"insomnia-rest-api-client",
"glasswire",
"audacity",
"audacity-lame",
"handbrake",
"qbittorrent",
"discord",
"putty.install",
"wireshark",
"winpcap",
"cpu-z.install",
"gpu-z",
"coretemp",
"rufus",
"sdformatter",
"obs-studio",
"arduino",
"itunes",
"gimp",
"blender",
"pandoc",
"rsvg-convert",
"python",
"miktex",
"xampp-80"
)
foreach ($app in $Apps) {
choco install $app -y
}
}
Write-Host "Using Choco Install..." -BackgroundColor Magenta -ForegroundColor White
InstallAppsWithChoco
Start-Sleep 1
Write-Host "Using Choco Install (for pre-release apps)..." -BackgroundColor Magenta -ForegroundColor White
InstallPreReleaseApps
Start-Sleep 1