Announcement

Collapse
No announcement yet.

Machine Logon and Info

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Machine Logon and Info

    I do not have a ton of experience with batch files, so this may seem stupid. Does anyone know how I would be able to combine the logon as utility in this section.
    net use \\%E%\ipc$ /user:administrator *

    With the PSList tool? Either all in one command line, or within a batch file.

    IDM_TOOL5=PSLIST
    IDM_TOOLCMD5=cmd.exe /x /c \\server\tools\pslist.exe \\%E% & pause

    Any ideas?

  • #2
    Re: Machine Logon and Info

    You should be able to put it in as:

    net use \\%E%\ipc$ /user:administrator * & cmd.exe /x /c \\server\tools\pslist.exe \\%E% & pause

    The & character will cause it to run each command one at a time.

    Comment


    • #3
      Re: Machine Logon and Info

      I tried the command and the dos window opens, but closes right away. It didn't prompt me for the admin password like the logon utility did, so not sure where it is going. I did modify the command for the pclist tool and set that to output to a text file. I tried adding that onto the tool you gave me and it still isn't creating anything, so I am thinking it is bombing out before that. Any ideas with that "&" sign or something else that might be cause this?

      <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body">Originally posted by cmccullough:
      <span style="font-weight: bold">You should be able to put it in as:

      net use \\%E%\ipc$ /user:administrator * & cmd.exe /x /c \\server\tools\pslist.exe \\%E% & pause

      The & character will cause it to run each command one at a time.</span></div></div>

      Comment


      • #4
        Re: Machine Logon and Info

        Sorry about that...try it like this:

        cmd /x /c net use \\%E%\ipc$ /user:administrator * & \\server\tools\pslist.exe \\%E% & pause

        Let me know if that one works.

        Comment


        • #5
          Re: Machine Logon and Info

          Closer, but not quite. Now I am getting an error that the system could not find the path specified, but the path is the same as it is in the pclist tool. I'm wondering if it's running into trouble with the net use utility. Any ideas?

          <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body">Originally posted by cmccullough:
          <span style="font-weight: bold">Sorry about that...try it like this:

          cmd /x /c net use \\%E%\ipc$ /user:administrator * & \\server\tools\pslist.exe \\%E% & pause

          Let me know if that one works.</span></div></div>

          Comment


          • #6
            Re: Machine Logon and Info

            Make sure the path is correct for the location of pslist.exe. You might even copy it to your c:\ and change the command line to find it there.

            I ran it again just now and it worked fine. I have my copy of pslist.exe local on the computer Hyena is on.

            Comment

            Working...
            X