Chris Halstead / Josh Spencer - VMware
This script is provided as-is and there is no support
Version 2.0 - July 14 2020
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:
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.
copy-persona-extras.ps1file 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
Edit the script to point to the location of the Persona Management share
Example: `$PMpath = "\\fqdnoffileserver\share" + $un + ".v6"``
Use Dynamic Environment Manager to execute the script
powershell.exe \\fs1\horizonscripts\copy-persona-extras.ps1Example: 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.txtfile exists on the root of the users Persona Management profile. Simply delete that flag file to allow the script to copy data again.