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...
syedaltamash
Dec 22, 2021Copper Contributor
Agdar
We are facing same issue from many days we have many times changed ReFcount value to 0 but again and again it's reversing.
MarkF26
Dec 23, 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
}
- ThorstenSobFeb 16, 2022Copper ContributorThit Script shows me the right way to resolve that issue, thx MarkF26
Propably i renamed the Folder of that affected SID and it works too. - mnickomJan 18, 2022Copper ContributorI 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?
- MarkF26Jan 18, 2022Brass Contributor
By the time you fully test it, the patch may be out, but the script needs to run in the SYSTEM context, since the end-user does not have write permission to the key:
hope this helps.
- mnickomJan 18, 2022Copper ContributorBut if you run in the SYSTEM context, how do you gather the user's SID?