Skip to main content

Google Chrome Bookmark - Export

Summary

This procedure retrieves the currently logged-in user's bookmark file from their user APPDATA folder for Google Chrome. It then exports it to OneDrive if available, or to the local documents folder if OneDrive is not accessible.

Example Agent Procedure Log

TimeActionStatusUser
2:46:43 pm 19-Sep-23Google Chrome Bookmark - ExportSuccess THENderek.joniak
2:46:43 pm 19-Sep-23Google Chrome Bookmark - Export-0001Success THENderek.joniak
2:46:43 pm 19-Sep-23Google Chrome Bookmark - Export-0001Log: 2023-09-19 15:19:14 - Chrome bookmarks exported as JSON to C:/Users/Test/OneDrive - ProVal Technologies Inc/Documents successfully.derek.joniak
2:46:43 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)Success THENderek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0001Success THENderek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0002Success THENderek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0011Success THENderek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0014Success THENderek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0015Success THENderek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0016Success THENderek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0016Powershell command complete. Results returned to global variable #global:psresult# and saved in Agent's Documents tab.derek.joniak
2:46:42 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0016Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/570617411282368/GetFiles/../docs/psoutput.txt with the new contents from c:/kworking/psoutput.txt in THEN step 3.derek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0011Executing 64-bit Powershell command as User: "" -command "& $env:ProgramData/_automation/AgentProcedure/FeatureUpdate/ChromeBookmarkExport.ps1" >"c:/kworking/psoutputtmp.txt"derek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0012Success THENderek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0013Success THENderek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0013Sending output to global variable.derek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0003Success ELSEderek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0008Success THENderek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0009Success ELSEderek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0010Success ELSEderek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0008Custom commands detected as "& $env:ProgramData/_automation/AgentProcedure/FeatureUpdate/ChromeBookmarkExport.ps1"derek.joniak
2:46:40 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0003No powershell file variable detected.derek.joniak
2:46:37 pm 19-Sep-23Execute Powershell Command (64-bit, Run As User)-0002Powershell is present.derek.joniak
2:46:36 pm 19-Sep-23Execute Powershell CommandSuccess THENderek.joniak
2:46:36 pm 19-Sep-23Execute Powershell Command-0001Success THENderek.joniak
2:46:36 pm 19-Sep-23Execute Powershell Command-0002Success THENderek.joniak
2:46:36 pm 19-Sep-23Execute Powershell Command-0011Success THENderek.joniak
2:46:36 pm 19-Sep-23Execute Powershell Command-0012Success ELSEderek.joniak
2:46:36 pm 19-Sep-23Execute Powershell Command-0011Powershell command completed!derek.joniak
2:46:34 pm 19-Sep-23Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name ChromeBookmarkExport" ""derek.joniak
2:46:34 pm 19-Sep-23Execute Powershell Command-0009Success THENderek.joniak
2:46:34 pm 19-Sep-23Execute Powershell Command-0010Success ELSEderek.joniak
2:46:34 pm 19-Sep-23Execute Powershell Command-0010Not sending output to variable.derek.joniak
2:46:34 pm 19-Sep-23Execute Powershell Command-0007Success THENderek.joniak
2:46:34 pm 19-Sep-23Execute Powershell Command-0008Success THENderek.joniak
2:46:34 pm 19-Sep-23Execute Powershell Command-0008New command variable is: -Command "New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name ChromeBookmarkExport"derek.joniak
2:46:33 pm 19-Sep-23Execute Powershell Command-0008Custom commands detected as New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name ChromeBookmarkExportderek.joniak
2:46:33 pm 19-Sep-23Execute Powershell Command-0003Success THENderek.joniak
2:46:33 pm 19-Sep-23Execute Powershell Command-0004Success ELSEderek.joniak
2:46:31 pm 19-Sep-23Execute Powershell Command-0002Powershell is present.derek.joniak
2:46:23 pm 19-Sep-23Run Now - Google Chrome Bookmark - ExportAdmin derek.joniak scheduled procedure Run Now - Google Chrome Bookmark - Export to run at Sep 19 2023 3:46 PM

Dependencies

If the desired save location is OneDrive, ensure the Documents folder is present. OneDrive/Documents
Otherwise, the script will fall back to the local Documents folder.

Output

Procedure log files and other outputs.