Forum Discussion
Dale Hayter
Nov 11, 2020Copper Contributor
WVD logon issues. The Group Policy Client Service failed the sign-in. Access is denied.
Hi. We have a mutli-session Win10 WVD farm up and running. We are running 1909 with the latest quality updates applied. FSLogix profile container is being used. We are seeing intermittent issues...
MarkF26
Dec 22, 2021Brass Contributor
I am suggesting the following short script as a logoff script for WVD users to be deployed by a GPO. Please use at your won risk:
$ProfRefsPath = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileService\References"
$MySID = (Get-CimInstance -Class Win32_UserAccount -Filter "Domain = '$ENV:Userdomain' AND Name = '$ENV:UserName'").SID
If (Test-path $ProfRefsPath\$MySID) {
set-itemProperty -Path $ProfRefsPath\$MySID -Name RefCount -Value 0
}
mnickom
Jan 18, 2022Copper Contributor
I plan on doing my own testing but has anyone validated if this script works? Does the user need to be a local admin to write into HKLM or are they given access to the subkey when it's created?