Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hyperv/tools/hypestv/src/windows/hyperv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn hvc_output(
}

pub fn powershell_script(script: &str, args: &[&str]) -> anyhow::Result<String> {
let mut cmd = std::process::Command::new("powershell.exe");
let mut cmd = std::process::Command::new("pwsh.exe");
cmd.arg("-NoProfile")
.arg("-Command")
.arg(format!("&{{{script}}}"))
Expand Down
2 changes: 1 addition & 1 deletion support/powershell_builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct PowerShellBuilder(Command);
impl PowerShellBuilder {
/// Create a new PowerShell command
pub fn new() -> Self {
PowerShellCmdletBuilder(Command::new("powershell.exe"))
PowerShellCmdletBuilder(Command::new("pwsh.exe"))
.flag("NoProfile")
.finish()
}
Expand Down
Loading