lansti
Hot Shot
Hot Shot

Import DEM application profile with a logonscript.

We are changing DEM environment and how we collect userdata for Chrome.
Working on new Horizon 8 with latest DEM management, and new application config(new server) files.
Is it possible to import the old DEM Chrome profile with a logonscript (run once)..?
So users get their bookmarks, browser history and settings in the new environment.

Best regards
Lansti
Reply
0 Kudos
DEMdev
VMware Employee
VMware Employee

@lansti,

FlexEngine.exe -r path\to\profile\archive.zip can be used to import an individual profile archive. If you run this from a DEM logon task, you can add -f name\of\a\separate\logfile.log – the main log file will be locked, so the logging of that individual import would end up in FlexEngine-1.log otherwise.

Another approach would be to just copy each user's "old" Chrome profile archive into their "new" profile folder (taking care of file system permissions and such), and have DEM just import it as usual when they log on to the new environment for the first time?

View solution in original post

lansti
Hot Shot
Hot Shot

Thanks, we created a PS script, since we have more than one site, and more than one server where profiles are located. We needed to get information from the registry, where the logged on users have their archive.

 

$ProfArchPath = @()
$ProfArchPath = (Get-ItemPropertyValue -Path 'HKCU:\Software\Policies\Immidio\Flex Profiles\Arguments' -Name 'ProfileArchivePath') + "\Applications\Application.zip"
$PathToFlex = "C:\Program Files\Immidio\Flex Profiles"

try {
Start-Process "FlexEngine.Exe" -WorkingDirectory $PathToFlex -ArgumentList " -r $ProfArchPath"
}
catch
{
Write-Warning $Error[0]
}

Best regards
Lansti
Reply
0 Kudos