persona-copy-extras

Copy files and folders from Horizon Persona Manager non-standard folders during Horizon 7 to Horizon 8 migration.

Chris Halstead / Josh Spencer - VMware
This script is provided as-is and there is no support

Version 2.0 - July 14 2020


Overview

This script is used to copy all data contained in a VMware Horizon Persona Management environment that is stored in non-standard folder. The folders managed by VMware Horizon Persona Management are detailed here:

https://docs.vmware.com/en/VMware-Horizon-7/7.12/horizon-architecture-planning/GUID-05B1BE12-8DD2-4EAE-A3E2-B52CDB6DFC32.html

We can copy these standard folders locally using a group policy setting, but any extra folders and files are not copied locally. The local profile will use either an VMware App Volumes Writable Volume or an FSLogix Profile Container. This script will copy any non standard folders/files from the VMware Horizon Persona Management to this local profile location. This will allow migration away from VMware Horizon Persona Management.

Usage

  1. Move the copy-persona-extras.ps1 file to the location you want to run the script from. A log file will be created for each user showing what is happening at each logon. Make sure the users have the ability to execute PowerShell scripts - read more here

  2. Edit the script to point to the location of the Persona Management share

    configurepm

    Example: `$PMpath = "\\fqdnoffileserver\share" + $un + ".v6"``

  3. If needed you can modify the arraylist in the script to add or remove folders to ignore. The folders in this arraylist will be ignored by the script and not copied from the persona profile
    ignored-folders

  4. Use Dynamic Environment Manager to execute the script

    dem

    Example: Command: powershell.exe \\fs1\horizonscripts\copy-persona-extras.ps1 Example: Check Run asynchronously- this will make sure the script runs in the background and does not impact the logon process

    Note: if the script has already run for the user it will not copy any data if the ce-flag.txt file exists on the root of the users Persona Management profile. Simply delete that flag file to allow the script to copy data again.

  5. When scripts runs, a folder will be created in the users My Documents folder called "ExtrasFromPersona"
    ExtrasFolder

  6. When the script executes - all folders and files not in the standard folders managed by Persona Management will be copied to the newly created folder
    stdfolders

  7. When the script is done - all of the extra files will be located in the new folder
    extrasfolderdata

  8. The script will then set a flag file ce-flag.txt - the script will see this flag file and skip subsequent copy actions
    flag

  9. A log file will be created in /logs under the location where the script is executed - one log file will be created for each user and the latest data will be at the bottom of the log file
    logs
    Log-Copy

    Log-Same


Sign in to be able to add comments.

Comments 0