Home > PowerShell > Retrieve File Permissions using Get-Acl with PowerShell

Retrieve File Permissions using Get-Acl with PowerShell

Retrieving the owner and permissions of a file, folders and even registry keys is a breeze with PowerShell’s Get-Acl cmdlet. Let’s try checking to see who has access to to the C:\Documents and Settings\Administrator folder.

Get-Acl "C:\Documents and Settings\Administrator"

Now this return everything that I would expect it to, but I prefer the Format-List view, so let’s check the permissions on the the file C:\Windows\clock.avi and output it in a list view.

Get-Acl "C:\Windows\clock.avi" | Format-List

Ok, now I did say we could check the permissions of a registry key, so let’s go for it…

1
Get-Acl HKLM:\Software\Microsoft

Now if you just want to find out the owner of the file you could pull back just that value

1
Get-Acl "C:\Windows\clock.avi" | Select Owner
  1. No comments yet.
  1. November 6th, 2019 at 22:56 | #1
  2. November 18th, 2019 at 18:42 | #2
  3. November 23rd, 2019 at 17:13 | #3
  4. November 28th, 2019 at 00:08 | #4
  5. November 28th, 2019 at 03:18 | #5
  6. November 28th, 2019 at 05:18 | #6
  7. November 28th, 2019 at 05:31 | #7
  8. December 11th, 2019 at 01:17 | #8
  9. December 11th, 2019 at 01:44 | #9
  10. December 15th, 2019 at 15:53 | #10
  11. December 22nd, 2019 at 23:28 | #11
  12. December 23rd, 2019 at 05:06 | #12
  13. December 23rd, 2019 at 13:19 | #13
  14. December 23rd, 2019 at 23:27 | #14
  15. December 25th, 2019 at 06:04 | #15
  16. December 25th, 2019 at 10:37 | #16
  17. December 25th, 2019 at 22:59 | #17
  18. December 26th, 2019 at 07:03 | #18
  19. December 27th, 2019 at 08:41 | #19
  20. December 28th, 2019 at 21:34 | #20
  21. December 29th, 2019 at 23:49 | #21
  22. January 1st, 2020 at 19:36 | #22
  23. January 8th, 2020 at 03:56 | #23
  24. January 8th, 2020 at 04:01 | #24
  25. January 8th, 2020 at 04:13 | #25
  26. January 8th, 2020 at 04:50 | #26
  27. January 8th, 2020 at 04:59 | #27
  28. January 8th, 2020 at 05:44 | #28
  29. January 9th, 2020 at 01:24 | #29
  30. January 9th, 2020 at 04:00 | #30
  31. January 11th, 2020 at 04:28 | #31
  32. January 19th, 2020 at 19:07 | #32
  33. January 20th, 2020 at 07:36 | #33
  34. January 29th, 2020 at 17:37 | #34
  35. January 29th, 2020 at 22:43 | #35
  36. February 3rd, 2020 at 01:33 | #36
  37. February 7th, 2020 at 13:38 | #37
  38. February 8th, 2020 at 23:11 | #38
  39. February 9th, 2020 at 05:35 | #39
  40. February 9th, 2020 at 09:05 | #40
  41. February 9th, 2020 at 11:29 | #41
  42. February 9th, 2020 at 11:37 | #42
  43. February 9th, 2020 at 11:39 | #43
  44. February 9th, 2020 at 12:04 | #44
  45. February 9th, 2020 at 13:55 | #45
  46. February 9th, 2020 at 15:13 | #46
  47. February 9th, 2020 at 16:24 | #47
  48. February 9th, 2020 at 16:54 | #48
  49. February 9th, 2020 at 17:52 | #49
  50. February 9th, 2020 at 17:57 | #50
  51. February 9th, 2020 at 18:07 | #51
  52. February 9th, 2020 at 18:25 | #52
  53. February 9th, 2020 at 19:39 | #53
  54. February 9th, 2020 at 22:23 | #54
  55. February 9th, 2020 at 23:51 | #55
  56. February 10th, 2020 at 00:17 | #56
  57. February 10th, 2020 at 18:29 | #57
  58. February 11th, 2020 at 22:14 | #58
  59. February 12th, 2020 at 01:04 | #59
  60. February 12th, 2020 at 20:56 | #60
  61. February 12th, 2020 at 23:16 | #61
  62. February 13th, 2020 at 13:14 | #62
  63. February 13th, 2020 at 15:25 | #63
  64. February 13th, 2020 at 20:48 | #64
  65. February 14th, 2020 at 02:48 | #65
  66. February 14th, 2020 at 05:18 | #66
  67. February 14th, 2020 at 09:34 | #67
  68. February 14th, 2020 at 09:40 | #68
  69. February 14th, 2020 at 15:36 | #69
  70. February 14th, 2020 at 19:33 | #70
  71. February 14th, 2020 at 22:13 | #71
  72. February 15th, 2020 at 09:53 | #72
  73. February 17th, 2020 at 13:29 | #73
  74. February 17th, 2020 at 20:52 | #74
  75. February 18th, 2020 at 04:02 | #75
  76. February 19th, 2020 at 10:17 | #76
  77. February 19th, 2020 at 13:11 | #77
  78. February 19th, 2020 at 22:10 | #78
  79. February 22nd, 2020 at 16:46 | #79
  80. February 23rd, 2020 at 00:15 | #80
  81. February 24th, 2020 at 17:59 | #81
  82. February 25th, 2020 at 08:46 | #82
  83. February 26th, 2020 at 09:41 | #83
  84. February 26th, 2020 at 18:41 | #84
  85. February 26th, 2020 at 20:42 | #85
  86. February 26th, 2020 at 21:58 | #86
  87. February 26th, 2020 at 23:43 | #87
  88. February 27th, 2020 at 03:32 | #88
  89. February 27th, 2020 at 18:06 | #89
  90. February 28th, 2020 at 12:56 | #90
  91. March 1st, 2020 at 04:25 | #91
  92. March 1st, 2020 at 15:02 | #92
  93. March 3rd, 2020 at 09:07 | #93
  94. March 3rd, 2020 at 14:20 | #94
  95. March 3rd, 2020 at 22:09 | #95
  96. March 5th, 2020 at 10:23 | #96
  97. March 6th, 2020 at 23:32 | #97
  98. March 7th, 2020 at 07:19 | #98
  99. March 7th, 2020 at 09:16 | #99
  100. March 7th, 2020 at 09:16 | #100
  101. March 7th, 2020 at 09:21 | #101
  102. March 7th, 2020 at 09:34 | #102
  103. March 7th, 2020 at 11:33 | #103
  104. March 7th, 2020 at 13:28 | #104
  105. March 8th, 2020 at 09:17 | #105
  106. March 8th, 2020 at 09:30 | #106
  107. March 8th, 2020 at 20:36 | #107
  108. March 9th, 2020 at 05:47 | #108
  109. March 9th, 2020 at 09:00 | #109
  110. March 9th, 2020 at 13:21 | #110
  111. March 10th, 2020 at 00:00 | #111
  112. March 10th, 2020 at 02:50 | #112
  113. March 10th, 2020 at 07:44 | #113
  114. March 10th, 2020 at 12:50 | #114
  115. March 10th, 2020 at 13:28 | #115
  116. March 10th, 2020 at 17:20 | #116
  117. March 11th, 2020 at 05:24 | #117
  118. March 11th, 2020 at 14:53 | #118
  119. March 12th, 2020 at 02:19 | #119
  120. March 13th, 2020 at 21:13 | #120
  121. March 13th, 2020 at 21:18 | #121
  122. March 14th, 2020 at 12:27 | #122
  123. March 15th, 2020 at 04:23 | #123
  124. March 15th, 2020 at 09:07 | #124
  125. March 15th, 2020 at 11:58 | #125
  126. March 15th, 2020 at 19:15 | #126
  127. March 15th, 2020 at 21:02 | #127
  128. March 16th, 2020 at 03:57 | #128
  129. March 16th, 2020 at 04:55 | #129
  130. March 16th, 2020 at 05:22 | #130
  131. March 16th, 2020 at 08:55 | #131
  132. March 16th, 2020 at 15:57 | #132
  133. March 17th, 2020 at 03:01 | #133
  134. March 18th, 2020 at 06:22 | #134
  135. March 18th, 2020 at 19:32 | #135
  136. March 18th, 2020 at 20:21 | #136
  137. March 19th, 2020 at 07:35 | #137
  138. March 19th, 2020 at 08:03 | #138
  139. March 20th, 2020 at 04:48 | #139
  140. March 20th, 2020 at 09:15 | #140
  141. March 20th, 2020 at 14:34 | #141
  142. March 21st, 2020 at 08:06 | #142
  143. March 21st, 2020 at 11:11 | #143
  144. March 22nd, 2020 at 02:51 | #144
  145. March 22nd, 2020 at 04:35 | #145
  146. March 22nd, 2020 at 06:34 | #146
  147. March 23rd, 2020 at 05:21 | #147
  148. March 23rd, 2020 at 08:29 | #148
  149. March 23rd, 2020 at 13:07 | #149
  150. March 23rd, 2020 at 19:25 | #150
  151. March 24th, 2020 at 15:09 | #151
  152. March 24th, 2020 at 15:26 | #152
  153. March 25th, 2020 at 03:26 | #153
  154. March 25th, 2020 at 16:18 | #154
  155. March 25th, 2020 at 18:16 | #155
  156. March 26th, 2020 at 05:33 | #156
  157. March 26th, 2020 at 06:49 | #157
  158. March 26th, 2020 at 11:49 | #158
  159. March 26th, 2020 at 15:18 | #159
  160. March 27th, 2020 at 00:02 | #160
  161. March 28th, 2020 at 19:36 | #161
  162. March 28th, 2020 at 22:49 | #162
  163. March 28th, 2020 at 23:21 | #163
  164. March 29th, 2020 at 20:12 | #164
  165. March 30th, 2020 at 02:52 | #165
  166. March 30th, 2020 at 21:58 | #166
  167. April 2nd, 2020 at 20:19 | #167
  168. April 4th, 2020 at 03:29 | #168
  169. April 9th, 2020 at 23:30 | #169
  170. April 11th, 2020 at 19:06 | #170
  171. April 12th, 2020 at 01:51 | #171
  172. April 12th, 2020 at 09:17 | #172
  173. April 13th, 2020 at 16:16 | #173
  174. April 15th, 2020 at 21:48 | #174
  175. April 16th, 2020 at 01:21 | #175
  176. May 3rd, 2020 at 11:34 | #176
  177. May 3rd, 2020 at 13:44 | #177
  178. May 5th, 2020 at 12:45 | #178
  179. May 6th, 2020 at 06:34 | #179
  180. May 6th, 2020 at 12:04 | #180
  181. May 7th, 2020 at 06:33 | #181
  182. May 8th, 2020 at 23:50 | #182
  183. May 9th, 2020 at 05:15 | #183
  184. May 10th, 2020 at 01:39 | #184
  185. May 12th, 2020 at 09:34 | #185
  186. May 15th, 2020 at 19:14 | #186
  187. May 16th, 2020 at 10:39 | #187
  188. May 17th, 2020 at 03:32 | #188
  189. May 25th, 2020 at 18:12 | #189
  190. May 25th, 2020 at 23:47 | #190
  191. May 27th, 2020 at 08:19 | #191
  192. May 28th, 2020 at 04:37 | #192
  193. May 28th, 2020 at 19:31 | #193
  194. May 30th, 2020 at 21:18 | #194
  195. May 31st, 2020 at 17:02 | #195
  196. June 1st, 2020 at 03:14 | #196
  197. June 1st, 2020 at 05:41 | #197
  198. June 1st, 2020 at 06:40 | #198
  199. June 1st, 2020 at 07:52 | #199
  200. June 1st, 2020 at 12:58 | #200
  201. June 1st, 2020 at 13:40 | #201
  202. June 1st, 2020 at 15:32 | #202
  203. June 1st, 2020 at 17:33 | #203
  204. June 1st, 2020 at 19:22 | #204
  205. June 1st, 2020 at 23:50 | #205
  206. June 2nd, 2020 at 00:34 | #206
  207. June 2nd, 2020 at 02:31 | #207
  208. June 2nd, 2020 at 03:52 | #208
  209. June 2nd, 2020 at 04:38 | #209
  210. June 2nd, 2020 at 05:53 | #210
  211. June 2nd, 2020 at 06:20 | #211
  212. June 2nd, 2020 at 08:18 | #212
  213. June 2nd, 2020 at 10:22 | #213
  214. June 2nd, 2020 at 10:34 | #214
  215. June 2nd, 2020 at 11:27 | #215
  216. June 2nd, 2020 at 11:53 | #216
  217. June 2nd, 2020 at 12:21 | #217
  218. June 2nd, 2020 at 12:40 | #218
  219. June 2nd, 2020 at 13:03 | #219
  220. June 2nd, 2020 at 13:07 | #220
  221. June 2nd, 2020 at 19:23 | #221
  222. June 2nd, 2020 at 20:56 | #222
  223. June 2nd, 2020 at 22:03 | #223
  224. June 3rd, 2020 at 04:00 | #224
  225. June 4th, 2020 at 01:18 | #225
  226. June 4th, 2020 at 04:08 | #226
  227. June 4th, 2020 at 04:27 | #227
  228. June 4th, 2020 at 05:08 | #228
  229. June 5th, 2020 at 22:45 | #229
  230. June 5th, 2020 at 23:01 | #230
  231. June 5th, 2020 at 23:27 | #231
  232. June 6th, 2020 at 00:26 | #232
  233. June 6th, 2020 at 00:39 | #233
  234. June 6th, 2020 at 01:11 | #234
  235. June 6th, 2020 at 02:07 | #235
  236. June 6th, 2020 at 02:28 | #236
  237. June 6th, 2020 at 02:49 | #237
  238. June 6th, 2020 at 03:58 | #238
  239. June 6th, 2020 at 04:05 | #239
  240. June 6th, 2020 at 04:17 | #240
  241. June 6th, 2020 at 04:37 | #241
  242. June 6th, 2020 at 05:44 | #242
  243. June 6th, 2020 at 18:41 | #243
  244. June 9th, 2020 at 04:56 | #244
  245. June 10th, 2020 at 06:01 | #245
  246. June 10th, 2020 at 08:08 | #246
  247. June 10th, 2020 at 10:54 | #247
  248. June 11th, 2020 at 08:46 | #248
  249. June 11th, 2020 at 12:39 | #249
  250. June 11th, 2020 at 16:09 | #250
  251. June 11th, 2020 at 17:03 | #251
  252. June 12th, 2020 at 06:01 | #252
  253. June 12th, 2020 at 06:40 | #253
  254. June 12th, 2020 at 14:15 | #254
  255. June 12th, 2020 at 16:22 | #255
  256. June 12th, 2020 at 16:49 | #256
  257. June 12th, 2020 at 23:32 | #257
  258. June 13th, 2020 at 04:19 | #258
  259. June 13th, 2020 at 06:47 | #259
  260. June 13th, 2020 at 10:26 | #260
  261. June 13th, 2020 at 11:25 | #261
  262. June 13th, 2020 at 20:23 | #262
  263. June 13th, 2020 at 23:53 | #263
  264. June 14th, 2020 at 05:58 | #264
  265. June 14th, 2020 at 09:06 | #265
  266. June 15th, 2020 at 14:48 | #266
  267. June 15th, 2020 at 19:40 | #267
  268. June 18th, 2020 at 09:01 | #268
  269. June 18th, 2020 at 11:00 | #269
  270. June 18th, 2020 at 12:09 | #270
  271. June 19th, 2020 at 00:56 | #271
  272. June 20th, 2020 at 16:59 | #272
  273. June 21st, 2020 at 13:22 | #273
  274. June 21st, 2020 at 14:38 | #274
  275. June 21st, 2020 at 15:04 | #275
  276. June 22nd, 2020 at 04:01 | #276
  277. June 22nd, 2020 at 06:27 | #277
  278. June 22nd, 2020 at 12:31 | #278
  279. June 22nd, 2020 at 14:24 | #279
  280. June 22nd, 2020 at 23:52 | #280
  281. June 23rd, 2020 at 14:09 | #281
  282. June 23rd, 2020 at 14:39 | #282
  283. June 24th, 2020 at 04:13 | #283
  284. June 26th, 2020 at 08:51 | #284
  285. June 26th, 2020 at 11:02 | #285
  286. June 27th, 2020 at 16:18 | #286
  287. June 27th, 2020 at 16:41 | #287
  288. June 28th, 2020 at 07:39 | #288
  289. July 2nd, 2020 at 18:49 | #289
  290. July 3rd, 2020 at 00:36 | #290
  291. July 3rd, 2020 at 18:02 | #291
  292. July 3rd, 2020 at 20:33 | #292
  293. July 4th, 2020 at 08:42 | #293
  294. July 4th, 2020 at 13:57 | #294
  295. July 5th, 2020 at 16:15 | #295
  296. July 6th, 2020 at 01:43 | #296
  297. July 6th, 2020 at 07:50 | #297
  298. July 8th, 2020 at 12:09 | #298
  299. July 8th, 2020 at 14:31 | #299
  300. July 8th, 2020 at 16:20 | #300
  301. July 8th, 2020 at 19:31 | #301
  302. July 8th, 2020 at 20:10 | #302
  303. July 8th, 2020 at 22:30 | #303
  304. July 9th, 2020 at 00:49 | #304
  305. July 23rd, 2020 at 10:34 | #305
  306. July 30th, 2020 at 14:59 | #306
  307. July 31st, 2020 at 21:18 | #307
  308. July 31st, 2020 at 21:52 | #308
  309. July 31st, 2020 at 23:08 | #309
  310. July 31st, 2020 at 23:18 | #310
  311. August 2nd, 2020 at 10:31 | #311
  312. August 3rd, 2020 at 17:30 | #312
  313. August 3rd, 2020 at 18:25 | #313
  314. August 4th, 2020 at 02:11 | #314
  315. August 4th, 2020 at 09:49 | #315
  316. August 5th, 2020 at 08:59 | #316
  317. August 6th, 2020 at 03:37 | #317
  318. August 6th, 2020 at 13:37 | #318
  319. August 6th, 2020 at 20:02 | #319
  320. August 8th, 2020 at 11:18 | #320
  321. August 13th, 2020 at 23:42 | #321
  322. January 20th, 2021 at 09:41 | #322
  323. February 18th, 2021 at 01:14 | #323
  324. July 16th, 2021 at 17:08 | #324