0

私はしばらく PSTermninalServices をいじっていましたが、作業ディレクトリ、リモート デスクトップ セッションを保持しているユーザーの現在の場所を追跡または取得できるかどうか疑問に思っていました。たとえば、ユーザーが開いているフォルダや開いているファイルなどです。これは、PowerShell のようなスクリプトで実現できますか?

OS: Windows Server 2008 R2

よろしくお願いします。ダ。

4

1 に答える 1

2

PS でそれを行う方法はわかりませんが、psfile ( Mark 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.
于 2012-11-22T13:21:51.993 に答える