1 2 3 4 5 |
.\FSLogixSettingsOnly.ps1 -ProfilePath \\goodmorningbv4668.file.core.windows.net\fslogix .\FSLogixSettingsOnly.ps1 -ProfilePath \\werkindecloud3760.file.core.windows.net\fslogix |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
<#Author : Dean Cefola # Creation Date: 03-12-2021 # Usage : Setup FSLogix #******************************************************************************** # Date Version Changes #------------------------------------------------------------------------ # 03/12/2021 1.0 Intial Version # # #********************************************************************************* # #> Param ( [Parameter(Mandatory=$true)] [string]$ProfilePath ) ####################################### # FSLogix User Profile Settings # ####################################### Add-Content -LiteralPath C:\Temp\New-WVDSessionHost.log "Configure FSLogix Profile Settings" Push-Location Set-Location HKLM:\SOFTWARE\ New-Item ` -Path HKLM:\SOFTWARE\FSLogix ` -Name Profiles ` -Value "" ` -Force New-Item ` -Path HKLM:\Software\FSLogix\Profiles\ ` -Name Apps ` -Force Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "Enabled" ` -Type "Dword" ` -Value "1" New-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "CCDLocations" ` -Value "type=smb,connectionString=$ProfilePath" ` -PropertyType MultiString ` -Force Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "SizeInMBs" ` -Type "Dword" ` -Value "30000" Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "IsDynamic" ` -Type "Dword" ` -Value "1" Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "VolumeType" ` -Type String ` -Value "vhdx" Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "FlipFlopProfileDirectoryName" ` -Type "Dword" ` -Value "1" Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "SIDDirNamePattern" ` -Type String ` -Value "%username%%sid%" Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name "SIDDirNameMatch" ` -Type String ` -Value "%username%%sid%" Set-ItemProperty ` -Path HKLM:\Software\FSLogix\Profiles ` -Name DeleteLocalProfileWhenVHDShouldApply ` -Type DWord ` -Value 1 Pop-Location ############# # END # ############# |