Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

%SystemRoot% variable changed

Posted on 2006-03-29
11
Medium Priority
?
831 Views
Last Modified: 2008-02-01
I've been having some wierd problems on a Windows Server 2003 machine.  After looking into the problems I think know whats going on, I just don't know how to correct it.  The machine has 2 drives in a mirror(C:), this is where the OS is installed and the data is stored.  There is a 3rd drive(e:) that is used for temp fiels, backups, etc.  I notived a whiel back that the contents of the c: drive got copied over to the e: drive, waht is didn;t realize until laster was that the %systemroot% variable got moved from the c: to the e: drive as well.  All the applications still run off of the c: drive, the "Program files" folder was deleted off of e: tofrre up some space, so there is no question as to where these are running from.  The Docuements and Setting got moved from c: to e: as well, this is what caused the problesm to be notices, since a few things changed at the time.  The are many things that still point to locations on c:\Windows as well.  I want to get the sytsem to use the mirrored drive for everything, sicne its in a mirror, and it the drive thats getting backed up.  How can I do this?
0
Comment
Question by:rshooper76
  • 6
  • 5
11 Comments
 
LVL 48

Accepted Solution

by:
Jay_Jay70 earned 2000 total points
ID: 16327296
Hi rshooper76,

your drives are mirrored. this means that anything you delete from the c: drive, is mirrored so that its deleted off the mirror drive also, you cant change the system variable to point to an invisible drive as windows only see's a set of mirrored drives as one...

Cheers!
0
 
LVL 9

Author Comment

by:rshooper76
ID: 16327403
The C: and E; drives are not mirrored.  The system was installed with 2 mirroed drives, the C: drive.  An additioal drive was later added to stop soem telp files, backup files, etc.  The drive is the e: drive.  When this drive got added the data from the c: drive got copied over, kinda oa a quick immediate backup.  About a week ago it appears the %SystemRoot% vairable got moved from the c:\Windows to the e:\Windows folder.  Since the E: drive is not mirrored and it about 3 months older than the c: drive folder I want to move this back to the c: drive.
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16327458
this isnt supposed to be possible... if you install windows to the c: you shouldnt be able to chage that variable

if you type %systemroot% into run line, what path does it bring up?
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 9

Author Comment

by:rshooper76
ID: 16327747
I know it isn't supposed to be possible, thats what i'm at a loss on how to fix it.  When I type %systemroot% it says "e:\windows", the hkey_local_machine\software\microsfot\windows nt\current version\winlogon\userinit value points to the c: drive.  I am thinking oc just booting in recover mode and running the "systemroot" commmand to change the system root directory.  I know it works on Windows XP, just not sure about Windows Server 2003, and i'm not sure what else may get messed up.
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16327784
hmm the %windir% variable may tie into this

under my computer - properties - advanced - environment variables - you can check the windir variable and see what it is set to
0
 
LVL 9

Author Comment

by:rshooper76
ID: 16327993
It shows%SystemRoot% when I go into edit, e:\Windows when you just view it.  Keep in mind that the E: drive was not in the machine with the OS was installed.
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16328024
you actually have a system root variable there under the environment variables????
0
 
LVL 9

Author Comment

by:rshooper76
ID: 16328060
No, I was looking at the windir environment variable.  There is not a System Root variable there. When you view the variable it show the value(E:\windows), but when you edit it it shows %systemroot%.  My laptop does the same thing, so do the other servers that I manage.
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16328569
hmm been looking around and the only way that the variable can be changed is with a windows install - maybe run a repair install on the drive to bring the variable back

it is "supposed" to be undeditable! i spoke to a couple of scripters and they had no idea...
0
 
LVL 9

Author Comment

by:rshooper76
ID: 16431955
I was able to get this restored by removing the extra drive.
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16431962
well done, thanks for the points, dont know if i helped though....
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question