Skip to content

Commit

Permalink
fix: don't open .ps1 with powershell by default
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 4, 2024
1 parent baeb179 commit 2a3c318
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/playbook/Configuration/tweaks/qol/config-powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ actions:
# Disable PowerShell Core telemetry
- !cmd: {command: 'setx POWERSHELL_TELEMETRY_OPTOUT 1'}

# Set .ps1 file types to open with PowerShell by default
# Pre-requisite to setting assosiations (FILEASSOC.cmd)
- !cmd: {command: 'ftype Microsoft.PowerShellScript.1="%windir%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -EP Unrestricted -File "%1" %*'}

# Set PowerShell execution policy to Unrestricted
- !registryValue:
path: 'HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell'
Expand Down

0 comments on commit 2a3c318

Please sign in to comment.