This repository was archived by the owner on May 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ DisableSearchAppInStore # EnableSearchAppInStore
126
126
DisableNewAppPrompt # EnableNewAppPrompt
127
127
# HideRecentlyAddedApps # ShowRecentlyAddedApps
128
128
# HideMostUsedApps # ShowMostUsedApps
129
+ # SetWinXMenuPowerShell # SetWinXMenuCmd
129
130
# SetControlPanelSmallIcons # SetControlPanelLargeIcons # SetControlPanelCategories
130
131
DisableShortcutInName # EnableShortcutInName
131
132
# HideShortcutArrow # ShowShortcutArrow
Original file line number Diff line number Diff line change @@ -1901,6 +1901,26 @@ Function ShowMostUsedApps {
1901
1901
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" - Name " NoStartMenuMFUprogramsList" - ErrorAction SilentlyContinue
1902
1902
}
1903
1903
1904
+ # Set PowerShell instead of Command prompt in Start Button context menu (Win+X) - Default since 1703
1905
+ Function SetWinXMenuPowerShell {
1906
+ Write-Output " Setting PowerShell instead of Command prompt in WinX menu..."
1907
+ If ([System.Environment ]::OSVersion.Version.Build -le 14393 ) {
1908
+ Set-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" - Name " DontUsePowerShellOnWinX" - Type DWord - Value 0
1909
+ } Else {
1910
+ Remove-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" - Name " DontUsePowerShellOnWinX" - ErrorAction SilentlyContinue
1911
+ }
1912
+ }
1913
+
1914
+ # Set Command prompt instead of PowerShell in Start Button context menu (Win+X) - Default in 1507 - 1607
1915
+ Function SetWinXMenuCmd {
1916
+ Write-Output " Setting Command prompt instead of PowerShell in WinX menu..."
1917
+ If ([System.Environment ]::OSVersion.Version.Build -le 14393 ) {
1918
+ Remove-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" - Name " DontUsePowerShellOnWinX" - ErrorAction SilentlyContinue
1919
+ } Else {
1920
+ Set-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" - Name " DontUsePowerShellOnWinX" - Type DWord - Value 1
1921
+ }
1922
+ }
1923
+
1904
1924
# Set Control Panel view to Small icons (Classic)
1905
1925
Function SetControlPanelSmallIcons {
1906
1926
Write-Output " Setting Control Panel view to small icons..."
You can’t perform that action at this time.
0 commit comments