Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Documents and Settings icon was changed from lock to shortcut

13 Feb 2015   #1

Windows 7 64 bit SP1
Documents and Settings icon was changed from lock to shortcut

I don't want to have permission of this folder all I want to due is get it back the way it was to begin with. When I first click on Documents and Setting folder it said access denied right click went to properties ,click on it went to security tab to look at the permission went to advanced button click on it some how I did something when I got out of the folder, the folder icon no longer had a lock but a shortcut on it. When I went back into properties the next time and to security tab it no longer had the same information. On the screen was Objet Name C:/Documents and Settings info icon that said "You do not have permission to view or edit the object's permission settings". When you click on the advanced button lower right corner Three of the four tab which are Permissions, Auditing, Effective Permissions have the same info icon with the same sentence. The Owner tab screen has the Object name C:/Documents and Settings.
current owner which says "Unable to display current owner" Change owner to section has "Administrators (name of Pc\Administrators) and on the second line it has my name(name of the Pc\my name).
I did a restore before this happened and it didn't take of the problem. I'm able to solve this on my own I would appreciate some help.

My System SpecsSystem Spec
13 Feb 2015   #2

Windows 10 Pro (x64)

This is pretty easy to fix. Delete "Documents and Settings" nothing uses it anymore. Any software that needs it would most likely not run in the first place.
My System SpecsSystem Spec
13 Feb 2015   #3

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan

Copy and paste the following script in to a .bat file and run. Delete the script when done.

@echo off
net session >NUL 2>&1|| powershell Start-Process '%0' -Verb RunAs&& exit /b|| exit /b
set "target=C:\Documents and Settings"
takeown /f "%TARGET%"
icacls "%TARGET%" /inheritance:r
for /f "delims=" %%I in (' 
	powershell "((Get-Acl '%TARGET%').access | foreach {$_.identityreference.value})" 
') do icacls "%TARGET%" /remove "%%I"
icacls "%TARGET%" /grant "NT AUTHORITY\SYSTEM:(F)" "BUILTIN\Administrators:(F)" "Everyone:(RX)" /deny "Everyone:(S,RD)"
icacls "%TARGET%" /setowner "NT AUTHORITY\SYSTEM"

As for the lock icon on the folder ("C:/Documents and Settings" is actually a junction), right-click > Share with > Nobody.

Logic's suggestion above works equally as well too.
My System SpecsSystem Spec

13 Feb 2015   #4

Windows 7 64 bit SP1
Problem solved

I appreciate both of you answer my question extremely fast. I went with the batch file method because I like to have things back the way they started. Again thank you
My System SpecsSystem Spec

 Documents and Settings icon was changed from lock to shortcut

Thread Tools

Similar help and support threads
Thread Forum
All the shortcut icons have changed to same icon lnk files!
All my desktop and startup shortcut icons have changed to a same icon lnk files and i cannot open any of them. Please can someone give me any solution? I have used any solution from Google and Microsoft, but unfortunately all the advises doesn't have any help, I have tried to clean the...
General Discussion
How do I remove my documents icon from my documents
Im trying to get rid of this two icons in my library documents folder but i cant seem to find anything on how to above is how my library documents folder looks like ...
General Discussion
C:\Documents and Settings\all users\documents DENIED!!!
I am running Windows 7 on my notebook, as the owner and admin..... I try to access this folder, and I fact it appears as a shortcut rather than a folder...i have run antivirus, and malware, found nothing.... tried to change the security....all users has rights to it, the admin does...
General Discussion
My Documents changed to Documents
I don't know if this is related to a Windows Update, but I've searched and I can't see that anyone else has reported this. A couple of weeks ago, I turned on my PC (windows 7) and found that My Documents had been renamed Documents. I always accessed this folder under my User (like My Music, My...
General Discussion
Desktop Icon Settings Shortcut - Create
How to Create a "Desktop Icon Settings" Shortcut in Windows This will show you how to create or download a Desktop Icon Settings shortcut to add or remove and restore or change the default icon for the Computer, User's Files (user-name Folder), Network, and Recycle Bin desktop icons in...
A lock on some file in my documents
Why are there locks on some of my files in Documents?And also the files from my desktop and documents showup in the video file. If I delete it in videos, it deletes it from my desktop?? I didnt see this in my search, so sorry if it has been discussed before.
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:29.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App