Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : PsExec - Open CMD Remotely

$
0
0
Author: GScully
Subject: PsExec - Open CMD Remotely
Posted: 25 April 2013 at 11:30pm

I was able to accomplish something similar by specifying a sessionID
Get the session id 
$s = query user fred /server:someserver
$id = $s[1].Substring(39,5).Trim()
psexec \\servername -1 $id ... cmd /c ping something -t

Viewing all articles
Browse latest Browse all 10386

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>