FC0-U61 · Question #329
Which of the following switches of the XCOPY command copies file ownerships and NTFS permissions on files while copying the files?
The correct answer is D. /o. The XCOPY command in Windows offers various switches to control how files are copied, including options to preserve file attributes like ownership and NTFS permissions.
Question
Which of the following switches of the XCOPY command copies file ownerships and NTFS permissions on files while copying the files?
Options
- A/p
- B/s
- C/r
- D/o
How the community answered
(65 responses)- A2% (1)
- B3% (2)
- C5% (3)
- D91% (59)
Why each option
The XCOPY command in Windows offers various switches to control how files are copied, including options to preserve file attributes like ownership and NTFS permissions.
The /p switch in XCOPY prompts the user before creating each destination file, requiring confirmation before writing.
The /s switch in XCOPY copies directories and subdirectories, except for empty ones, but it does not specifically handle file ownership or permissions.
The /r switch in XCOPY overwrites read-only files, allowing files with the read-only attribute to be replaced at the destination.
The /o switch for the XCOPY command is specifically used to copy file ownership and NTFS access control list (ACL) permissions along with the files. This ensures that the security attributes of the files are maintained at the destination.
Concept tested: XCOPY command switches for permissions
Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy
Topics
Community Discussion
No community discussion yet for this question.