-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.ps1
More file actions
34 lines (29 loc) · 898 Bytes
/
local.ps1
File metadata and controls
34 lines (29 loc) · 898 Bytes
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
Add-Type -AssemblyName Microsoft.VisualBasic
# Show an options menu
$option = [Microsoft.VisualBasic.Interaction]::InputBox(
"Choose an option:`n1 - Run Windows Utility Setup`n2 - Open Microsoft Setup Assistant",
"Choose Setup Option",
"1"
)
switch ($option) {
"1" {
# Option 1: Run Chris Titus Tech Setup
$confirm = [Microsoft.VisualBasic.Interaction]::MsgBox(
"Do you want to run the Windows Utility Setup from Chris Titus Tech?",
"YesNo,Question",
"Confirm Setup"
)
if ($confirm -eq "Yes") {
irm "https://christitus.com/win" | iex
} else {
Write-Host "Operation cancelled."
}
}
"2" {
# Option 2: Open Microsoft Setup Assistant
Start-Process "ms-cxh:localonly"
}
Default {
Write-Host "Invalid option or cancelled."
}
}