start-process

PowerShell - Start-Process and Cmdline Switches

I can run this fine: $msbuild = "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe" start-process $msbuild -wait But when I run this code (below) I get an error: $msbuild = "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /v:q /nologo" start-process $msbuild -wait Is there a way I can pass parameters to MSBuild using start-...

"The directory name is invalid" error on Process.Start?

I am writing a launcher program, and when I go to start the process I get the "The directory name is invalid" error. Here is the code that is launching the process: Const DEBUG_ROOT = _ "Z:\Kiosk_JC\KioskSignIn.root\KioskSignIn\KioskSignIn\KioskSignIn\bin\Debug" Dim oKiosk As New System.Diagnostics.Process oKiosk.StartInfo.UserName =...

How to start a console-based process and apply a custom title using Powershell

I am converting an old cmd command to Powershell, and currently use: START "My Title" Path/To/ConsoleApp.exe This works as expected to launch ConsoleApp with My Title as it's window title. This has been replaced with Start-Process which works correctly, but does not provide a mechanism to change the title. Is there another way to do ...

Start non-elevated process from elevated process

Hi My program running as an elevated process, and starting new processes with Process.Start(). For security reasons, I would like to run those new processes as non-elevated. How to do that? ...