Skip to content

Instantly share code, notes, and snippets.

@jsakamoto
Last active December 22, 2015 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsakamoto/e0beaad05ab8214dcc03 to your computer and use it in GitHub Desktop.
Save jsakamoto/e0beaad05ab8214dcc03 to your computer and use it in GitHub Desktop.
Enable .ps1 file in "New" items on Windows Explorer folder context menu.
# Enable .ps1 file in "New" items on Windows Explorer folder context menu.
# LICENSE - [The Unlicense](http://unlicense.org/UNLICENSE)
New-PSDrive -name HKCR -PSProvider Registry -root HKEY_CLASSES_ROOT
New-Item HKCR:\.ps1\ShellNew
New-ItemProperty HKCR:\.ps1\ShellNew NullFile -propertyType String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment