-
I've made script for running a script with any number of parameters in the back ground. I've registered the StateChanged event for the job, and the script Writes Start, Stop and elapsed time after the job terminates. I'm using the script 'Register-TemporaryEvent.ps1' from Windows...
-
I´m trying to run small and simple Jobbing Script on a Window Server 2003 R2, but after i´ve invoked the start-job cmdlet, the Job starts and stuck in the state "Running". For Example i try start-job -ScriptBlock {Get-Process} but the Job never Ends. Do you know if i need some Windows...
-
I have a need to copy files from a remote server to another server that will be a scheduled task to run every hour. The files can be quite large so I found that 'robocopy' is the better utility for this case. I have read the post for how to utilize it within powershell and it works great locally...
Posted to
PowerShell for Windows
(Forum)
by
squeekie
on
10-24-2011
Filed under: Start-Job Background, powershell, file, powershell pssession, pssession, winrm, Windows Server 2003, Directory listing, remote server, server, Robocopy, PS-Remote
-
Background: I'm using PowerShell to automate a legacy build process. There are a couple .bat files I need to invoke and would like to run them in parallel. They end with a "Pause" command, so I need to supply input in order for the jobs to complete. I can invoke the .bat files serially...