Have a PowerShell prompt accessible via right click makes more and more sense. Previously most admin tasks were done through command line so a command prompt here was the way to go, but more and more commands works best via PowerShell so this post will teach you How to Add PowerShell Prompt Here to a Folder .
The latest PowerShell version is v 5.0 (build 10586 rev. 51) was introduced recently as a part of the final version (RTM) of Windows Management Framework 5.0. This release includes updates to Windows PowerShell, Windows PowerShell Desired State Configuration (DSC), Windows Remote Management (WinRM), Windows Management Instrumentation (WMI). You can check the download page here. Note that you shall pick only the MSU which is relative to the management station you're using.
If for example you're on Windows 8.1 you'll pick up just the W2K12R2-KB3094174-x64.msu
There are different MSUs for Windows Server 2012 R2, Windows Server 2012, Windows 2008 R2, Windows 8.1, and Windows 7 SP1….
Let's get back to our PowerShell Prompt Here. It's fairly simple. You'll need to head to Scott Haselman's blog where you can download an Powershellhere.inf file.
Then simply do a right click > install > done!
Then you'll see an option when right clicking a folder to open PowerShell Window…
And then you'll get directly PowerShell Window. Note that you must have installed PowerShell in the default directory, because if you've installed your PowerShell to another folder other than the default, you'll need to edit the *.inf file manually with the path you need…
Just for information on how to prepare for installation of Windows Management Framework 5.0 RTM:
- Download the correct package for your operating system and architecture. The following architectures are supported.
- Windows Server 2012 R2
- x64: W2K12R2-KB3094174-x64.msu
- Windows Server 2012
- x64: W2K12-KB3094175-x64.msu
- Windows Server 2008 R2 SP1
- x64: W2K8R2-KB3094176-x64.msu
- Windows 8.1
- x64: W2K12R2-KB3094174-x64.msu
- x86: Win8.1-KB3094174-x86.msu
- Windows 7 SP1
- x64: W2K8R2-KB3094176-x64.msu
- x86: Win7-KB3094176-x86.msu
- Windows Server 2012 R2
- Close all Windows PowerShell windows.
- Instructions specific to Windows 7 SP1 and Windows Server 2008 R2 SP1
- Ensure following prerequisites have been met:
- Latest service pack is installed.
- WMF 4.0 is installed.
- WinRM Dependency:
- Windows PowerShell Desired State Configuration (DSC) depends on WinRM. WinRM is not enabled by default on Windows 7 and Windows Server 2008 R2. To enable WinRM, in a Windows PowerShell elevated session, run Set-WSManQuickConfig.
- Ensure following prerequisites have been met:
Sources:
- Scott Hanselman's blog
- Microsoft's download page for Windows Management Framework 5.0