Powershell Edge – Favoriten Backup & Restore

## 2017 – Der Windows Papst www.der-windows-papst.de ##

#Set-ExecutionPolicy -ExecutionPolicy ‘Unrestricted’ -Force
# Backup Edge Favoriten
$name = [Environment]::UserName
$EdgeFavPath = “C:\Users\$name\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-0049\”
$Backup = “C:\Users\$name\AppData\Local\Temp\”
Copy-Item -Path $EdgeFavPath -Recurse -Destination $Backup -ErrorAction SilentlyContinue
Write-Host Backup Edge Favoriten. -ForegroundColor Green

#Set-ExecutionPolicy -ExecutionPolicy ‘Unrestricted’ -Force
# Restore Edge Favoriten
$name = [Environment]::UserName
$Restore = “C:\Users\$name\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\”
$EdgeFavPath = “C:\Users\$name\AppData\Local\Temp\120712-0049\”
Copy-Item -Path $EdgeFavPath -recurse -Destination $Restore -Force
Write-Host Restore Edge Favoriten. -ForegroundColor Green

Backup Restore Favoriten Edge.zip