Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Allow Kudu PowerShell console to execute scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebbo committed Sep 13, 2015
1 parent 7c15ba6 commit b530c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kudu.Services/Commands/PersistentCommandController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected virtual IProcess CreateProcess(string connectionId, string shell)
if (shell.Equals("powershell", StringComparison.OrdinalIgnoreCase))
{
startInfo.FileName = System.Environment.ExpandEnvironmentVariables(@"%windir%\System32\WindowsPowerShell\v1.0\powershell.exe");
startInfo.Arguments = "-File -";
startInfo.Arguments = "-ExecutionPolicy RemoteSigned -File -";
}
else
{
Expand Down

0 comments on commit b530c44

Please sign in to comment.