@@ -198,18 +198,18 @@ Write-Host "Finished installing powertoys!"
198
198
$TaskbarLocation = $Host.UI.PromptForChoice (" Move taskbar?" , " (Default N)" , @ (" &Y" , " &N" ), 1 )
199
199
if ($TaskbarLocation -eq 0 ) {
200
200
$Location = $Host.UI.PromptForChoice (" Where should the taskbar go?" , " (Default Bottom)" , @ (" Bottom" , " &Top" , " &Left" , " &Right" ), 0 )
201
- $bit = 0 ;
202
- switch ($Location ) {
203
- 2 { $bit = 0x00 } # Left
204
- 3 { $bit = 0x02 } # Right
205
- 1 { $bit = 0x01 } # Top
206
- 0 { $bit = 0x03 } # Bottom
207
- }
208
- $Settings = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 - Name Settings).Settings
209
- $Settings [12 ] = $bit
210
- Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 - Name Settings - Value $Settings
211
- Write-Host " Taskbar moved, restarting explorer"
212
- Get-Process explorer | Stop-Process
201
+ $bit = 0 ;
202
+ switch ($Location ) {
203
+ 2 { $bit = 0x00 } # Left
204
+ 3 { $bit = 0x02 } # Right
205
+ 1 { $bit = 0x01 } # Top
206
+ 0 { $bit = 0x03 } # Bottom
207
+ }
208
+ $Settings = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 - Name Settings).Settings
209
+ $Settings [12 ] = $bit
210
+ Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 - Name Settings - Value $Settings
211
+ Write-Host " Taskbar moved, restarting explorer"
212
+ Get-Process explorer | Stop-Process
213
213
}
214
214
# end script
215
215
Read-Host " Script Finished, press enter to exit"
0 commit comments