Powershell to find machine that created a file
<p>I have a script that monitors the filesystem using FileWatcher.IO in Powershell.
Currently it finds the user that made the file with:</p>

<pre><code>$owner = (Get-Acl $path).Owner
</code></pre>

<p>And it finds the computer that the file was made on with:</p>

<pre><code>$Computer = get-content env:computername
</code></pre>

<p>But I'd also like to obtain what machine the file was created from. For instance, if a user is logged into a terminal server, I can see the file is made on the terminal server. But I want to know the host name of the local machine that made the file on the terminal server.</p>

<p>Is this possible? I've been searching the msdn PSEventArgs Class page without much success.</p>