How To Search And Get Job Information In Windows
A simple Windows Scripting (WS) program can help you get job information for your computer. Just about every computer has a Get-job file. When you start your computer, it will search the Get-job directory and display the list of running jobs. If there is a match to an application name, the program will display the details about the job. This article describes how to get job details for a particular computer.
To get job information for a specific computer, first create a start-job -scriptblock on the computer so that the Get-job command will be able to search for the files. The Get-job command gets applicable objects which represent the currently started jobs in the current session. You can use the Start-job or AsJob parameters of any Join command to start new jobs. Here are the examples of use for these parameters:
You can specify the program to search for Get-job and specify the parameters so that you get the details about the currently opened jobs in the current session with the specifics such as the name, Created time, Created folder, idle time, priority and so on. In case you want to specify several parameters, you can separate them using commas. The parameters of the Join command can also be specified individually. For example, to search for all background jobs in the computer, use the following start-job -script block like this: get-job | join | parameters | job | session} The parameters are usually set to the computer name or the session where the Join operation was initiated. When you use the parameters as described above, the search will run only in the specified session. It will return all matching jobs. You can search for all background jobs in the session or just specified computers.
There is another similar method to search for a particular job in the current session, which is the Invoke -job or the Get -job command. The Invoke method is similar to the parameters of Get -job command except that it allows you to specify parameters for the whole job. For example, to search for all windows in the computer, use the following start-job -script block like this: receive-job | command | send job | job} Finally, you can send job requests to one computer by the use of Send Job or Get -job commands. The method is similar to the previous ones. However, you can also specify the computer for which you would like to send a job request, by use of Send Job command like this: c:\test Test-PC.