Windows 11 HOW TO BACKUP USER PROFILES FOR POWERSHELL

  • Thread starter Thread starter 健豪 鄺
  • Start date Start date

健豪 鄺

new-item -path "C:\Temp\$($env:USERNAME)" -ItemType Directory Copy-Item -Path "$env:USERPROFILE\AppData\Local\Microsoft\Edge\User Data\Default\Bookmarks" -Destination "C:\Temp\$($env:USERNAME)\Edge" Copy-Item -Path "$env:USERPROFILE\AppData\Local\Google\Chrome\User Data\Default\Bookmarks" -Destination "C:\Temp\$($env:USERNAME)\chrome" Add-Content -path C:\Temp\Rollback.ps1 -encoding String 'Copy-Item -Path "C:\Temp\$($env:USERNAME)\chrome" -Destination "$env:USERPROFILE\AppData\Local\Google\Chrome\User Data\Default\Bookmarks" Copy-Item -Path "C:\Temp\$($env:USERNAME)\Edge" -Destination "$

Continue reading...
 
Back
Top