cloudsoft / winrm4j

Apache License 2.0
94 stars 53 forks source link

Is session id manipulation possible with winrm4j? #169

Open indradeshmukh opened 1 year ago

indradeshmukh commented 1 year ago

Each time we launch a new command using winrm4j library APIs - a process winrshost starts up with provided user and in session 0. The provided command is ran under it as child processes with same user and session id.

Is it possible for us to manipulate -

  1. EITHER : the session id in which winrshost process starts in. Like instead of having the reserved session number 0, can we start the process in a actual user session having id > 0?
  2. OR : launch the parent winrshost in NT AUTHORITY/SYSTEM user?