The problem that i encountered was the server coud not be added to NLB (network load balancer) and the error code in NLB console was 0x80041002;
On the server system log the error was an Event ID: 1020 with the message "TermService clustering failed to update the session directory, hresult=0x80004005."
the script that fix the problem in my case (must be saved with the *.bat extension):
net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository
regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause
No comments:
Post a Comment