Skip to content

Commit 2cdf007

Browse files
authored
Merge pull request #4110 from MicrosoftDocs/drewbat/settings-backup-restore
Documentation for settings back up restore
2 parents 1926627 + 23f4b36 commit 2cdf007

File tree

5 files changed

+1618
-1
lines changed

5 files changed

+1618
-1
lines changed

.openpublishing.redirection.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7712,7 +7712,12 @@
77127712
},
77137713
{
77147714
"source_path": "hub/apps/distribute-through-store/best-practices-for-win32-app-distribution.md",
7715-
"redirect_url": "hub/apps/distribute-through-store/how-to-distribute-your-win32-app-through-microsoft-store.md",
7715+
"redirect_url": "/windows/apps/distribute-through-store/how-to-distribute-your-win32-app-through-microsoft-store",
7716+
"redirect_document_id": false
7717+
},
7718+
{
7719+
"source_path": "hub/apps/develop/settings/index.md",
7720+
"redirect_url": "/windows/apps/develop/settings/settings-windows-11",
77167721
"redirect_document_id": false
77177722
},
77187723
{
Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
---
2+
title: Cloud Data Store Settings Reader Tool (readCloudDataSettings.exe)
3+
description: This article describes the Cloud Data Store Settings Reader Tool, readCloudDataSettings.exe, that can be used to fetch data stored within the Windows Cloud Data Store component on the local device.
4+
ms.date: 02/27/2024
5+
ms.topic: article
6+
keywords: windows 10, windows 11, settings
7+
ms.localizationpriority: medium
8+
---
9+
10+
# Cloud Data Store Settings Reader tool (readCloudDataSettings.exe)
11+
12+
This article describes the Cloud Data Store Settings Reader Tool, readCloudDataSettings.exe, that can be used to fetch data stored within the Windows Cloud Data Store component on the local device. For settings documented in [Reference for Windows 11 settings](settings-windows-11.md) or [Reference for Windows 11 and Windows 10 settings](settings-common.md), if the setting lists a type name rather than a registry key, then you must use this tool to retrieve the data.
13+
14+
## Usage
15+
16+
### Single instance items
17+
18+
`readCloudDataSettings.exe get -type:<type name> [-account:<secondary account id>]`
19+
20+
### Multi-instance items
21+
22+
`readCloudDataSettings.exe enum -type:<type name> [-collection:<collection name>] [-account:<secondary account id>]`
23+
24+
### Command line parameter descriptions
25+
26+
| Parameter | Description |
27+
|-----------|-------------|
28+
| `<type name>` | The name of a Cloud Data Store type whose data is to be retrieved (e.g., "windows.data.platform.diagnostics.diagnosticdata") |
29+
| `<collection name>` | The optional name of a collection for a Cloud Data Store multi-instance type. This must be specified if the multi-instance type has a named collection and must not be specified if either the collection has no name or the type is single-instance. Cloud Data Store does has no support for enumerating either the data or names of all collections of a type. |
30+
| `<secondary account id>` | The optional id (in the form of user@domain) of a secondary account associated with the current user whose data is to be fetched. This must be a secondary account associated with the currently logged in Windows user; it does not provide access to data for other Windows users that might be sharing the device.|
31+
32+
## Errors
33+
34+
If the data does not exist or an error occurs, the output will report a pair of square brackets with nothing between; example:
35+
36+
```powershell
37+
[
38+
]
39+
```
40+
41+
## Examples
42+
43+
### Single-instance type
44+
45+
Command line:
46+
47+
```powershell
48+
C:\Windows\System32>readCloudDataSettings.exe get -type:windows.data.settings.settingsusagehistory
49+
50+
```
51+
52+
Output:
53+
54+
```powershell
55+
/type: windows.data.settings.settingsusagehistory
56+
57+
[
58+
{"Data":{"pageUsages":{"\"SettingsPageAppsNotifications\"":{"Data":{"frequency":1,"lastUsedTime":1.3353819570909629E+17,"lastUsedSettingId":"SystemSettings_Notifications_QuietHours_MuteNotification_Enabled"}},"\"SettingsPageOtherUsers\"":{"Data":{"frequency":1,"lastUsedTime":1.3353709031552022E+17,"lastUsedSettingId":"SystemSettings.UserAccountsHandlers.RemoveOtherUserSetting"}}}}}
59+
]
60+
```
61+
62+
### Single-instance type, alternate account
63+
64+
Command line:
65+
66+
```powershell
67+
C:\Windows\System32>readCloudDataSettings.exe get -type:windows.data.settings.settingsusagehistory -account:[email protected]
68+
69+
```
70+
71+
Output:
72+
73+
```powershell
74+
/type: windows.data.settings.settingsusagehistory
75+
76+
[
77+
{"Data":{"pageUsages":{"\"SettingsPageAppsNotifications\"":{"Data":{"frequency":1,"lastUsedTime":1.3353819570909629E+17,"lastUsedSettingId":"SystemSettings_Notifications_QuietHours_MuteNotification_Enabled"}},"\"SettingsPageOtherUsers\"":{"Data":{"frequency":1,"lastUsedTime":1.3353709031552022E+17,"lastUsedSettingId":"SystemSettings.UserAccountsHandlers.RemoveOtherUserSetting"}}}}}
78+
]
79+
```
80+
81+
### Multi-instance type with collection name
82+
83+
Command line:
84+
85+
```powershell
86+
readclouddatasettings.exe enum -type:windows.data.wifi.wifiprofile -collection:wificloudstore3
87+
88+
```
89+
90+
Output:
91+
92+
```powershell
93+
/type: windows.data.wifi.wifiprofile
94+
/collection: wificloudstore3
95+
96+
[
97+
{"Data":{"profileXml":"<?xml version=\"1.0\"?>\r\n<WLANProfile xmlns=\"http://www.microsoft.com/networking/WLAN/profile/v1\">\r\n\t<name>MySpectrumWiFi98-5G</name>\r\n\t<SSIDConfig>\r\n\t\t<SSID>\r\n\t\t\t<hex>4D79537065637472756D5769466939382D3547</hex>\r\n\t\t\t<name>MySpectrumWiFi98-5G</name>\r\n\t\t</SSID>\r\n\t</SSIDConfig>\r\n\t<connectionType>ESS</connectionType>\r\n\t<connectionMode>auto</connectionMode>\r\n\t<MSM>\r\n\t\t<security>\r\n\t\t\t<authEncryption>\r\n\t\t\t\t<authentication>WPA2PSK</authentication>\r\n\t\t\t\t<encryption>AES</encryption>\r\n\t\t\t\t<useOneX>false</useOneX>\r\n\t\t\t</authEncryption>\r\n\t\t\t<sharedKey>\r\n\t\t\t\t<keyType>passPhrase</keyType>\r\n\t\t\t\t<protected>false</protected>\r\n\t\t\t\t<keyMaterial>ancientzebra274</keyMaterial>\r\n\t\t\t</sharedKey>\r\n\t\t</security>\r\n\t</MSM>\r\n\t<MacRandomization xmlns=\"http://www.microsoft.com/networking/WLAN/profile/v3\">\r\n\t\t<enableRandomization>false</enableRandomization>\r\n\t\t<randomizationSeed>1865639973</randomizationSeed>\r\n\t</MacRandomization>\r\n</WLANProfile>\r\n","lastModifiedTime":1.3354054522984058E+17}},
98+
{"Data":{"profileXml":"<?xml version=\"1.0\"?>\r\n<WLANProfile xmlns=\"http://www.microsoft.com/networking/WLAN/profile/v1\">\r\n\t<name>KIA Service Color</name>\r\n\t<SSIDConfig>\r\n\t\t<SSID>\r\n\t\t\t<hex>4B4941205365727669636520436F6C6F72</hex>\r\n\t\t\t<name>KIA Service Color</name>\r\n\t\t</SSID>\r\n\t</SSIDConfig>\r\n\t<connectionType>ESS</connectionType>\r\n\t<connectionMode>manual</connectionMode>\r\n\t<MSM>\r\n\t\t<security>\r\n\t\t\t<authEncryption>\r\n\t\t\t\t<authentication>WPA2PSK</authentication>\r\n\t\t\t\t<encryption>AES</encryption>\r\n\t\t\t\t<useOneX>false</useOneX>\r\n\t\t\t</authEncryption>\r\n\t\t\t<sharedKey>\r\n\t\t\t\t<keyType>passPhrase</keyType>\r\n\t\t\t\t<protected>false</protected>\r\n\t\t\t\t<keyMaterial>4258270521</keyMaterial>\r\n\t\t\t</sharedKey>\r\n\t\t</security>\r\n\t</MSM>\r\n\t<MacRandomization xmlns=\"http://www.microsoft.com/networking/WLAN/profile/v3\">\r\n\t\t<enableRandomization>false</enableRandomization>\r\n\t\t<randomizationSeed>4088426234</randomizationSeed>\r\n\t</MacRandomization>\r\n</WLANProfile>\r\n","lastModifiedTime":1.3354054522999686E+17}}
99+
]
100+
```
101+
102+
## Note on serialization
103+
104+
For interoperability settings data structures are serialized to JSON when exported from Windows. In some cases, this can result in unintuitive results. See the examples below.
105+
106+
### Basic data types
107+
Basic data types (integer, floating point, string, etc) have no special representation beyond normal JSON encoding.
108+
109+
### Structures
110+
All structures (including top level structures) are wrapped in a JSON element called "Data". This includes nested structures (including when structures are used in vectors, maps, and nullables)
111+
112+
#### Example
113+
114+
This structure definition:
115+
116+
```csharp
117+
struct MyInnerDataType
118+
{
119+
0: int32 data;
120+
}
121+
122+
struct MyDataType
123+
{
124+
0: MyInnerDataType innerData;
125+
1: int64 id;
126+
}
127+
```
128+
129+
Becomes the following JSON:
130+
131+
```json
132+
{
133+
"Data":
134+
{
135+
"innerData":
136+
{
137+
"Data":
138+
{
139+
"data": 1
140+
}
141+
},
142+
"id": 2
143+
}
144+
}
145+
```
146+
147+
### Vectors / Lists
148+
149+
Vectors and lists are translated into standard JSON arrays (with the caveat from above that a list of structures has each element wrapped in a JSON element named "Data").
150+
151+
#### Example
152+
153+
This structure definition:
154+
155+
```csharp
156+
struct MyInnerDataType
157+
{
158+
0: int32 data;
159+
}
160+
161+
struct MyDataType
162+
{
163+
0: vector<MyInnerDataType> dataList;
164+
1: vector<int32> idList;
165+
}
166+
```
167+
168+
Becomes the following JSON:
169+
170+
```json
171+
{
172+
"Data":
173+
{
174+
"dataList":
175+
[
176+
{
177+
"Data":
178+
{
179+
"data": 1
180+
}
181+
},
182+
{
183+
"Data":
184+
{
185+
"data": 2
186+
}
187+
},
188+
],
189+
"idList": [ 1, 2 ]
190+
}
191+
}
192+
```
193+
194+
### Blob
195+
196+
Blobs are translated into arrays of integers
197+
198+
#### Example
199+
200+
This structure definition:
201+
202+
```C#
203+
Struct mySetting
204+
{
205+
0: blob settingData;
206+
}
207+
```
208+
209+
Becomes the following JSON:
210+
211+
```json
212+
{
213+
"Data":
214+
{
215+
"settingData":[-103,84,-51,60,-88,-121,16,75,-94,21,96,-120,-120,-35,59,85,4,0,0,0,0,1,0,0,36,0,0,0,73,0,110,0,116,0,101,0,114,0,110,0,101,0,116,0,32,0,69,0,120,0,112,0,108,0,111,0,114,0,101,0,114,0,0,0,1,0,0,0,2,0,0,0,7,0,0,0,7,0,0,0,58,0,0,0,104,0,116,0,116,0,112,0,115,0,58,0,47,0,47,0,103,0,108,0,111,0,98,0,97,0,108,0,46,0,115,0,116,0,115,0,46,0,109,0,115,0,102,0,116,0,46,0,110,0,101,0,116,0,47,0,0,0,2,0,0,0,2,0,0,0,7,0,0,0,7,0,0,0,34,0,0,0,109,0,105,0,99,0,114,0,105,0,100,0,101,0,114,0,64,0,103,0,109,0,101,0,46,0,103,0,98,0,108,0,0,0,3,0,0,0,0,0,0,0,7,0,0,0,7,0,0,0,34,0,0,0,110,0,97,0,109,0,105,0,56,0,48,0,114,0,117,0,108,0,101,0,115,0,58,0,68,0,103,0,109,0,101,0,0,0,1,0,0,0,100,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,16,0,0,0,-43,-74,60,78,86,37,-40,76,-92,-115,-57,85,-57,55,-53,-90,5,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,1,0,0,0,7,0,0,0,0,0,0,0,2,0,0,0,7,0,0,0,0,0,0,0,3,0,0,0,7,0,0,0,0,0,0,0,4,0,0,0,6,0,0,0,-58,-104,104,-79,72,-95,103,73,-111,113,100,-41,85,-38,-123,32]
216+
}
217+
}
218+
```

0 commit comments

Comments
 (0)