forked from djust270/Intune-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchromebookmarks.ps1
More file actions
75 lines (73 loc) · 2.51 KB
/
chromebookmarks.ps1
File metadata and controls
75 lines (73 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
$jsonRepresentation = '{
"checksum": "8a83fd48cdea66f88b0dcf708bceae47",
"roots": {
"bookmark_bar": {
"children": [ {
"date_added": "13218554400308142",
"guid": "278dff65-0d68-4b8d-9cf8-60ea3b2dbe9d",
"id": "5",
"name": "Amazon",
"type": "url",
"url": "http://amazon.com/"
}, {
"date_added": "13218554442843596",
"guid": "3d87584d-a71f-4ff0-aa18-0c79efcc29c7",
"id": "6",
"name": "CNN",
"type": "url",
"url": "http://cnn.com"
}, {
"date_added": "13218554452536920",
"guid": "179fa996-6b4b-4d9a-beb7-de96fa0d848a",
"id": "7",
"name": "Adobe",
"type": "url",
"url": "http://adobe.com"
}, {
"date_added": "13218554465874578",
"guid": "c03a072c-9956-4429-9737-cc770ecd34c5",
"id": "8",
"name": "Office 365 Portal",
"type": "url",
"url": "http://portal.office.com/"
}, {
"date_added": "13218554481458818",
"guid": "a567e83d-8560-4de0-a03d-53c0dbb90cb4",
"id": "9",
"name": "My Apps",
"type": "url",
"url": "http://myapps.microsoft.com/"
} ],
"date_added": "13218553204407005",
"date_modified": "13218554481458818",
"guid": "00000000-0000-4000-A000-000000000002",
"id": "1",
"name": "Bookmarks bar",
"type": "folder"
},
"other": {
"children": [ ],
"date_added": "13218553204407488",
"date_modified": "0",
"guid": "00000000-0000-4000-A000-000000000003",
"id": "2",
"name": "Other bookmarks",
"type": "folder"
},
"synced": {
"children": [ ],
"date_added": "13218553204407497",
"date_modified": "0",
"guid": "00000000-0000-4000-A000-000000000004",
"id": "3",
"name": "Mobile bookmarks",
"type": "folder"
}
},
"version": 1
}'
$users = Get-ChildItem "C:\Users" -Exclude Public
$users | ForEach-Object {
New-Item -ItemType Directory -Path "C:\Users\$($_.Name)\AppData\Local\Google\chrome\User Data\default" -force}
$users | ForEach-Object {
Add-Content -path "C:\Users\$($_.Name)\AppData\Local\Google\chrome\User Data\default\bookmarks" $jsonRepresentation }