Skip to content

Commit ea942e7

Browse files
committed
Worked on documentation
1 parent 6655f53 commit ea942e7

File tree

2 files changed

+110
-14
lines changed

2 files changed

+110
-14
lines changed

docs/sources/system-keys/Application-compatibility-cache.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,18 @@ Related Registry keys:
516516
HKLM\Sofware\Microsoft\Windows NT\CurrentVersion\AppCompatFlags
517517
```
518518

519+
Flushing the cache Windows Vista and later:
520+
521+
```
522+
Rundll32.exe apphelp.dll,ShimFlushCache
523+
```
524+
525+
Flushing the cache Windows XP and Windows Server 2003
526+
527+
```
528+
Rundll32.exe kernel32.dll,BaseFlushAppcompatCache
529+
```
530+
519531
## External links
520532

521533
* [Leveraging the Application Compatibility Cache in Forensic Investigations](https://www.fireeye.com/content/dam/fireeye-www/services/freeware/shimcache-whitepaper.pdf), by Andrew Davis, 2012

docs/sources/system-keys/USB-storage.md

Lines changed: 98 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,25 @@
44
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\USBSTOR
55
```
66

7-
Sub key level 1: Disk&Ven_&Prod_&Rev_0.00
7+
The USBSTOR key contains one or more device keys.
8+
9+
## Device key
10+
11+
The name of the device key is formatted as:
812

913
```
1014
<Device Type>&Ven_<Vendor>&Prod_<Product>&Rev_<Revision Number>
1115
```
1216

13-
Sub key level 2: 1002131402536a&0
17+
For example: `Disk&Ven_&Prod_&Rev_0.00`
18+
19+
The device key contains one or more device instance keys.
20+
21+
## Device instance key
22+
23+
The name of the device instance key is formatted as:
24+
25+
For example: `1002131402536a&0`
1426

1527
Sub keys:
1628

@@ -24,16 +36,88 @@ Values:
2436

2537
Name | Data type | Description
2638
--- | --- | ---
27-
Capabilities | |
28-
Class | |
29-
ClassGUID | |
30-
CompatibleIDs | |
31-
ConfigFlags | |
32-
ContainerID | |
33-
DeviceDesc | |
34-
Driver | |
35-
FriendlyName | |
36-
HardwareID | |
37-
Mfg | |
38-
Service | |
39+
Capabilities | REG_DWORD_LITTLE_ENDIAN |
40+
Class | REG_SZ |
41+
ClassGUID | REG_SZ |
42+
CompatibleIDs | REG_MULTI_SZ |
43+
ConfigFlags | REG_DWORD_LITTLE_ENDIAN |
44+
ContainerID | REG_SZ |
45+
DeviceDesc | REG_SZ |
46+
Driver | REG_SZ |
47+
FriendlyName | REG_SZ | Human readable description of the USB storage device
48+
HardwareID | REG_MULTI_SZ |
49+
Mfg | REG_SZ | Manufacturer information
50+
Service | REG_SZ |
51+
52+
## Device Parameters key
53+
54+
Sub keys:
55+
56+
Name | Description
57+
--- | ---
58+
MediaChangeNotification |
59+
Partmgr |
60+
61+
### Device Parameters\Partmgr key
62+
63+
Values:
64+
65+
Name | Data type | Description
66+
--- | --- | ---
67+
Attributes | REG_DWORD_LITTLE_ENDIAN |
68+
DiskId | REG_SZ | Contains a GUID
69+
70+
## LogConf key
71+
72+
## Properties key
73+
74+
Sub keys:
75+
76+
Name | Description
77+
--- | ---
78+
%GUID% | Property set identifier
79+
80+
### Property set key (Properties\%GUID%)
81+
82+
Sub keys:
83+
84+
Name | Description
85+
--- | ---
86+
%NUMERIC% | Property identifier
87+
88+
#### Property key (Properties\%GUID%\%NUMERIC%)
89+
90+
Sub keys:
91+
92+
Name | Description
93+
--- | ---
94+
%NUMERIC% |
95+
96+
#### Property value key (Properties\%GUID%\%NUMERIC%\%NUMERIC%)
97+
98+
Values:
99+
100+
Name | Data type | Description
101+
--- | --- | ---
102+
Data | REG_BINARY | Value data
103+
Type | REG_BINARY | Value type
104+
105+
For a value type of 0x0010 value data contains a FILETIME
106+
For a value type of 0x0012 value data contains an UTF-16 litte-endian encoded string
107+
108+
### Example
109+
110+
```
111+
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\USBSTOR\Disk&Ven_HP&Prod_v100w&Rev_1024\AA951D0000007252&0\Properties\{540b947e-8b40-45bc-a8a2-6a0b894cbda2}\00000004\00000000
112+
113+
Property set: 540b947e-8b40-45bc-a8a2-6a0b894cbda2 (System.Devices)
114+
Property identifier: 4 (PKEY_Device_BusReportedDeviceDesc)
115+
Type: 0x00000012
116+
Data: "HP v100w USB Device"
117+
```
118+
119+
## External links
120+
121+
* [USB device registry entries](https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-device-specific-registry-settings)
122+
* [Identifiers Generated by USBSTOR.SYS](https://learn.microsoft.com/en-us/windows-hardware/drivers/install/identifiers-generated-by-usbstor-sys)
39123

0 commit comments

Comments
 (0)