Skip to content

Commit 7fcdd2f

Browse files
committed
full path for powershell
1 parent 0aa5318 commit 7fcdd2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

psa/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static void Main()
1111
{
1212
StartInfo =
1313
{
14-
FileName = @"C:\Windows\System32\WindowsPowerShell\v1.0",
14+
FileName = @"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe",
1515
UseShellExecute = true,
1616
Verb = "runas",
1717
Arguments = $"-noexit -command \"cd '{Directory.GetCurrentDirectory()}'\" "

0 commit comments

Comments
 (0)