How can I open PowerShell via AutoHotkey?

Posted by Ryan on Super User See other posts from Super User or by Ryan
Published on 2012-09-25T03:52:12Z Indexed on 2012/09/26 3:40 UTC
Read the original article Hit count: 275

Filed under:
|
|

I'm running AutoHotkey 1.0.48.05 on Windows 7.

I'd like CTRL-ALT-P to open PowerShell.

This is what I have so far:

^!p::
    Run %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
Return

This is the error I get:

File C:\Users[username]\Documents\WindowsPowerShell\profile.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.

I've already set the execution policy to RemoteSigned by opening PowerShell ISE as Administrator and running Set-ExecutionPolicy RemoteSigned. (See http://technet.microsoft.com/en-us/library/ee176949.aspx)

How can I get around this problem?

© Super User or respective owner

Related posts about windows-7

Related posts about powershell