We recently had to assist a user who lost a manually added drive mapping after her machine was reloaded. I found this useful command to tell me who the owner/creator of the files are on the server she claimed the files were stored on:

Get-ChildItem d:\ -recurse | ForEach-Object {Get-Acl $_.FullName}

And to filter for a specific user:

PS C:\Windows\system32> Get-ChildItem d:\ -recurse | ForEach-Object {Get-Acl $_.FullName} | Where-Object {$_.owner -like
‘*Marlisa*’}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s