Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
PowerShell is now the defalt option on Win+X anyway, as of Windows 10 1803 at least
  • Loading branch information
tathamoddie authored Sep 16, 2018
1 parent 3bc05d5 commit 7989e4e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions New-Machine.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ if ((Get-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\A
Get-Process explorer | Stop-Process
}

Write-Progress "Enabling PowerShell on Win+X"
if ((Get-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\).DontUsePowerShellOnWinX -ne 0) {
Set-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ -Name DontUsePowerShellOnWinX -Value 0
Get-Process explorer | Stop-Process
}

Write-Progress "Making c:\code"
if (-not (Test-Path c:\code)) {
New-Item c:\code -ItemType Directory
Expand Down

0 comments on commit 7989e4e

Please sign in to comment.