AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Windows terminal settings file5/10/2023 ![]() #comment out or update to reflect the location of the settings.json file to backup. #$json = $ENV:Userprofile\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json #Actual path to settings.json file - you will want to uncomment this line $Destination = "C:\users\jeff\OneDrive\windowsTerminal" The other parameter is the destination folder for the backup files. The script has a parameter that you can use to limit the number of backup files. The idea behind the script is to create numbered backups of the settings.json file like. You will need to edit the script to meet your situation. New-Item backup script is going to use the new location but it will work with the original file as well. Move-Item -Path $params.path -Destination $params.value Value = "C:\users\jeff\OneDrive\windowsterminal\settings.json" ![]() $params = "$ENV:Userprofile\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" If you are curious, here’s a PowerShell snippet that you can use (at your own risk). You can create a symbolic link but it won’t work the way you want.Ĭreating a hardlink to file in a different location is most likely not a supported configuration for Windows Terminal and there’s no guarantee it will work with future versions. So I have created a hardlink to this file that points to a copy in my OneDrive folder. ![]() But I want to make sure that file is backed up AND I’d like to use it on multiple systems. $ENV:Userprofile\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json The default location for the settings file is in your AppData folder. Claim now!īefore I get to the script, let me mention one thing I am doing differently. ManageEngine ADManager Plus - Download Free TrialĮxclusive offer on ADManager Plus for US and UK regions. Manage and Report Active Directory, Exchange and Microsoft 365 with
0 Comments
Read More
Leave a Reply. |