Soru

Zorluk: Çok zorMicrosoft Command-Line Tools

A systems administrator needs to create an automated maintenance script on a Windows host. The script must mirror a folder structure from C:\Data to E:\Backup while retaining NTFS security permissions (ACLs) and skipping junction points to prevent infinite looping. Additionally, the administrator needs to scan and repair corrupted system files on a non-booting Windows volume mounted at D: with its system directory at D:\Windows. Which of the following commands execute these tasks correctly? (Select TWO.)

  1. robocopy C:\Data E:\Backup /mir /sec /xjCevap
  2. sfc /scannow /offbootdir=D:\ /offwindir=D:\WindowsCevap
  3. C
    rsync -avz --copy-links C:\Data E:\Backup
  4. D
    sfc /scanonce /bootdir=D:\ /windir=D:\Windows

Cevap

The required commands are 'robocopy C:\Data E:\Backup /mir /sec /xj' for folder mirroring with security ACLs and excluded junctions, and 'sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows' for offline system file verification.
The command starting with 'robocopy' correctly utilizes /mir to mirror the directory tree, /sec to copy security ACLs, and /xj to skip junction points. The command starting with 'sfc /scannow' correctly specifies the offline system boot drive (/offbootdir) and Windows root folder (/offwindir) required for servicing an offline OS installation.

Adım Adım Çözüm

1
Identify the proper Windows file copying utility and flags for mirroring, security, and junction exclusions.
Select robocopy with /mir (mirroring), /sec (copy security ACLs), and /xj (exclude junction points).
Robocopy is built into Windows for advanced file transfer tasks, whereas rsync is native to Unix/Linux environments.
2
Determine the proper switch parameters for running System File Checker on an offline Windows directory.
Select sfc /scannow with /offbootdir=D:\ and /offwindir=D:\Windows.
When Windows is unbootable or scanned from an offline environment (like WinRE), sfc requires explicit target boot and Windows directory paths via offbootdir and offwindir.

Anahtar Kavram

Microsoft Windows Command-Line Utility Switches (Robocopy and Offline SFC)
Bu soruyu puanla