0

我一直在玩PSTermninalServices一段時間,我想知道是否有可能跟蹤或獲取持有,正在工作的用戶的當前位置目錄,遠程桌面sessoin?例如,打開哪些文件夾以及用戶打開哪些文件。這可能通過像PowerShell這樣的腳本來實現嗎?遠程桌面會話 - 跟蹤/獲取用戶的當前位置

操作系統:Windows Server 2008 R2

此致敬禮。 DA。

回答

2

我不知道該怎麼用PS做,但你可以使用psfile中(馬克Russinovich編寫的優秀pstools套件的一部分)

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.