Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

Powershell Command - Run To get Lat Accessed Dates

Hi Experts,

I'm trying to run this powershell command to access directories and files last accessed time. A challenge is the folder path and subdirectories are restricted to specific owners (meaning no administrators).

Will this script work using an administrator account?

Get-ChildItem \\sharefolder\folderA -recurse | Select-Object FullName, creationtime, LastAccessTime, length | Export-CSV D:\<location>\filename.csv
0
syseng007
Asked:
syseng007
1 Solution
 
apathy42Commented:
You would first need to take ownership and reset the permissions before you can do any of that.  Using Powershell does not circumvent the ACLs on the file.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now