mirror of
https://github.com/m-lamonaca/script-launcher.git
synced 2025-04-19 14:36:27 +00:00
fix: start powershell without user profile
This commit is contained in:
parent
55a240e015
commit
191d4eb9f5
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ internal static class ScriptExecutor
|
|||
".ps1" => new ProcessStartInfo
|
||||
{
|
||||
FileName = "powershell.exe",
|
||||
Arguments = $"-ExecutionPolicy Bypass -File .\\{file.Name}",
|
||||
Arguments = $"-NoProfile -ExecutionPolicy Bypass -File .\\{file.Name}",
|
||||
Verb = elevated ? "runas /user:Administrator" : string.Empty,
|
||||
WorkingDirectory = file.DirectoryName
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue