VBScript – Correlating remote file usage with remote session

Home Forums Scripting General Scripting VBScript – Correlating remote file usage with remote session

Viewing 1 post (of 1 total)
  • Author
    Posts

  • humbletech99
    Member
    #129582

    I have some VBScript which can query the remote sessions on a server to tell me what users are connected from which computers (like net session). It can also tell me which users are using which files (like net file).

    The problem is, I’m not sure how to correlate the two so that I can show which user is using which file from which machine. The sessions give me only user and computer, the files give me only user and path.

    If a user has a session on the server from two or more machines, I can’t just make assumptions and look up the user session by user name.

    I am so far using the WinNT ADSI provider to get this information. I’m open to ideas on how I should be doing this, I first thought of WMI (since nearly all roads seem to end here) but couldn’t see a way of enumerating this from there so went back to ADSI, I know ADSI can do some things that WMI can’t (and vice versa of course).

    If anyone has any ideas, I’m open to them.

    Thanks.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Don't leave your business open to attack! Come learn how to protect your AD in this FREE masterclass!REGISTER NOW - Thursday, December 2, 2021 @ 1 pm ET

Active Directory (AD) is leveraged by over 90% of enterprises worldwide as the authentication and authorization hub of their IT infrastructure—but its inherent complexity leaves it prone to misconfigurations that can allow attackers to slip into your network and wreak havoc. 

Join this session with Microsoft MVP and MCT Sander Berkouwer, who will explore:

  • Whether you should upgrade your domain controllers to Windows Server
    2019 and beyond
  • Achieving mission impossible: updating DCs within 48 hours
  • How to disable legacy protocols and outdated compatibility options in
    Active Directory

Sponsored by: