This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.ps1
110 lines (78 loc) · 1.89 KB
/
setup.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
## TODO ##
#dot files
#dot files repo
#scheduled task to commit dot
#gpg key
#nordpass, spotify, adobe, teamviewer all fail checksums
# Start Transcript
Start-Transcript -Path ".\setup.log"
# Set execution policy to allow online PS scripts for this session
Write-Output "Setting Execution Policy for Session..."`n
Set-ExecutionPolicy -ExecutionPolicy 'Bypass' -Scope 'Process' -Force
# Import Module Files
Write-Output "Importing Modules..."
Import-Module ".\modules\core-functions.psm1"
Import-Module ".\modules\computer-functions.psm1"
Import-Module ".\modules\user-functions.psm1"
Import-Module ".\modules\app-functions.psm1"
Import-Module BitsTransfer
# Create some folders I use
Add-AdditionalFolders
# Set Networks to Private
Set-NetworkTypes
# Set File Explorer options
Set-ExplorerOptions
# Hide all Desktop Icons
Set-DesktopIconsHidden
# Clean Start Menu
Remove-StartMenuItems
# Clean Task Bar
Remove-TaskBarItems
# Move Home Folders to OneDrive
Move-HomeFolders
# Restart Explorer
Restart-Explorer
# Remove Bloatware Apps
Remove-BloatApps
# Dowload and install winget and dependencies
Install-WinGet
# Install My Apps with Winget
Install-MyAppsWinget
# Install Choco
Install-Choco
# Install My Apps with Choclatey
Install-MyAppsChoco
# Install Logitech Gaming Hub
Install-LGHub
# Install Elgato Wave Link
Install-WaveLink
# Install Gyazo
Install-Gyazo
# Install NordPass
Install-NordPass
# Install ChoEazy
Install-ChoEazyCopy
# Install Ryzen Master
Install-RyzenMaster
# Enable Windows Features
Enable-HyperV
Enable-AppGuard
Enable-WSL2
# Set ps1 files to open in PS7
Set-PS7Default
# Reload PATH from Environment Variables
Reset-Path
# Disable Hibernate
Disable-Hibernate
# Delete Desktop Shortcuts
Remove-DesktopShortcuts
# Restart explorer
Restart-Explorer
# Delete script files
Remove-ScriptFiles
# End Transcript
Stop-Transcript
# End Script
Show-ScriptEnding
# Restart PC
Restart-Computer