Instead of using pause in scripts, it is useful to me to make a script auto-exit after a set time. This is particularly useful to me as various of the ...
Instead of using pause in scripts, it is useful to me to make a script auto-exit after a set time. This is particularly useful to me as various of the ...
I have to install a Exe file silently I only have access to the devices via powershell. The installer will ask for a serial number and path can this b ...
I'm trying to remotely run this Windows Update Assistance Installer .exe and I notice that the .exe closes immediately unless I use the -wait command. ...
I'm curious to test out the performance/usefulness of asynchronous tasks in PowerShell with Start-ThreadJob, Start-Job and Start-Process. I have a fol ...
i have the following code: What i need I need to start the process with -wait as you can see, but i also need that that the window of that process ...
powershell Start-Process -WindowStyle Hidden 'C:\Program Files\Windows Media Player\wmplayer.exe' c:\windows\media\notify.wav run ok. powershell Star ...
I'm trying to run two large sort processes simultaneously. So far, I've been unable to run one of these processes in the background. Here's what I'm ...
I'll start with saying that am new to Powershell. I'm currently trying to figure out how to set an environment variable in Windows 11 using the Start- ...
I am trying to run multiple processes and then wait in the script for their execution to terminate. However, when calling $procs | Wait-Process an exc ...
We have working powershell script ran through start-process Now we should transform our code to use System.Diagnostics.Process We have no script ...
I want to run nested powershell script block, with complex type arguments. I want to pass parameters to powershell scriptblock trough encoded command ...
I have an executable file (.exe) which has to be run multiple times with different arguments in parallel (ideally on different cores) from a PowerShel ...
I want to execute the following script with complex arguments. For example with [securestring]. this script worked fine. i`m transform this script ...
My problem is that I want to Start-Process a powershell file, execute.ps1, that would execute several sql commands then log the outputs in a text file ...
I'm using powershell to start process as another user. To do this I'm using "Start-Process" as below. The problem is that the $workingPath is only ...
This is my first question on SO so here goes! I'm getting started with a simple powershell script that I intend to use to benchmark some archiving so ...
I want to start a setup.exe with one install parameter => /download example.xml When I tpye in "C:\Temp\folder\setup.exe /download example.xml" in ...
Hi, that code works in .ps1, I call the other script, and he makes his job. But when I transform it in .exe with the help of ps2exe, he doesn't do h ...
I want to pass a variable to a new console, but I don't know how. Error message: Invoke-Command : Cannot validate argument on parameter 'ComputerN ...
I executed the following three powershell commands. The first two commands returned no results, and the third command returned results. The main diffe ...