Skip to content

Instantly share code, notes, and snippets.

@jsakamoto
Last active Dec 22, 2015
Embed
What would you like to do?
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