-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpermission_check.bat
More file actions
18 lines (14 loc) · 927 Bytes
/
permission_check.bat
File metadata and controls
18 lines (14 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#Check permissions on a file or directory.
C:\tools\SysInternals\accesschk.exe "users" "<Directory Name>" -s -w
#Check permissions on a registry key.
C:\tools\SysInternals\accesschk.exe "users" -k "<Registry Key>" -s -w
#Check permissions on a service.
C:\tools\SysInternals\accesschk.exe "users" -c <Service Name>
#Check permissions on a process and all its threads.
C:\tools\SysInternals\accesschk.exe "users" -p <Process Name> -t
#Check permissions on Global objects. You can find these by using WinObj from the SysInternals tool suite
C:\tools\SysInternals\accesschk.exe "users" -wo \BaseNamedObjects\<Object Name>
C:\tools\SysInternals\accesschk.exe "users" -wo \Callback\<Object Name>
C:\tools\SysInternals\accesschk.exe "users" -wo \Device\<Object Name>
C:\tools\SysInternals\accesschk.exe "users" -wo \Driver\<Object Name>
C:\tools\SysInternals\accesschk.exe "users" -wo \FileSystem\<Object Name>