Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Get-Acl Failure on PST files

$
0
0

Hello all.

New member and new to Powershell so forgive if this is well known.

I have the need to determine the ACLs for a range of files and have found code-snippets and such that have helped and for the most part seem to work well.  However, one thing is beyond me at the moment:

1) Get-ACL:  Get-Acl on a .pst file, it gives me an error, no matter the location of the file, whether it is open in outlook or not, no matter of size or such things.  I can see the file with Get-ChildItem and indeed using icacls and the Windows Explorer Properties menu, I can see the security tab and the permissions.  So they are there and they are set.  But when I try the command, I get the following: 

PS C:\users\Shadow\Desktop> get-acl '.\PersonalFolders.pst'

get-acl : Attempted to perform an unauthorized operation.

At line:1 char:1

+ get-acl '.\PersonalFolders.pst'

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-Acl], UnauthorizedAccessException

    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.GetAclCommand

Suggestions? Thoughts?

Thanks in advance,

W


Viewing all articles
Browse latest Browse all 6937

Trending Articles