nerdexam
GIAC

GCFA · Question #287

GCFA Question #287: Real Exam Question with Answer & Explanation

The correct answer is D. /o. The XCOPY /O switch preserves file ownership information and NTFS discretionary access control lists (DACLs) when copying files. Without this switch, copied files inherit the permissions of the destination folder.

Question

Which of the following switches of the XCOPY command copies file ownerships and NTFS permissions on files while copying the files?

Options

  • A/r
  • B/p
  • C/s
  • D/o

Explanation

The XCOPY /O switch preserves file ownership information and NTFS discretionary access control lists (DACLs) when copying files. Without this switch, copied files inherit the permissions of the destination folder.

Common mistakes.

  • A. The /R switch allows XCOPY to overwrite destination files that have the read-only attribute set; it has no effect on copying ownership or NTFS permissions.
  • B. The /P switch causes XCOPY to prompt the user for confirmation before creating each destination file, and it does not copy or preserve permissions or ownership.
  • C. The /S switch causes XCOPY to copy directories and subdirectories (excluding empty ones), controlling directory traversal behavior rather than permission or ownership copying.

Concept tested. XCOPY switch for copying NTFS permissions and ownership

Reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy

Community Discussion

No community discussion yet for this question.

Full GCFA Practice