Backup user profile

This is a PowerShell Script that creates a backup for the user profile folder in the users folder with the current date.
The script will ask you for the user name that you want to backup.

$sourceFolder = "C:\users\~user "# Get the current date in the "ddMMyyyy" format
$dateStamp = Get-Date -Format "ddMMyyyy"

$destinationFolder = "$sourceFolder(backup_$datestamp)" 

Copy-Item -Path $sourceFolder -Destination $destinationFolder -Recurse -Force
"Backup completed. Destination folder: $destinationFolder"

To download the command click here.
Once downlod complete, import it throw the import option in the Custom command section.

For any additional information, please contact