Solved

Documents and Settings Directory Disappeared

Posted on 2010-08-25
7
755 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

634 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