Powershell 远程桌面会话-跟踪/获取用户的当前位置

Powershell 远程桌面会话-跟踪/获取用户的当前位置,powershell,terminal,windows-server-2008-r2,remote-desktop,Powershell,Terminal,Windows Server 2008 R2,Remote Desktop,我已经使用PSTermninalServices有一段时间了,我想知道是否有可能跟踪或获取用户当前所在的位置,工作目录,远程桌面sessoin?例如,用户打开了哪些文件夹和哪些文件。这可以通过像PowerShell这样的脚本实现吗 操作系统:Windows Server 2008 R2 致以最良好的祝愿。 DA.我不知道如何使用PS,但您可以使用psfile(Mark Russinovich的优秀套件的一部分) psfile.exe [\\RemoteComputer [-u Username

我已经使用PSTermninalServices有一段时间了,我想知道是否有可能跟踪或获取用户当前所在的位置,工作目录,远程桌面sessoin?例如,用户打开了哪些文件夹和哪些文件。这可以通过像PowerShell这样的脚本实现吗

操作系统:Windows Server 2008 R2

致以最良好的祝愿。
DA.

我不知道如何使用PS,但您可以使用psfile(Mark Russinovich的优秀套件的一部分)

psfile.exe [\\RemoteComputer [-u Username [-p Password]]] [[Id | path] [-c]]
     -u        Specifies optional user name for login to
               remote computer.
     -p        Specifies password for user name.
     Id        Id of file to print information for or close.
     Path      Full or partial path of files to match.
     -c        Closes file identified by file Id.
Omitting a file identifier has PsFile list all files opened remotely.