Search found 7 matches

by MrShortcut
30 May 2011 10:33
Forum: DOS Batch Forum
Topic: Determine if Process is stuck at "starting"
Replies: 9
Views: 8048

Re: Determine if Process is stuck at "starting"

I wasn't aware of those options. I was able to use the tasklist using the following (just need to find one stuck at starting to see if it records accurately) but cant quite figure out how to use the WMIC feature correctly.

Code: Select all

tasklist /s 10.11.2.34 /v /fi "SERVICES eq JDATSP"
by MrShortcut
29 May 2011 22:05
Forum: DOS Batch Forum
Topic: Determine if Process is stuck at "starting"
Replies: 9
Views: 8048

Determine if Process is stuck at "starting"

I have a batch that uses the following code to query the JDATSP process which has been useful in finding out when the process is stopped. However I have been finding that sometimes the results show the process is "Running" when the process is stuck at "starting" according to serv...
by MrShortcut
25 May 2011 12:13
Forum: DOS Batch Forum
Topic: How to run as username
Replies: 9
Views: 7895

Re: How to run as username

Thanks Ed. I'm not sure they'll like me copying a batch file to the workstation (even temporarily) so I'll keep searching. I'll keep it in mind in case they OK it or it can be added to a different task.
by MrShortcut
24 May 2011 21:51
Forum: DOS Batch Forum
Topic: How to run as username
Replies: 9
Views: 7895

Re: How to run as username

I guess this wont work then. I'm assuming that since the machine isn't mapped to my PC I wouldn't be able to get the results added to the log?
by MrShortcut
24 May 2011 21:31
Forum: DOS Batch Forum
Topic: How to run as username
Replies: 9
Views: 7895

Re: How to run as username

Well a batch can be run from a workstation and get or change it's privileges to that of for example an administrator that must exist on that workstation. It can connect to another workstation but if the credintials don't match, they have to be supplied by the batch. It can then run a batch on that ...
by MrShortcut
24 May 2011 21:09
Forum: DOS Batch Forum
Topic: How to run as username
Replies: 9
Views: 7895

Re: How to run as username

the runas /? command may help u . I've tried each variation I can but cannot get it to work. Instead of connecting to the remote computer and then trying to run the batch commands as the specified user it instead tries to run it as that user on my workstation (which doesn't exist). Am I trying to d...
by MrShortcut
24 May 2011 17:57
Forum: DOS Batch Forum
Topic: How to run as username
Replies: 9
Views: 7895

How to run as username

I have to find a way to easily verify that hundreds of stations rebooted within the last 24 hours. Unfortunately they do not support PSEXEC so I have to come up with a new script. With what very limited knowledge I have I found the following script and was able to easily compile and incorporate the ...