Portal Home > Knowledgebase > Articles Database > Remote Desktop Services - Fix Some Errors
Remote Desktop Services - Fix Some Errors
Posted by Harshadewa, 08-25-2012, 09:08 AM |
Hello,
Let me explain you my problem.
I have Dedicated server with Windows Server 2008 R2 Standard. I installed Remote Desktop Services role in it. Yesterday I created a user and I deleted that user using Server Manager > Computer Management > Local Users and Groups > Users. (Im guessing this is the origin point of the problem)
Afterthat when I created another user and when this user tries to login he gets this message:
"User Profile Service Failed the Login. User Profile Cannot be Loaded"
Then I thought reinstalling the server/ OS would fix this so I did it. But it didn't solve the problem.
So after doing some research in the net I managed to solve it by adding/ modifying keys in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\.
Afterthat when I created a user I simply added relevant keys to above location and user could login without a problem. Everything was normal. I install some programs using Control Panel > Install Application on Remote Desktop tool. I installed Firefox, IDM etc.
Today one of the users reported that he gets this message when trying to open Firefox:
"Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."
So I checked the processes tab but I couldn't see ANY firefox process. So I restarted the server hoping it would fix this.
When the user tried to login that "User profile service failed....." error came up. I tried adding the keys to Regedit but it doesn't work anymore.
Also I get a new error message other than the above one. See this pic.
"Windows cannot find 'C:\Users\Administrator\WINDOWS\Sysnative\RUNDLL32.EXE'. Make sure you typed the name correctly, and then try again"
Now I don't know what the hell is going on and what to do.
So here Im asking professionals to help me on this. If you need to take a look at the server I can let you do that using Teamviewer. (I can't give you the server logins yet)
Im ready to pay for a permanent solution.
Thanks
|
Posted by MinecraftServerz, 08-25-2012, 09:11 AM |
When you create a user and it gets added to the user list right click on the user and there will be a tab on the top in one of those there is an option to choose the profile directory.
|
Posted by Harshadewa, 08-25-2012, 09:52 AM |
Im sorry but I dont get it.
Where is this "user list"
Are you talking about the Local Users and Groups in Server Manager?
Thank you
|
Posted by Collabora, 08-25-2012, 10:21 AM |
Try the system file checker/repair
Bring up an Elevated command prompt via:
START | type cmd into the start search box | right-click on cmd (cmd.exe) | select "Run as Administrator"
then in the command prompt (DOS) box type:
sfc /scannow
hit enter
let it run - +/- 10/15.. min
|
Posted by Harshadewa, 08-25-2012, 10:24 AM |
Would you be kind enough to log in my desktop via Teamviewer and it in my server for me?
I don't want mess this up anymore than it already is.
Thanks
|
Posted by Collabora, 08-25-2012, 10:31 AM |
I might be able to help you later today. But you won't mess anything up. If sfc fixes anything, reboot. If there are still problems you can attach log file here.
As far as your profile issue, if there are profile issues still after registry fix you may have a corrupt default profile folder. Rename the users Default folder to default.old and copy a good one from another 2008 install. (this is a hidden folder -- you may have to unhide it if you have not already done so)
|
Posted by Harshadewa, 08-25-2012, 10:41 AM |
when you make a change to regedit (add, edit, modify keys) do I have to save it or does it save automatically??
because before all this started I remember when I created a new account a new key at regedit created automatically. After this problem started this key isn't generated at regedit.
So I tried creating them manually. It worked at first. But after I restarted the server those keys disappeared.
|
Posted by Harshadewa, 08-25-2012, 11:23 AM |
I ran the command you said in cmd. I got this message:
Windows Resource Protection could not perform the requested operation
Thanks.
Also is there anything you can do when the changes you make to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ is not saving. It disappears after system restart.
|
Posted by Collabora, 08-25-2012, 05:40 PM |
OK, you are in luck. It just so happens that this happened to me a a couple months ago. I spent hours trying to fix it and I finally did. Fortunately, I documented what I did (sometimes I create tickets for myself for this reason). But before we get too involved let's try the simple stuff that did not work for me at the time.
Check and see if the TrustedInstaller service is running. It should be set to manual. SFC requires it and automatically starts it up when launched. If its not started try starting it yourself. Its called Windows Module Installer in Service Manager
Let me know the status
Are you able to boot windows into recovery mode or with a boot cd from where you are?
|
Posted by Harshadewa, 08-25-2012, 09:55 PM |
WMI is started.
http://img.sceper.eu/images/8tzqC.png
I bought dedi from Leaseweb. There is a option called Rescue Mode in their Self Service Center.
One more thing, I tried to disable User Account Control from both Control Panel and secpol.msc > Local Policies > Security Options. After restarting the server those changes are not saved.
Please help me
|
Posted by Collabora, 08-25-2012, 10:27 PM |
My problem was windows update stopped working. After trying all sorts of things I tried the sfc. I even did an offline sfc and got the same errors. This pointed me to TrustedInstaller. It turned out I was missing the following registry key:
HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version.
To fix it:
1. Navigate to C:\Windows\Servicing\Version and read the name of a subfolder. It will be named something like 6.1.7600.16385. That is your {TrustedInstaller ID}. Copy the name of that folder to the clipboard (and paste it in Notepad for safe keeping).
2. Find a subfolder in C:\Windows\WinSxS whose name starts with:
x86_microsoft-windows-servicingstack_31bf3856ad364e35_{TrustedInstaller ID} (32bit Windows)
or
amd64_microsoft-windows-servicingstack_31bf3856ad364e35_{TrustedInstaller ID} (64bit Windows)
Copy the name of that folder to the clipboard (and paste it in Notepad for safe keeping).
3. Create subkey "HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version". You will need to take ownership of "Component Based Servicing" then give yourself full access permissions before you can create the key.
4. In the new Version key, create an "expandable value" using the TrustedInstaller ID as its name and the complete path of the folder you identified in WinSxS as its value. Properly you should use %SystemRoot%\WinSxS\whatever instead of C:\Windows\WinSxS\whatever.
Reboot!
Try sfc again
Last edited by Collabora; 08-25-2012 at 10:36 PM.
|
Posted by Harshadewa, 08-25-2012, 10:36 PM |
I think its already there
http://img.sceper.eu/images/gNxGC.png
What should I do now?
|
Posted by Collabora, 08-25-2012, 10:55 PM |
From your chair you can try
1. replacing that default user directory as mentioned above
2. run a virus scan. I recommned malwarebytes
Other than that we will need to access Windows from Recovery Console and/or Safe Mode. As I recall RDP will not work in Safe Mode with Networking. Check that SCC for that.
But do 1 and 2 first. If 1 fixes the original problem you will be good for now. But you may need to deal with the sfc issue down the road
|
Posted by Harshadewa, 08-25-2012, 10:58 PM |
I issued a server reinstallation.
That is supposed to bring everything back to where it was right??
|
Posted by Collabora, 08-25-2012, 11:07 PM |
Should be like brand new. After its up run chkdsk /f /r - you will need to reboot to run at boot time. Might take a long time so relax
|
Posted by Harshadewa, 08-25-2012, 11:10 PM |
you are saying above command take long time to run or reinstallation take a long time?
Im sorry but I don't understand the above command. What do you mean "you will need to reboot to run at boot time"?
Thanks a lot.
|
Posted by Collabora, 08-25-2012, 11:15 PM |
When you run chkdsk it will ask you to reboot computer. chkdsk will then run when computer is booting. You won't see anything - it will seem computer is down at this time. When chkdsk completes server will resume booting back into desktop. This can take a long time so don't get worried if you don't see your server for an hour.
To run the chkdsk gui, click on start, type chkdsk in search box, launch chkdsk. Select both options. That will be the same as running chkdsk /f /r at command prompt
If you want to see what's going on, try it on your home pc
|
Posted by Harshadewa, 08-25-2012, 11:18 PM |
What do you recommend? Running it in Command prompt or gui? Same action, same result?
|
Posted by Collabora, 08-25-2012, 11:20 PM |
its the same thing
|
Posted by Harshadewa, 08-25-2012, 11:31 PM |
Hey mate,
I know I said thanks in all my posts.
But I just want you to know that I really appreciate what you are doing. Replying my questions "very fast". You have no idea what it means to me.
So thank you.
Server reinstallation is finished. I tried disabling UAC and restarting the server to see if it save the changes. It worked. I hope all other things will work too.
I just installed Remote Desktop Service Role. Let's see if that user profile thing work as expected.
Do you need me to run chkdsk before doing this?
|
Posted by Collabora, 08-25-2012, 11:38 PM |
Run it when convenient. Going to watch tv now. Good luck!
|
Posted by Harshadewa, 08-26-2012, 12:52 AM |
Good news.
It seems the changes I do to regedit saves even if I restart the server.
But still it would not generate this key automatically when I create a user in Server Manager > Local Users and Groups > Users
Considering how things were few hours ago I'd say this is much better
Thanks for all the help.
|
Posted by Collabora, 08-26-2012, 09:59 AM |
Which key?
|
Posted by Harshadewa, 08-26-2012, 10:22 AM |
The key generated for user profiles located in here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
They are not generating automatically. So I have to create them manually. Earlier they weren't saving. After the 2nd OS reinstall they are saving.
|
Posted by Collabora, 08-26-2012, 05:54 PM |
I believe the user would have to log on before profile is mapped to registry. Create a user, log off, then log in as the new user. Check reg.
|
Posted by Harshadewa, 08-26-2012, 09:44 PM |
Yeah you are right mate. I just created a user from Server Manager, added him to RD Users group everything work as expected.
All this could happen because of a virus??
Thanks
|
Posted by Collabora, 08-26-2012, 10:09 PM |
It could have been a virus. Might be a bad disk causing corruption (the bad disk could be yours or the disk the windows image was created from. Hard to say without being there. Don't forget to install anti-virus and do chkdsk to repair disk errors.
|
Posted by Harshadewa, 08-26-2012, 10:43 PM |
what anti-virus would you recommend? Thanks a lot.
|
Posted by Collabora, 08-26-2012, 10:46 PM |
I use Vipre Business, but you have to pay for it. Good free ones are Avast, ESET, AVG. Don't remember if they install on server.
|
Posted by Harshadewa, 08-26-2012, 10:52 PM |
Thanks a lot mate.
|
Add to Favourites Print this Article
Also Read
rewrite rule (Views: 710)
NAS for SMB (Views: 692)