Home Drives - Windows folder inside?

Hey guys,

I recently setup some home drives for some users, and i noticed automatically its putting a blank WINDOWS and then an empty system folder inside of it automatically.

What could cause this? This is for a terminal server running server 2008 r2
LVL 4
Cobra25Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
That is perfectly normal behavior. This folder is used to store user specific settings. Nothing to worry about, nothing you can do to prevent it.
Check the section "Execute Mode" in the article below, especially the following:
"While an application is running, the following actions occur:
[...]
* If an application uses the GetPrivateProfileString API to read an INI file that does not exist in the user's home Windows directory, Terminal Server checks for the INI file in %SystemRoot%.
* If an application uses the GetPrivateProfileString API to read an INI file that exists in %SystemRoot%, the INI file is copied to the user's home directory.
* If an application uses the GetWindowsDirectory API to query the Windows directory path, Terminal Server returns the user's home directory.
"
Terminal Server application integration information
https://support.microsoft.com/en-us/kb/186498
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tony GiangrecoCommented:
This is common for Windows. there is nothing for you to do. Just leave it there.
0
CoralonCommented:
oBdA is exactly correct.  When you put the system in install mode %windir% gets redirected to the user's home directory\windows, and things like INI writes, etc. get copied and or sync'd that same location (this is controllable through registry flags on a per-application basis).  

Every user account has a home directory in a TS environment.  Even if you don't have one assigned, your profile becomes your home directory, and the Windows directory gets created.  

Coralon
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Cobra25Author Commented:
So just tell users to ignore it? What if they delete it?
0
CoralonCommented:
They can ignore it.. and yes, they can delete it*.  It will be recreated the next time they login.

The key thing for deletion is that it is not used for any of your applications. If you have apps that create INI files in %systemroot% (i.e. c:\windows), they will break their applications without the correct compatibility flag.  

Coralon
0
Cobra25Author Commented:
I am not sure..i should test that.
0
oBdACommented:
Cobra25,
it's described in the the article I linked above, and especially the quote I posted.
In short: any (properly API based) access to a system ini file will be redirected to the user's home folder; if the ini file doesn't exist there, it will be copied from System folder to the home folder. In other words: if the users delete the folder, the ini file will come back (minus changes the user made since the file was initially copied, of course).
But there's not much to worry about these days anyway. In 16bit times, Windows kept its settings in these, and some applications put their ini files into the Windows folder as well. A well-behaved application (that uses the proper API calls, see above) could still do this today, but I doubt you'll find any.
To sum it up: that folder existed even before you created the home drive (though in a different location), and Windows will take care of it. The user can delete it at will, and it will just come back, and nothing will have happened (most times - except that maybe the user lost some of his program settings, but no data).

Coralon,
you got it backwards. Access to Systemroot will be redirected in Execute mode; only Install mode turns off the redirection.
0
CoralonCommented:
I didn't realize how tired I was when I wrote that.  /facepalm..

Coralon
0
Cobra25Author Commented:
Okay, so EACH user has their own C:\windows\ folder?

Just wondering that if one user deletes something will it affect all users or is that an individual folder for each?

Also, if i install new applications in the future, will this cause an impact since this folder is now being moved essentially?
0
oBdACommented:
Well, each user who ever logged on to a Terminal/RDS Server.
These folders are individual; that's the point, after all.
No, Windows doesn't care; as I said: if it doesn't find it (anymore), it'll just recreate it.
And while you're talking about installing: don't forget to run "change user /install" before you start any setup on an RDS, and "change user /execute" afterwards (or use the Add Software wizard from Control Panel).
0
Cobra25Author Commented:
Thanks oBdA!!

For installing, can i just do that as admin "change user/install"
0
oBdACommented:
Yes, just enter it in an elevated Command Prompt or Powershell console.
0
Cobra25Author Commented:
Tested so far, looks good guys.
0
younghvCommented:
I've requested that this question be closed as follows:

Accepted answer: 500 points for oBdA's comment #a40957891

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.