View Single Post
Old 11-16-2006   #1 (permalink)
robw


 
 

"Permission Denied" when invoking PowerShell

I want to create a PowerShell equivilent of "cmd here", so I added the
following to the registry:

key: HKEY_CLASSES_ROOT\Directory\shell\ps
value: Open PowerShell Here

key: HKEY_CLASSES_ROOT\Directory\shell\ps\command
value: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit
-command "& {set-location %L}"

In theory, this should work. But what happens is that when I try to use it
(i.e. right-click on a folder and select "PowerShell here", I get a diaglog
box with the error message "permission denied". Any ideas how I can make
this work?
My System SpecsSystem Spec