Solved

Documents and Settings Directory Disappeared

Posted on 2010-08-25
7
749 Views
Last Modified: 2012-06-27
I'm running Windows Server 2008 Datacenter Edition 64-bit as a VMware virtual machine.  I have a script that I run to read from a file share and load a database which are separate servers from this one.  The script started failing because Documents and Settings, which is where is the script is located, is gone.  I can not see this directory from Explorer or the command prompt.  From the command prompt it gives me a "File Not Found" output.  

Attached is a screen print of an error in the application log. Application log entry
0
Comment
Question by:LarsArvidson
7 Comments
 
LVL 40

Expert Comment

by:coolsport00
ID: 33522947
I don't believe that is on W2K8...it's now called 'Program Data'.

~coolsport00
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 33522958
Specifically, I believe the folders are now:
"C:\Users" and "C:\ProgramData"

~coolsport00
0
 
LVL 14

Expert Comment

by:top_rung
ID: 33523003
coolsport00 is correct...

Documents and Settings doesn't/or isn't physically navigable in 2008.  It is more of a junction point (or a reference) to programdata directory.

So can you clarify your question?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 2

Expert Comment

by:zsaurabh
ID: 33523019
In Win2k8, Profiles are as Local Service so you will not see Documents and Setitings, you will get C:\Users or C:\Programdata
you have to change the script
0
 

Author Comment

by:LarsArvidson
ID: 33523593
My mistake.  The reason that I thought that there was a Documents and Settings was because I could CD to that directory.  Try it if you are running Windows 7 or 2008.  Use command completion.  

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\larsadmin.RSL>cd "\Documents and Settings"

C:\Documents and Settings>dir
 Volume in drive C is OS
 Volume Serial Number is 7444-13CE

 Directory of C:\Documents and Settings

File Not Found

C:\Documents and Settings>
0
 
LVL 59

Accepted Solution

by:
Darius Ghassem earned 500 total points
ID: 33524005
Documents and Settings on a Windows 2008 server is just a place holder or redirector for old programs that do not default to the new file system structure.
0
 
LVL 24

Expert Comment

by:B H
ID: 33524730

i figured i would post here because i received an email alert to do so:


coolsport00 has raised an objection: I object to the poster's accepted answer because...well...I gave the answer in the 1st 2 comments I made. So, I'm wondering why the poster accepted the answer he/she did...

coolsport, in your first two comments you said:

1. I don't believe that is on W2K8...it's now called 'Program Data'.
2. Specifically, I believe the folders are now:  "C:\Users" and "C:\ProgramData"

In the first case you're wrong, the folder "c:\documents and settings" has been replaced by "c:\users".  In the second case, you're getting closer but darius did provide the reason, albeit not the new location.

darius's answer is most correct, but i would also add the suggestion of using variables in your scripts, such as %userprofile% and %appdata% and the like. that way the script will work on any version of windows.

if it were up to me, i would have split points between http:#a33522958 and http:#a33524005


0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now