BeN*_*ErR 11 windows-7 permissions user-folders
我最近用 SSD 更换了笔记本的 HDD,并在 SSD 上重新安装了 Windows 7。我为“旧”硬盘买了一个球童,我可以从 SSD 成功启动 Windows。
我可以将旧硬盘视为外部驱动器;但是,我无法访问我的用户文件夹。当我尝试打开用户文件夹时,出现此错误:

如果我点击Continue,什么都不会发生。绿色条显示并加载(例如“我正在获取您的文件!”),但是一旦到达末尾,我将无法进入该文件夹。
有任何想法吗?
Red*_*ick 10
您可以使用该命令takeown获取用户文件夹的所有权,从而重新获得对旧硬盘上您的文件(或其他任何人的)的访问权。
(来自上面techie007的评论。
C:\>takeown /?
TAKEOWN [/S system [/U username [/P [password]]]]
/F filename [/A] [/R [/D prompt]]
Description:
This tool allows an administrator to recover access to a file that
was denied by re-assigning file ownership.
Parameter List:
/S system Specifies the remote system to
connect to.
/U [domain\]user Specifies the user context under
which the command should execute.
/P [password] Specifies the password for the
given user context.
Prompts for input if omitted.
/F filename Specifies the filename or directory
name pattern. Wildcard "*" can be used
to specify the pattern. Allows
sharename\filename.
/A Gives ownership to the administrators
group instead of the current user.
/R Recurse: instructs tool to operate on
files in specified directory and all
subdirectories.
/D prompt Default answer used when the current user
does not have the "list folder" permission
on a directory. This occurs while operating
recursively (/R) on sub-directories. Valid
values "Y" to take ownership or "N" to skip.
/? Displays this help message.
NOTE: 1) If /A is not specified, file ownership will be given to the
current logged on user.
2) Mixed patterns using "?" and "*" are not supported.
3) /D is used to suppress the confirmation prompt.
Examples:
TAKEOWN /?
TAKEOWN /F lostfile
TAKEOWN /F \\system\share\lostfile /A
TAKEOWN /F directory /R /D N
TAKEOWN /F directory /R /A
TAKEOWN /F *
TAKEOWN /F C:\Windows\System32\acme.exe
TAKEOWN /F %windir%\*.txt
TAKEOWN /S system /F MyShare\Acme*.doc
TAKEOWN /S system /U user /F MyShare\foo.dll
TAKEOWN /S system /U domain\user /P password /F share\filename
TAKEOWN /S system /U user /P password /F Doc\Report.doc /A
TAKEOWN /S system /U user /P password /F Myshare\*
TAKEOWN /S system /U user /P password /F Home\Logon /R
TAKEOWN /S system /U user /P password /F Myshare\directory /R /A
Run Code Online (Sandbox Code Playgroud)
来自 Vista 的示例。在 Windows 7 上应该是类似的。
| 归档时间: |
|
| 查看次数: |
18755 次 |
| 最近记录: |