This topic contains 7 replies, has 5 voices, and was last updated by
December 3, 2015 at 6:45 am #32541
Hello, I'm trying to do a
but it's returning with
Get-Acl : Cannot find path 'C:\Windows\system32\winload.exe' because it does not exist. At line:1 char:8 + Get-Acl < <<< C:\Windows\system32\winload.exe + CategoryInfo : ObjectNotFound: (:) [Get-Acl], ItemNotFoundException + FullyQualifiedErrorId : GetAcl_PathNotFound_Exception,Microsoft.PowerShell.Commands.GetAclCommand
The file does certainly exist in that location, i'm not sure why it's not working. I am also not able to do a test-path to it
December 3, 2015 at 6:48 am #32542ParticipantPoints: 2Rank: Member
verify the file exist. is the file hidden?
December 3, 2015 at 8:00 am #32563
Verified file does exist, I am looking at it in through explorer.
I have unchecked show hidden files/show protected system files
Tested on my windows 7 VM
December 3, 2015 at 8:07 am #32564
Just tested this on Windows 2008 R2 without any issue...peculiar...I'll just assume my VM is acting up...thanks Mark for your help!
December 4, 2015 at 7:09 am #32631ParticipantPoints: 0Rank: Member
What is the version of your powershell?
December 4, 2015 at 7:52 am #32635
v2, but after trying the exact command on co-worker's win7 VM it works just fine...
I'm assuming it's my VM as it's doing a few odd things with powershell and get-acl
December 5, 2015 at 9:32 am #32668ParticipantPoints: 0Rank: Member
Try putting the path in quotes:
Try this so you can read the full output.
get-acl "c:\windows\system32\winload.exe" | Format-Table -Wrap -AutoSize
December 7, 2015 at 12:32 am #32675ParticipantPoints: 0Rank: Member
Verify if your file in this location exactly:
* test if it located in C:\Windows\SysWOW64 if you run x32 PS version
* test if it exists when you run PS in admin mode
user mode explorer can show that your file in
but actually it located in
The topic ‘Get-acl on system file not working’ is closed to new replies.