-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWin10RegistryEditor.ps1
195 lines (150 loc) · 5.43 KB
/
Win10RegistryEditor.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# YOOHOO! IF YOU WANNA EDIT THIS CLONE IT FROM GITHUB!
write-output "Win10Reg"
function BKC
{
$BKE = Test-Path -Path $env:USERPROFILE\APPDATA\Blondekid
IF ($BKE = "$true") {
Write-output "File check passed"
HOME
} ELSE {
New-Item -Path $env:USERPROFILE\APPDATA\Blondekid -Name "Blondekid" -ItemType "directory"
Write-Output "Directory Created"
HOME
}
}
function HOME
{
Write-output "=========================="
Write-Host "Pick A Program"
Write-output "=========================="
Write-Host " 1 = Hilight Editor"
Write-Host " 2 = Custom Control Panel Function"
Write-Host " 3 = Disable Cortana"
Write-Host " 4 = Custom CMD Font"
Write-Host " 5 = Disable Windows Update Force Reboot"
Write-Host " H = Help Menu"
Write-output "=========================="
$op1 = Read-Host "Pick an option: "
write-output $op1
if ($op1 -eq "1"){
HLE
}
elseif ($op1 -eq "2"){
ctrlpnl
}
elseif ($op1 -eq "3"){
cortana
}
elseif ($op1 -eq "4"){
bruh
}
elseif ($op1 -eq "5"){
WUFR
}
elseif ($op1 -eq "H"){
HELP
}
else {
Write-Output "Thats not a valid option :/"
pause
clear
home
}
}
function HLE
{
Write-Host "Enter the RGB Values: 0 - 255"
$HLER = Read-Host "What is the Red Value: "
$HLEG = Read-Host "What is the Green Value: "
$HLEB = Read-Host "What is the Blue Value: "
Write-Host "Red = $HLER, Green = $HLEG, Blue = $HLEB, Correct?"
pause
Set-Itemproperty -Path 'HKCU:\Control Panel\Colors' -Name 'Hilight' -Value "$HLER $HLEG $HLEB"
Write-Host "Completed!"
pause
clear
HOME
}
function Cortana
{
$op2 = Read-Host = "Disable Cortana [Y/N]"
If ($op2 -eq "Y")
{
Set-ItemProperty -Path 'HKCM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'AllowCortana' -Value "00000000"
Write-Output "Jobs Done!"
pause
clear
home
} else {
clear
HOME
}
}
function CtrlPnl
{
$Guid = New-Guid
$CPLName = Read-Host "Enter the Name"
$CPLDesc = Read-Host "Enter a Description"
$CPLCom = Read-Host "Enter .exe path or Batch/PS command"
$IconPath = Read-Host "Path to Icon"
Write-Host "Begin Import"
pause
Set-Location -Path "Registry::HKEY_CLASSES_ROOT"
New-Item -Path "Registry::HKEY_CLASSES_ROOT\CLSID\" -Name "{$Guid}"
New-ItemProperty "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}" -Name "(Default)" -Value "$CPLName" -PropertyType "String"
New-ItemProperty "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}" -Name "InfoTip" -Value "$CPLDesc" -PropertyType "String"
New-Item -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}" -Name "DefaultIcon"
New-ItemProperty "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}\DefaultIcon" -Name "(Default)" -Value "$IconPath" -PropertyType "String"
New-Item -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}" -Name "Shell"
New-Item -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}\Shell" -Name "Open"
New-Item -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}\shell\Open" -Name "Command"
New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{$Guid}\shell\Open\Command" -Name "(Default)" -Value "$CPLCom" -PropertyType "String"
New-Item -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\" -Name "{$Guid}"
New-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{$Guid}" -Name "(Default)" -Value "$CPLName" -PropertyType "String"
Write-Output "Keys succesfully created!"
pause
clear
HOME
}
function WUFR
{
New-Item -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows" -Name "WindowsUpdate"
New-Item -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\" -Name "AU"
New-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -Value "1" -PropertyType "DWord"
Write-Output "Done!"
Write-Output "If a key already exists, it wont overwrite, just ignore the error"
pause
clear
home
}
function CCMD
{
}
function bruh
{
write-output "Not done yet..."
pause
clear
home
}
function HELP
{
ECHO "======================================="
ECHO "CHECK OUT THE README!"
ECHO "======================================="
ECHO "Hilight Editor - A tool that edits the way text is hilighted, Like on your desktop icons and text."
ECHO "======================================="
ECHO "Custom control panel function - Adds a custom control panel function that does what you define."
ECHO "======================================="
ECHO "Disable Cortana - Truly Disables Cortana :)"
ECHO "======================================="
ECHO "Custom CMD Font - Takes a .TTF You Define and loads it into the command prompt."
ECHO "======================================="
ECHO "Stop WU Force Reboot - Disables Windows Update from forcibly rebooting"
ECHO "======================================="
pause
clear
home
}
#Execute the function
BKC