Command Prompt equivalent of COMPMGMT.MSC - WITHOUT RPC

0

I am looking query the active sessions to a network share on a server from the command line.

The Computer Management snap-in is able to access this server on our SAN and provide a list of users, the connected machine, and how long it has been connected.

The command-line equivalent of this is through Powershell and WMI using:

Get-WmiObject Win32_ServerConnection -ComputerName SERVERNAME | Select-Object ShareName,User Name,ComputerName

However, if it try this command against the server on our SAN I get:

Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

Connection to the same server through COMPMGMT.MSC encounters no problems.

The server does not have RPC available - the connection is allowed through IPC.

Therefore, how does COMPMGMT.MSC communicate over IPC to get this information, and can this be replicated from the command line to get the information in a table that can be parsed from Powershell?

windows
asked on Server Fault Oct 4, 2017 by user438255

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0