Windows 10 right-click menu how to add "PowerShell script new item"?

  
                

Windows PowerShell is an important tool for Windows 10 systems. With PowerShell, we can perform various Windows deep operations. Under normal circumstances, users will use PowerShell ISE to create a script file with a .ps1 extension, or write code through a common tool such as Notepad, and then create an extension file to create a PowerShell script file, but these methods are too much trouble. If you can right-click to create a new PowerShell script file, it is much more convenient. The following small series for everyone to share the Windows10 right-click menu to add "PowerShell script new item" operation method.

following steps:

1, the input in the search bar Cortana regedit, press enter into the registry editor;

2, is positioned to: HKEY_CLASSES_ROOT \\. PS1, New item ShellNew;

3, NullFile new string value, the data value is left blank, indicating empty new project file;


4, in file Explorer or right-click directly on the desktop, the new project should have & ldquo; Windows PowerShell script & rdquo ;;


6, modified with immediate effect, if not the first brush Come out, it should come out a few times. Double-click the newly created script file and open it with Notepad by default. Of course you can also use PowerShell ISE to edit, it might be better to use some, but the startup is a bit slow.

These are the Windows10 right-click menu to add & ldquo; PowerShell script New Item & rdquo; method, often need to create PowerShell scripts friends, and quickly add the feature it!

Copyright © Windows knowledge All Rights Reserved