Soru

Zorluk: OrtaMicrosoft Command-Line Tools

A desktop technician is executing a file migration script to transfer a complex directory tree from a legacy Windows workstation to a new network location using the Robocopy utility. The migration requires transferring all subdirectories, including any empty folders, while fully preserving NTFS permissions, ownership details, and auditing flags on all transferred files. Which of the following Robocopy switches must be included in the command to meet these requirements? (Select TWO.)

  1. /eCevap
  2. /copyallCevap
  3. C
    /s
  4. D
    -p -a

Cevap

The correct options are '/e' and '/copyall'. The '/e' switch ensures subdirectories—including empty ones—are copied, while '/copyall' preserves all file attributes, NTFS security permissions (ACLs), owner information, and auditing settings.
The combination of the '/e' and '/copyall' switches ensures that both the directory hierarchy (including empty folders) and all associated security/audit metadata are preserved during file transfer.

Adım Adım Çözüm

1
Identify the Robocopy switch required for directory recursion including empty folders.
The '/e' switch fulfills the requirement to copy all subdirectories, including empty ones (unlike '/s', which excludes empty subdirectories).
Preserving the complete folder structure requires including folders that do not currently store files.
2
Identify the Robocopy switch required to copy all security and administrative metadata.
The '/copyall' switch is equivalent to '/copy:DATSOU' (Data, Attributes, Timestamps, Security/NTFS ACLs, Owner info, Auditing info).
Standard file copy commands only transfer basic data and attributes, requiring an explicit flag to retain security permissions and audit logs.

Anahtar Kavram

Windows Robocopy File Preservation Switches
Tahmini Süre:1m 15s
Bu soruyu puanla