fslogix icon indicating copy to clipboard operation
fslogix copied to clipboard

add support for UNC path (UPM store)

Open vadgonzalez opened this issue 4 years ago • 0 comments

Describe the solution you'd like Hi Aaron, Could you please add support for UNC paths to cleanup UPM store.

so far I have modified some lines there to point to a profile store, but probable there is cleaner way to script it.

$basefolder= "\pnprofiles\CitrixProfiles\backup" #$Profilefolders = (Get-Childitem $basefolder -Directory |select name ).Name $Profilefolders = Get-Content "c:\temp\backup-profiles.txt"

Switch ($Path) { { $_ -match "%USERPROFILE%" } { $Path = $Path -replace "%USERPROFILE%", "$basefolder$profilefolder\Win2016x64\UPM_Profile" } { $_ -match "%LocalAppData%" } { $Path = $Path -replace "%LocalAppData%", "$basefolder$profilefolder\Win2016x64\UPM_Profile\AppData\Local" } { $_ -match "%AppData%" } { $Path = $Path -replace "%AppData%", "$basefolder$profilefolder\Win2016x64\UPM_Profile\AppData\Roaming" } { $_ -match "%TEMP%" } { $Path = $Path -replace "%TEMP%", "$basefolder$profilefolder\Win2016x64\UPM_Profile\AppData\Local\Temp" } }

Additional context Add any other context or screenshots about the feature request here.

vadgonzalez avatar Aug 20 '19 04:08 vadgonzalez