$data = Get-content $pathToJsonFile -Encoding UTF8 | out-string | ConvertFrom-Json $global:bookmarks = New-Object -TypeName PSobject -Property $hash The result of the JSON file is shown below: - " -f ::FromFileTime(($child.Date_Added)*10) $EndBraceClose = ']}' | Add-Content 'file.json'ĬonvertFrom-Json | select -ExpandProperty markers|Įxport-CSV $env:USERPROFILE\desktop\ChromeBookMarx_$isodate.csv -NoTypeInformation ![]() $ | Get-BookmarkFolder |ConvertTo-Json |Add-Content 'D:\file.json' $_bar | Get-BookmarkFolder |ConvertTo-Json |Add-Content 'D:\file.json' New-Object -TypeName PSobject -Property $hash Write-Verbose "Processing $($child.Name)"Īdded = ::FromFileTime(($child.Date_Added)*10) #A nested function to enumerate bookmark folders Write-Verbose -Message "Starting $($MyInvocation.Mycommand)" $data = Get-content $pathToJsonFile | out-string | ConvertFrom-Json PowerShell\BookMarks\ChromeBookMarx.json" $pathToJsonFile = "$env:localappdata\Google\Chrome\User Data\Default\Bookmarks" Start-Transcript -Path $logFilePath -Append ![]() $logFilePath = "d:\PowerShell_$isodate.log" $isodate = Get-Date -Format yyyymmmdd_hhmmss The Synced Folder also creates a set of data as below in the same file: [ The BookMark_Bar creates a JSON with a brackets as below: [ This is due to two sets of folders in Chrome called Bookmark_Bar and Synced. ![]() I am hitting at a barrier with regard to an incorrect JSON file being created. I am trying to export the Chrome Bookmarks to CSV/Excel using Powershell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |